Showing
104 changed files
with
256 additions
and
8 deletions
... | @@ -48,15 +48,32 @@ app.get("/inf/result",(req,res)=>{ | ... | @@ -48,15 +48,32 @@ app.get("/inf/result",(req,res)=>{ |
48 | 48 | ||
49 | app.post("/game/result",(req,res)=>{ | 49 | app.post("/game/result",(req,res)=>{ |
50 | vec=req.body.test; | 50 | vec=req.body.test; |
51 | + var item=["empty", "추억", "empty", "신중함","안정적","empty","열정","책임감","아이템","스피드","믿음직","호기심","헌신적","자유로움"]; | ||
52 | + keyword=[]; | ||
53 | + for(var i=1; i<vec.length; i++){ | ||
54 | + if(i%2!=0){ | ||
55 | + if(vec[i]=="1"){ | ||
56 | + keyword.push(item[i-1]); | ||
57 | + } | ||
58 | + else{ | ||
59 | + keyword.push(item[i]); | ||
60 | + } | ||
61 | + } | ||
62 | + } | ||
51 | }) | 63 | }) |
52 | 64 | ||
53 | app.get("/game/result",(req,res)=>{ | 65 | app.get("/game/result",(req,res)=>{ |
66 | + var temp=""; | ||
67 | + for(var i=0; i<vec.length; i++){ | ||
68 | + if(i!=2 && i!=3 && i!=4 && i!=5 && i!=10 && i!=11) | ||
69 | + temp+=vec[i]; | ||
70 | + } | ||
54 | var fs=require('fs'); | 71 | var fs=require('fs'); |
55 | - var url="kart_special"+vec+"/"; | 72 | + var url="kart_find"+temp+"/"; |
56 | - var testFolder="metadata/kart_special"+vec; | 73 | + var testFolder="metadata/kart_find"+temp; |
57 | fs.readdir(testFolder, function(error, list){ | 74 | fs.readdir(testFolder, function(error, list){ |
58 | var rand=Math.floor(Math.random()*list.length); | 75 | var rand=Math.floor(Math.random()*list.length); |
59 | - res.render('game_result',{url:url,body:list[rand]}); | 76 | + res.render('game_result',{url:url,body:list[rand],keyword:keyword}); |
60 | }); | 77 | }); |
61 | }); | 78 | }); |
62 | 79 | ... | ... |
metadata/game_result.css
0 → 100644
1 | +#total | ||
2 | +{ | ||
3 | + position:absolute; | ||
4 | + background-image:url("result/background.png"); | ||
5 | + top:50%; | ||
6 | + left:50%; | ||
7 | + width:1300px; | ||
8 | + height:650px; | ||
9 | + margin:-325px 0px 0px -650px; | ||
10 | +} | ||
11 | +#words | ||
12 | +{ | ||
13 | + position:absolute; | ||
14 | + top:42%; | ||
15 | + left:16%; | ||
16 | + width:400px; | ||
17 | + height:350px; | ||
18 | + margin:-75px 0px 0px 0px; | ||
19 | +} | ||
20 | +#imgkey | ||
21 | +{ | ||
22 | + position:relative; | ||
23 | + left:15%; | ||
24 | +} | ||
25 | +#rkart | ||
26 | +{ | ||
27 | + position:absolute; | ||
28 | + background-image: url("result/kart.png"); | ||
29 | + width:350px; | ||
30 | + height:350px; | ||
31 | + top:30%; | ||
32 | + left:60%; | ||
33 | +} | ||
34 | +#imgId | ||
35 | +{ | ||
36 | + position:relative; | ||
37 | + top:20%; | ||
38 | + left:15%; | ||
39 | + width:70%; | ||
40 | + height:60%; | ||
41 | + | ||
42 | +} | ||
43 | +#word1 | ||
44 | +{ | ||
45 | + position:relative; | ||
46 | + font-family: 'Nanum Gothic'; | ||
47 | + font-size:large; | ||
48 | + font-weight: bold; | ||
49 | + top:10%; | ||
50 | + width:160px; | ||
51 | + height:40px; | ||
52 | + border-radius: 30px; | ||
53 | + border:0; | ||
54 | + background: rgb(192, 234, 250); | ||
55 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
56 | +} | ||
57 | +#word2 | ||
58 | +{ | ||
59 | + position:relative; | ||
60 | + font-family: 'Nanum Gothic'; | ||
61 | + font-size:large; | ||
62 | + font-weight: bold; | ||
63 | + top:19%; | ||
64 | + left:15%; | ||
65 | + width:160px; | ||
66 | + height:40px; | ||
67 | + border-radius: 30px; | ||
68 | + border:0; | ||
69 | + background: rgb(192, 234, 250); | ||
70 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
71 | +} | ||
72 | +#word3 | ||
73 | +{ | ||
74 | + position:relative; | ||
75 | + font-family: 'Nanum Gothic'; | ||
76 | + font-size:large; | ||
77 | + font-weight: bold; | ||
78 | + top:19%; | ||
79 | + width:160px; | ||
80 | + height:40px; | ||
81 | + border-radius: 30px; | ||
82 | + border:0; | ||
83 | + background: rgb(192, 234, 250); | ||
84 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
85 | +} | ||
86 | +#word4 | ||
87 | +{ | ||
88 | + position:relative; | ||
89 | + font-family: 'Nanum Gothic'; | ||
90 | + font-size:large; | ||
91 | + font-weight: bold; | ||
92 | + top:28%; | ||
93 | + left:15%; | ||
94 | + width:160px; | ||
95 | + height:40px; | ||
96 | + border-radius: 30px; | ||
97 | + border:0; | ||
98 | + background: rgb(192, 234, 250); | ||
99 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
100 | +} | ||
101 | +#word5 | ||
102 | +{ | ||
103 | + position:relative; | ||
104 | + font-family: 'Nanum Gothic'; | ||
105 | + font-size:large; | ||
106 | + font-weight: bold; | ||
107 | + top:28%; | ||
108 | + width:160px; | ||
109 | + height:40px; | ||
110 | + border-radius: 30px; | ||
111 | + border:0; | ||
112 | + background: rgb(192, 234, 250); | ||
113 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
114 | +} | ||
115 | +#word6 | ||
116 | +{ | ||
117 | + position:relative; | ||
118 | + font-family: 'Nanum Gothic'; | ||
119 | + font-size:large; | ||
120 | + font-weight: bold; | ||
121 | + top:35%; | ||
122 | + left:15%; | ||
123 | + width:160px; | ||
124 | + height:40px; | ||
125 | + border-radius: 30px; | ||
126 | + border:0; | ||
127 | + background: rgb(192, 234, 250); | ||
128 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
129 | +} | ||
130 | +#word7 | ||
131 | +{ | ||
132 | + position:relative; | ||
133 | + font-family: 'Nanum Gothic'; | ||
134 | + font-size:large; | ||
135 | + font-weight: bold; | ||
136 | + top:38%; | ||
137 | + width:160px; | ||
138 | + height:40px; | ||
139 | + border-radius: 30px; | ||
140 | + border:0; | ||
141 | + background: rgb(192, 234, 250); | ||
142 | + box-shadow: 3px 3px 3px rgb(209, 207, 207); | ||
143 | +} | ||
144 | +#text1 | ||
145 | +{ | ||
146 | + position:relative; | ||
147 | + left:15%; | ||
148 | + font-family: 'Nanum Gothic'; | ||
149 | + font-size:50px; | ||
150 | + font-weight: bold; | ||
151 | +} | ||
152 | +#text2 | ||
153 | +{ | ||
154 | + position:relative; | ||
155 | + left:15%; | ||
156 | + font-family: 'Nanum Gothic'; | ||
157 | + font-size:70px; | ||
158 | + font-weight: bold; | ||
159 | + color:rgb(0, 153, 255); | ||
160 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff could not be displayed because it is too large.
metadata/kart_find/1/1/1/1/223bac07a837d44b749f1495e9666d2c49c79cd0efe3ce781a8f7aee51d2ff62.png
0 → 100644
108 KB
metadata/kart_find/1/1/1/1/7ca243ddfb124d1af0feb938ee6a765e29bfce3e1ec3658d4542aac2bcf9b011.png
0 → 100644
108 KB
metadata/kart_find/1/1/1/1/9b7d4666be0b92a153d47d4db7d985e023cfa3f63739e49581369c3f13b4d7ac.png
0 → 100644
64.3 KB
metadata/kart_find/1/1/1/2/8bf3ead6d464ac1c4c9644b3a349163e77a71f5b581b9a4f4916506a5398fa63.png
0 → 100644
61.9 KB
metadata/kart_find/1/1/1/2/8c98afa0827c5fef40c6b775fa41695200ec84a7ca339b8446ad91d73c125938.png
0 → 100644
105 KB
metadata/kart_find/1/1/2/1/0fa395855aa3ce68b907f899f4b54e7ec7ef7e3c778747204a87b0e2917ee5ab.png
0 → 100644
88.8 KB
metadata/kart_find/1/1/2/1/1f13e1ac1de0f1e6e44e08865c1da2ca34eb8c0dc458de518fa0b186640ed337.png
0 → 100644
104 KB
metadata/kart_find/1/1/2/1/228d70411816203f5cd982bb8f3823b00d03eefd99cff01f64ece59b8f57e05e.png
0 → 100644
116 KB
metadata/kart_find/1/1/2/1/298fd9a5d31c282c364e9ec87fa5b9bfdc70f34723213bcd9dfd949a1e73ab79.png
0 → 100644
103 KB
metadata/kart_find/1/1/2/1/2ddc359d69bd9aa5671e7fa62691a9cc5267d7ecc4b275b942119fde46ccce06.png
0 → 100644
99.8 KB
metadata/kart_find/1/1/2/1/3133ba6a1641ea17796b49afd437dbded5961c257fe029847fbbeee900206ece.png
0 → 100644
87.4 KB
metadata/kart_find/1/1/2/1/3bc11a93c57972b9b2a1b71c49d3b069b548b22a6270191da9a73492e5e915a3.png
0 → 100644
123 KB
metadata/kart_find/1/1/2/1/a142d9bb5a04f227108639b0f99132c4681e90d32c1933ea297a02c3d0da9101.png
0 → 100644
87.1 KB
metadata/kart_find/1/1/2/1/ac8884ba0ee57debdb08a80523cb477a4d89a5981f75fd3398d13793a8dd4ead.png
0 → 100644
97.3 KB
metadata/kart_find/1/1/2/1/c8f72cb322dd78a102ac2a7a629e35ca10d3ff36c2783fef34ba10d2c7ec79a6.png
0 → 100644
102 KB
metadata/kart_find/1/1/2/1/d5368114109e033bc396dec15a3c6524c78e41ebddb75fa8c82925f035c2c4ed.png
0 → 100644
102 KB
metadata/kart_find/1/1/2/1/dfbe8446f89a3827aa750b2533f72c3f9dd55c2966b6723f40e5ed7888e0b963.png
0 → 100644
109 KB
metadata/kart_find/1/1/2/1/f135f422eee20bfb6b37257101959fe1d784098ba891581222d5e5def9e09bb9.png
0 → 100644
111 KB
metadata/kart_find/1/1/2/2/0b90f2b1eeb7c1c02185b1005f853c62d1994e52130485c07ab5d147317d58d4.png
0 → 100644
85.7 KB
metadata/kart_find/1/1/2/2/0bdef364d96afc98f1dd4928b02a5fa8e2571f7542cd09f5d56c274c75f1b6be.png
0 → 100644
85.9 KB
metadata/kart_find/1/1/2/2/13fba05b7aad6ef797ef6f4492cec5716bc2a66de95d14e9201963c089cab571.png
0 → 100644
85.5 KB
metadata/kart_find/1/1/2/2/2033aa67f330665a0f95796f33d70921dc2ceb206e2eb2efb150ca1aae6f189e.png
0 → 100644
101 KB
metadata/kart_find/1/1/2/2/4dc5b9e2f533cf02168def54cde6d9e61ffc2707f3937e3f8eda85c2042631dd.png
0 → 100644
80.2 KB
metadata/kart_find/1/1/2/2/644856769b6064129002126db81fa0bc255aa3131c1dd365ea386f312670bac4.png
0 → 100644
111 KB
metadata/kart_find/1/1/2/2/a3729aaa4289551e432860bd37e99851f60f7a5cf64c72357431d4a0b75c28c9.png
0 → 100644
96.5 KB
metadata/kart_find/1/1/2/2/d1af95d2dc9ce579eebf58a2402853f86e8aa0111aab244a3165d7ade275e5a6.png
0 → 100644
79.7 KB
metadata/kart_find/1/1/2/2/ea5dc37d638d18f54ae90e7fe384bfbda47fad979e5160046def8f053b693812.png
0 → 100644
80.5 KB
metadata/kart_find/1/1/2/2/eeace84fee7a6e17aaf1ba6504e6f95e5367c2eead86107362cd765ea69237e4.png
0 → 100644
100 KB
metadata/kart_find/1/2/1/1/1d4423326e3d0e8b12d5d01ede67c076b5cc753e43d4b374b27c1313da685b6d.png
0 → 100644
113 KB
metadata/kart_find/1/2/1/1/22f6e7faf98caf43b1bad667f77daabb4d77656226448f8366fc81e5dfd125e6.png
0 → 100644
96.2 KB
metadata/kart_find/1/2/1/1/73ca89c76b2047ba7b9e05f37481b902ac684924ec3049ae6b79f26eb0f870d0.png
0 → 100644
60 KB
metadata/kart_find/1/2/1/2/0317a3809d446792b81fd8edb876899eb2a1e44dcd42a5560e356db5c02ba119.png
0 → 100644
95.2 KB
metadata/kart_find/1/2/1/2/932ca7b0cb7c46a3aa8816ad840f67ab644b5ad0cead000c919b41f5f9a9462a.png
0 → 100644
97.2 KB
metadata/kart_find/1/2/1/2/faf963e754c62f90d61f127d4c7f17d04947cce93acd961ededf03a21427cb9b.png
0 → 100644
109 KB
metadata/kart_find/1/2/2/1/0b41bf8620b5851d7dcc7eb33765d506e530b8d2e612e6c60823f2b890da3401.png
0 → 100644
108 KB
metadata/kart_find/1/2/2/1/33019a5c7afcb1e670930863dde175919ddc3c3625a8b136fddb49c9e2723b31.png
0 → 100644
94.5 KB
metadata/kart_find/1/2/2/1/5d15754ae3c20aaa91cc5d2ea1af154d66faa14fc17a85c99526dfebe2a4e894.png
0 → 100644
101 KB
metadata/kart_find/1/2/2/1/66e6e85ff4ae329f96067f6da4827a4e679ccb0b9a8fafebb9549f08fe182355.png
0 → 100644
108 KB
metadata/kart_find/1/2/2/1/780559320bd6ecfdca7cdf7c91795de307d49116370a88b346c04bacc2614b7a.png
0 → 100644
106 KB
metadata/kart_find/1/2/2/1/bc49899f94c899f7cbf43174ec974cd307fcc504195b2dfc752226ad19c56d39.png
0 → 100644
81.5 KB
metadata/kart_find/1/2/2/1/bfe4ff3674ea282f7eb50e3e6c573a0d344ff8cc4633f95c5045f8149b69d0a8.png
0 → 100644
101 KB
metadata/kart_find/1/2/2/1/c75c77ad6eb49f84dbbd8b60c9ca1d46c9480ac2eee421c600035b276e8ea7a9.png
0 → 100644
123 KB
metadata/kart_find/1/2/2/1/f83d00a205f6cb7692a484593b0e068b1a7548187b3ff38ec9a8b59a2d243282.png
0 → 100644
100 KB
metadata/kart_find/1/2/2/2/025d4751e4b8fb24b4c113923b83c44032e3c548c9ce8d6ea8575be986f670cb.png
0 → 100644
109 KB
metadata/kart_find/1/2/2/2/06dba1e650b2eccf7dadadcda1853eea1678a0bd0054dcd50817b1247745520b.png
0 → 100644
63.2 KB
metadata/kart_find/1/2/2/2/188eb8b4a20e880de719b62c6c25d3f44368b2b59b485228090a3a720b50eaf7.png
0 → 100644
103 KB
metadata/kart_find/1/2/2/2/18bc562d2abb76f1a7692912a02a582ecd75b657fadd84d1c97d03046220b9a7.png
0 → 100644
103 KB
metadata/kart_find/1/2/2/2/2bc7cb0d7e81efbc1155b30c09ce6aafca6e04fc65f19391de8042ccf14e6ce4.png
0 → 100644
79.1 KB
metadata/kart_find/1/2/2/2/2ccb6e1905fbbb77e021189f0c1e250cca223afda42fdf8ede6058f827cb7e97.png
0 → 100644
93.4 KB
metadata/kart_find/1/2/2/2/8573694f3c5aa5eb181139a67ac6bce8043cb7530584a0590dae08223e979701.png
0 → 100644
67.9 KB
metadata/kart_find/2/1/1/1/48672c3e0d830ae70c8585765b7254a63740a1aa62038ec681cd799e76b667ba.png
0 → 100644
79.1 KB
metadata/kart_find/2/1/1/1/a79fa7d8686f8eac9a4dce4a7d84c308156f68cbe218b4e719a243a008fbecad.png
0 → 100644
92.7 KB
metadata/kart_find/2/1/1/1/b122060d62e353fcfa8e34ac166593abda59a4a601a4496b00b3dfc31fa4133a.png
0 → 100644
72.9 KB
metadata/kart_find/2/1/1/2/225e479dd453b0836483f1ca33179557b4cfb48e6a33ffa370ace4093c72ed05.png
0 → 100644
67.1 KB
metadata/kart_find/2/1/1/2/2c12aa4251a0496059801ac25faeb60e347cd48af9eda7a98107da4d63dc354e.png
0 → 100644
57.6 KB
metadata/kart_find/2/1/1/2/3e23b0bfc7338fee42b64de5d3f4f0fc1da69e266025271b1caf9dc75d876d6a.png
0 → 100644
60.6 KB
metadata/kart_find/2/1/1/2/42aa8bd5d3dfe328c1ec74b05fd24481bf400622c07c64cf46a844bde72dfdd1.png
0 → 100644
76.7 KB
metadata/kart_find/2/1/1/2/4a7e6655de31124ecc24bc01fc94d3891a06fdfbf3d769be73b33d1effadabb1.png
0 → 100644
69.7 KB
metadata/kart_find/2/1/1/2/6a6ffb9b48e22e8ebc02e7fb91cca77b4dbcee1e65d4109031680020f1f92b54.png
0 → 100644
82 KB
metadata/kart_find/2/1/2/1/3fc3b2e4331e94b7ca87e3fe6eaac8924d8f85b8823351a71acac036d0f7d362.png
0 → 100644
68.1 KB
metadata/kart_find/2/1/2/1/977429cf5fb9745b8d4effa0f0059d794d95f8a3906dd1b05122712cbe50152f.png
0 → 100644
74.8 KB
metadata/kart_find/2/1/2/1/afd149609cef0d6223ca19479851ca2fa6f47277885ffe3cafb21f91811ff42f.png
0 → 100644
65.1 KB
metadata/kart_find/2/1/2/2/2c91e579e1f6f211f1545c855e15841bd17c5471e683d2980e0a04959a7ed9ed.png
0 → 100644
64 KB
metadata/kart_find/2/1/2/2/394d4c4d6bae422a4c9d66185798cc39806b87e70bb5709ae24efd79bb973a32.png
0 → 100644
62 KB
metadata/kart_find/2/1/2/2/4d47814fce6c1ef5547d0d942d9c52f09f2c357f5b6dfb63b07e41dfcf4db095.png
0 → 100644
57.2 KB
metadata/kart_find/2/1/2/2/6db4d8d247ddcdf43aa01f1941f605f5b8aa3a397a7427234110ad5e9d82634e.png
0 → 100644
46.1 KB
metadata/kart_find/2/1/2/2/7e71d069147fd4af871c6f7f7aa07d732a1e899e1b65f4b9e8f01083ea997684.png
0 → 100644
47.1 KB
metadata/kart_find/2/1/2/2/83cefdf6f627dec965567b32d3955715fb9f247d562a6597ef217cdd789f91e0.png
0 → 100644
56 KB
metadata/kart_find/2/1/2/2/913c6f8fc7ba3777b6cca8034a0806c2f014cab6e12625c7f1e7a3da11f5aa03.png
0 → 100644
57.2 KB
metadata/kart_find/2/1/2/2/a22e76ee6f04a3e69759078c68495f830e2f7acace0bb898f37118ed44782e44.png
0 → 100644
56 KB
metadata/kart_find/2/1/2/2/a3d0e7794313dff22cb1f85ad3631cc154fbaac2bbd8b3d7f8a0a77614b7d5d8.png
0 → 100644
22.4 KB
metadata/kart_find/2/1/2/2/d189e32d169ac0a1a4fcab14b847874722dfd944bfd66121b01bc1c829756ce6.png
0 → 100644
50.7 KB
metadata/kart_find/2/2/1/1/36c33e95684baba17bf9fd8396b3b861768d40f74105aec95820fe2979c48b80.png
0 → 100644
75.7 KB
metadata/kart_find/2/2/1/2/7042861072f748dbb2ecfe834147503f9745a6b8a29715b4d577d5065e9f6bce.png
0 → 100644
69.7 KB
metadata/kart_find/2/2/2/1/0000cd7b578ef4817ccf9655e16291eacb7ca9b6a1f6ede97adddd58e3d10c9c.png
0 → 100644
63.4 KB
metadata/kart_find/2/2/2/1/2c575ee57912c2a82e7ef5312d26bfb65ef88dbf44fa9236884a55104617f828.png
0 → 100644
84.1 KB
metadata/kart_find/2/2/2/1/9de25d1a16c3bea5baf82a89775c4e7bcc237edd474477e5199ae09398ae14ab.png
0 → 100644
85.1 KB
metadata/kart_find/2/2/2/1/9f0b05ab10b8a3408abec938b6642743bb485a2393aa9a51f51c0a2896898817.png
0 → 100644
84.1 KB
metadata/kart_find/2/2/2/1/c66cf3ef77a406bbfe2418a7d9576d9af73d89f09972aee03c832a7d10d920ed.png
0 → 100644
95.5 KB
metadata/kart_find/2/2/2/2/18326ee1daf1218c73bff2459d45d2deaa0124065259b624066b8b6f4ad81c72.png
0 → 100644
32.2 KB
metadata/kart_find/2/2/2/2/35f2588dce088370aee670e5622f16e1de8352e0a73fa6f182ec5ea484922625.png
0 → 100644
63 KB
metadata/kart_find/2/2/2/2/36bad700ef8a68953ae176309798a3a5262f761ac454b3b6d056d1a9025095a3.png
0 → 100644
89.5 KB
metadata/kart_find/2/2/2/2/439f45217efa89dcb18ab6d313becece4793bfef4b3ef859990f18ce68493f14.png
0 → 100644
37.4 KB
metadata/kart_special/안한부분.txt
deleted
100644 → 0
metadata/result/background.png
0 → 100644
24.9 KB
metadata/result/kart.png
0 → 100644
41.2 KB
metadata/result/keyword.png
0 → 100644
17.1 KB
1 | +#uni | ||
2 | +{ | ||
3 | + position:absolute; | ||
4 | + top:60%; | ||
5 | + left:80%; | ||
6 | +} | ||
7 | +#dao | ||
8 | +{ | ||
9 | + position:absolute; | ||
10 | + top:55%; | ||
11 | +} | ||
12 | + | ||
1 | div | 13 | div |
2 | { | 14 | { |
3 | width: 500px; | 15 | width: 500px; |
... | @@ -60,3 +72,10 @@ div | ... | @@ -60,3 +72,10 @@ div |
60 | border-radius: 50%; | 72 | border-radius: 50%; |
61 | animation: spin 1s linear infinite; | 73 | animation: spin 1s linear infinite; |
62 | } | 74 | } |
75 | + | ||
76 | +#index | ||
77 | +{ | ||
78 | + position:absolute; | ||
79 | + left:55%; | ||
80 | + | ||
81 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -35,7 +35,10 @@ | ... | @@ -35,7 +35,10 @@ |
35 | </head> | 35 | </head> |
36 | 36 | ||
37 | <body> | 37 | <body> |
38 | + <img id="dao" src="image/bdao.png"></img> | ||
39 | + <img id="uni" src="image/buni.png"></img> | ||
38 | <div class="box" id="div1"> | 40 | <div class="box" id="div1"> |
41 | + <img id="index" src="image/one.png"></img> | ||
39 | <text id="tex1">Q1.</text><br> | 42 | <text id="tex1">Q1.</text><br> |
40 | <text id="tex2">대표 카트를 지정할 때</text> | 43 | <text id="tex2">대표 카트를 지정할 때</text> |
41 | <button id="btn" onClick="any(1,1)">가장 좋은 신규 카트로 전시한다.</button> | 44 | <button id="btn" onClick="any(1,1)">가장 좋은 신규 카트로 전시한다.</button> |
... | @@ -43,6 +46,7 @@ | ... | @@ -43,6 +46,7 @@ |
43 | </div> | 46 | </div> |
44 | 47 | ||
45 | <div class="box" id="div2" style="display:none"> | 48 | <div class="box" id="div2" style="display:none"> |
49 | + <img id="index" src="image/two.png"></img> | ||
46 | <text id="tex1">Q2.</text><br> | 50 | <text id="tex1">Q2.</text><br> |
47 | <text id="tex2">3....2.....1 GAME START</text> | 51 | <text id="tex2">3....2.....1 GAME START</text> |
48 | <button id="btn" onClick="any(2,1)">부스터를 사용하여 치고나간다.</button> | 52 | <button id="btn" onClick="any(2,1)">부스터를 사용하여 치고나간다.</button> |
... | @@ -50,6 +54,7 @@ | ... | @@ -50,6 +54,7 @@ |
50 | </div> | 54 | </div> |
51 | 55 | ||
52 | <div class="box" id="div3" style="display:none"> | 56 | <div class="box" id="div3" style="display:none"> |
57 | + <img id="index" src="image/three.png"></img> | ||
53 | <text id="tex1">Q3.</text><br> | 58 | <text id="tex1">Q3.</text><br> |
54 | <text id="tex2">스피드 전에서 중요하게 생각하는 것</text> | 59 | <text id="tex2">스피드 전에서 중요하게 생각하는 것</text> |
55 | <button id="btn" onClick="any(3,1)">부스터 갯수</button> | 60 | <button id="btn" onClick="any(3,1)">부스터 갯수</button> |
... | @@ -57,6 +62,7 @@ | ... | @@ -57,6 +62,7 @@ |
57 | </div> | 62 | </div> |
58 | 63 | ||
59 | <div class="box" id="div4" style="display:none"> | 64 | <div class="box" id="div4" style="display:none"> |
65 | + <img id="index" src="image/four.png"></img> | ||
60 | <text id="tex1">Q4.</text><br> | 66 | <text id="tex1">Q4.</text><br> |
61 | <text id="tex2">팀전을 하는 경우</text> | 67 | <text id="tex2">팀전을 하는 경우</text> |
62 | <button id="btn" onClick="any(4,1)">1등이 우선! 혼자 치고 나가기</button> | 68 | <button id="btn" onClick="any(4,1)">1등이 우선! 혼자 치고 나가기</button> |
... | @@ -64,6 +70,7 @@ | ... | @@ -64,6 +70,7 @@ |
64 | </div> | 70 | </div> |
65 | 71 | ||
66 | <div class="box" id="div5" style="display:none"> | 72 | <div class="box" id="div5" style="display:none"> |
73 | + <img id="index" src="image/five.png"></img> | ||
67 | <text id="tex1">Q5.</text><br> | 74 | <text id="tex1">Q5.</text><br> |
68 | <text id="tex2">현재 1등을 잡기위해</text> | 75 | <text id="tex2">현재 1등을 잡기위해</text> |
69 | <button id="btn" onClick="any(5,1)">아이템을 사용하여 격추한다.</button> | 76 | <button id="btn" onClick="any(5,1)">아이템을 사용하여 격추한다.</button> |
... | @@ -71,6 +78,7 @@ | ... | @@ -71,6 +78,7 @@ |
71 | </div> | 78 | </div> |
72 | 79 | ||
73 | <div class="box" id="div6" style="display:none"> | 80 | <div class="box" id="div6" style="display:none"> |
81 | + <img id="index" src="image/six.png"></img> | ||
74 | <text id="tex1">Q6.</text><br> | 82 | <text id="tex1">Q6.</text><br> |
75 | <text id="tex2">나는 카트를 볼 때</text> | 83 | <text id="tex2">나는 카트를 볼 때</text> |
76 | <button id="btn" onClick="any(6,1)">성능이 우선이다.</button> | 84 | <button id="btn" onClick="any(6,1)">성능이 우선이다.</button> |
... | @@ -78,11 +86,11 @@ | ... | @@ -78,11 +86,11 @@ |
78 | </div> | 86 | </div> |
79 | 87 | ||
80 | <div class="box" id="div7" style="display:none"> | 88 | <div class="box" id="div7" style="display:none"> |
89 | + <img id="index" src="image/seven.png"></img> | ||
81 | <text id="tex1">Q7.</text><br> | 90 | <text id="tex1">Q7.</text><br> |
82 | <text id="tex2">넥슨 캐쉬가 생겼다.</text> | 91 | <text id="tex2">넥슨 캐쉬가 생겼다.</text> |
83 | <button id="btn" onClick="any2(1); location.href='game/result'">유료 카트를 구매한다.</button> | 92 | <button id="btn" onClick="any2(1); location.href='game/result'">유료 카트를 구매한다.</button> |
84 | <button id="btn" onClick="any2(2); location.href='game/result'">다른 게임(피파, 메이플)에 투자</button> | 93 | <button id="btn" onClick="any2(2); location.href='game/result'">다른 게임(피파, 메이플)에 투자</button> |
85 | </div> | 94 | </div> |
86 | - | ||
87 | </body> | 95 | </body> |
88 | </html> | 96 | </html> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | +<link rel="stylesheet" type="text/css" href="game_result.css" /> | ||
5 | +</head> | ||
4 | <script> | 6 | <script> |
5 | var item='<%- body %>'; | 7 | var item='<%- body %>'; |
6 | var url='<%- url %>'; | 8 | var url='<%- url %>'; |
9 | + var stritem=item.split("."); | ||
10 | + function load() { | ||
11 | + return fetch("kart.json") | ||
12 | + .then((response) => response.json()) | ||
13 | + .then((json) => json.kart); | ||
14 | + } | ||
15 | + load().then((kart) => { | ||
16 | + const div_target = document.querySelector("#total"); | ||
17 | + var obj = document.createElement('text'); | ||
18 | + var obj2=document.createElement('text'); | ||
19 | + for (var i = 0; i < kart.length; i++) { | ||
20 | + if (kart[i]['id'] == stritem[0]) { | ||
21 | + obj.id="text1"; | ||
22 | + obj2.id="text2"; | ||
23 | + obj.innerText = "나에게 맞는 카트는 "; | ||
24 | + obj2.innerText=kart[i]['name']; | ||
25 | + break; | ||
26 | + } | ||
27 | + } | ||
28 | + div_target.append(obj); | ||
29 | + div_target.append(obj2); | ||
30 | + }); | ||
31 | + | ||
7 | function Img() { | 32 | function Img() { |
8 | return url+item; | 33 | return url+item; |
9 | } | 34 | } |
10 | </script> | 35 | </script> |
11 | -</head> | ||
12 | <body> | 36 | <body> |
37 | + <div id="total"> | ||
38 | + <div id="words"> | ||
39 | + <img id="imgkey" src="result/keyword.png"> | ||
40 | + </div> | ||
41 | + <div id="rkart"> | ||
13 | <img id="imgId" src=""> | 42 | <img id="imgId" src=""> |
14 | <script>document.getElementById("imgId").src = Img()</script> | 43 | <script>document.getElementById("imgId").src = Img()</script> |
15 | - | 44 | + </div> |
45 | + </div> | ||
16 | </body> | 46 | </body> |
47 | +<script> | ||
48 | + var keyword="<%- keyword %>"; | ||
49 | + var keyarr=keyword.split(','); | ||
50 | + const div_target=document.querySelector("#words"); | ||
51 | + var i=0, index=0; | ||
52 | + while(index<7){ | ||
53 | + if(keyarr[index]!="empty"){ | ||
54 | + var obj=document.createElement('button'); | ||
55 | + obj.id="word"+(i+1); | ||
56 | + obj.innerText='#'+keyarr[index]; | ||
57 | + div_target.append(obj); | ||
58 | + i++; | ||
59 | + } | ||
60 | + index++; | ||
61 | + } | ||
62 | +</script> | ||
17 | </html> | 63 | </html> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
views/image/bdao.png
0 → 100644
68.4 KB
views/image/buni.png
0 → 100644
90 KB
views/image/dao.png
0 → 100644
64.8 KB
views/image/five.png
0 → 100644
1.73 KB
views/image/four.png
0 → 100644
2.41 KB
views/image/one.png
0 → 100644
1.6 KB
views/image/seven.png
0 → 100644
1.37 KB
views/image/six.png
0 → 100644
1.58 KB
views/image/three.png
0 → 100644
2.36 KB
views/image/two.png
0 → 100644
2.35 KB
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment