Showing
12 changed files
with
485 additions
and
12 deletions
api/card/crawlerMulligan.js
0 → 100644
1 | +const puppeteer=require('puppeteer'); | ||
2 | +const cheerio=require('cheerio'); | ||
3 | + | ||
4 | +exports.getDecks=(cardIds)=>{ | ||
5 | + | ||
6 | + let idInQuery=cardIds[0] | ||
7 | + for(let i=1;i<cardIds.length;i++){ | ||
8 | + idInQuery+= '%2C'+cardIds[i] | ||
9 | + } | ||
10 | + const getContent=()=>{ | ||
11 | + return new Promise((resolve,reject)=>{ | ||
12 | + const asyncFunc=async ()=>{ | ||
13 | + const browser=await puppeteer.launch() | ||
14 | + try{ | ||
15 | + const page=await browser.newPage() | ||
16 | + await page.setViewport({width:1366,height:768}) | ||
17 | + await page.goto(`https://hsreplay.net/decks/#timeRange=LAST_30_DAYS&includedCards=${idInQuery}`,{waitUntil: 'networkidle2'}) | ||
18 | + const content=await page.content() | ||
19 | + browser.close() | ||
20 | + return content | ||
21 | + } | ||
22 | + catch(err) | ||
23 | + { | ||
24 | + console.log(err) | ||
25 | + browser.close() | ||
26 | + } | ||
27 | + } | ||
28 | + resolve(asyncFunc()) | ||
29 | + }) | ||
30 | + } | ||
31 | + | ||
32 | + const getDeckHref=(content)=>{ | ||
33 | + const $=cheerio.load(content) | ||
34 | + let deck=$('#decks-container > div > main > div.deck-list > ul > li:nth-child(2)').find('a') | ||
35 | + const deckHref=$(deck).attr('href') | ||
36 | + return deckHref | ||
37 | + } | ||
38 | + const getDeckConetent=(href)=>{ | ||
39 | + const asyncFunc=async ()=>{ | ||
40 | + const browser=await puppeteer.launch() | ||
41 | + try{ | ||
42 | + const page=await browser.newPage() | ||
43 | + await page.setViewport({width:1366,height:768}) | ||
44 | + await page.goto(`https://hsreplay.net${href}?hl=ko`,{waitUntil: 'networkidle2'}) | ||
45 | + const content=await page.content() | ||
46 | + browser.close() | ||
47 | + return content | ||
48 | + } | ||
49 | + catch(err) | ||
50 | + { | ||
51 | + console.log(err) | ||
52 | + browser.close() | ||
53 | + } | ||
54 | + } | ||
55 | + return asyncFunc() | ||
56 | + } | ||
57 | + const getMulligan=(content)=>{ | ||
58 | + const $=cheerio.load(content) | ||
59 | + let cardNames=$('.card-name') | ||
60 | + let cardWinRates=$('.table-cell') | ||
61 | + let cards=[] | ||
62 | + for(let i=0;i<cardNames.length;i++){ | ||
63 | + let cardName=$(cardNames[i]).text() | ||
64 | + let cardWinRate=$(cardWinRates[6*i]).text() | ||
65 | + cardWinRate=cardWinRate.replace('▼','') | ||
66 | + cardWinRate=cardWinRate.replace('▲','') | ||
67 | + cardWinRate=cardWinRate.replace('%','') | ||
68 | + cards.push({cardName:cardName,cardWinRate:cardWinRate}) | ||
69 | + } | ||
70 | + cards.sort((a,b)=>{ | ||
71 | + return a.cardWinRate<b.cardWinRate ? 1:-1 | ||
72 | + }) | ||
73 | + console.log(cards) | ||
74 | + | ||
75 | + } | ||
76 | + getContent() | ||
77 | + .then(getDeckHref) | ||
78 | + .then(getDeckConetent) | ||
79 | + .then(getMulligan) | ||
80 | +} |
api/card/crawlerOpponent.js
0 → 100644
1 | +const puppeteer=require('puppeteer'); | ||
2 | +const cheerio=require('cheerio'); | ||
3 | + | ||
4 | +exports.getDecks=(opponentClass)=>{ | ||
5 | + | ||
6 | + const getContent=()=>{ | ||
7 | + return new Promise((resolve,reject)=>{ | ||
8 | + const asyncFunc=async ()=>{ | ||
9 | + const browser=await puppeteer.launch() | ||
10 | + try{ | ||
11 | + const page=await browser.newPage() | ||
12 | + await page.setViewport({width:1366,height:768}) | ||
13 | + await page.goto(`https://hsreplay.net/decks/#timeRange=LAST_30_DAYS&playerClasses=${opponentClass}?hl=ko`,{waitUntil: 'networkidle2'}) | ||
14 | + const content=await page.content() | ||
15 | + browser.close() | ||
16 | + return content | ||
17 | + } | ||
18 | + catch(err) | ||
19 | + { | ||
20 | + console.log(err) | ||
21 | + browser.close() | ||
22 | + } | ||
23 | + } | ||
24 | + resolve(asyncFunc()) | ||
25 | + }) | ||
26 | + } | ||
27 | + | ||
28 | + const getDeckInfo=(content)=>{ | ||
29 | + const $=cheerio.load(content) | ||
30 | + let deckNames=$('.deck-name') | ||
31 | + let deckGames=$('.game-count') | ||
32 | + let decks=[] | ||
33 | + for(let i=0;i<3;i++){ | ||
34 | + let deckName=$(deckNames[i]).text() | ||
35 | + let deckGame=$(deckGames[i]).text() | ||
36 | + decks.push({deckTitle:deckName,deckGame:deckGame}) | ||
37 | + } | ||
38 | + console.log(decks) | ||
39 | + return decks | ||
40 | + } | ||
41 | + getContent() | ||
42 | + .then(getDeckInfo) | ||
43 | +} |
api/card/getCardId.js
0 → 100644
1 | +const mysql=require('../../database/mysql') | ||
2 | + | ||
3 | +exports.GetCardId=(deckId)=>{ | ||
4 | + return new Promise((resolve,reject)=>{ | ||
5 | + mysql.getConnection((err,connection)=>{ | ||
6 | + if (err) throw err | ||
7 | + connection.query(`select cardId from card where deckId=\'${deckId}\'`,(err,results,fields)=>{ | ||
8 | + if (err) throw err | ||
9 | + resolve(results) | ||
10 | + }) | ||
11 | + connection.release() | ||
12 | + }) | ||
13 | + }) | ||
14 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
api/card/getMulligan.js
0 → 100644
1 | +const crawler=require('./crawlerMulligan') | ||
2 | +const getCardId=require('./getCardId') | ||
3 | + | ||
4 | +exports.GetMulligan=(req,res)=>{ | ||
5 | + const deckId=req.session.deckId || 113 | ||
6 | + const opponentClass=req.body.class || 'PALADIN' | ||
7 | + const DataCheck=()=>{ | ||
8 | + return new Promise((resolve,reject)=>{ | ||
9 | + if (!deckId || !opponentClass){ | ||
10 | + return reject({ | ||
11 | + code:'query_error', | ||
12 | + message:'query error', | ||
13 | + }) | ||
14 | + } | ||
15 | + resolve() | ||
16 | + }) | ||
17 | + } | ||
18 | + const GetCardId=()=>{ | ||
19 | + return getCardId.GetCardId(deckId) | ||
20 | + } | ||
21 | + const CrawlerMulligan=(cardIds)=>{ | ||
22 | + return crawler.getDecks(cardIds) | ||
23 | + } | ||
24 | + DataCheck() | ||
25 | + .then(GetCardId) | ||
26 | + .then(CrawlerMulligan) | ||
27 | + .then((cards)=>{ | ||
28 | + res.status(200).json(cards) | ||
29 | + }) | ||
30 | + .catch((err)=>{ | ||
31 | + res.status(500).json(err) | ||
32 | + }) | ||
33 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
api/card/getOpponent.js
0 → 100644
1 | +const request=require('request') | ||
2 | +const iconv=require('iconv-lite') | ||
3 | +const charset=require('charset') | ||
4 | +const crawler=require('./crawlerOpponent') | ||
5 | + | ||
6 | +exports.GetOpponent=(req,res)=>{ | ||
7 | + const opponentClass=req.body.class | ||
8 | + const DataCheck=()=>{ | ||
9 | + return new Promise((resolve,reject)=>{ | ||
10 | + if(!opponentClass){ | ||
11 | + return reject({ | ||
12 | + code:'query_error', | ||
13 | + message:'query_error' | ||
14 | + }) | ||
15 | + } | ||
16 | + resolve() | ||
17 | + }) | ||
18 | + } | ||
19 | + const CralwerOpponent=()=>{ | ||
20 | + return crawler.getDecks(opponentClass) | ||
21 | + } | ||
22 | + DataCheck | ||
23 | + .then(CralwerOpponent) | ||
24 | + .then((decks)=>{ | ||
25 | + res.status(200).json(decks) | ||
26 | + }) | ||
27 | + .catch((err)=>{ | ||
28 | + res.status(500).json(err) | ||
29 | + }) | ||
30 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | const express=require('express') | 1 | const express=require('express') |
2 | const router=express.Router() | 2 | const router=express.Router() |
3 | 3 | ||
4 | +const getMulligan=require('./getMulligan') | ||
5 | + | ||
6 | +router.post('/getmulligan',getMulligan.GetMulligan) | ||
7 | + | ||
4 | module.exports=router | 8 | module.exports=router |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | -const crawler=require('./crawler') | 1 | +const crawler=require('./crawlerDeckCodes') |
2 | const cheerio=require('cheerio') | 2 | const cheerio=require('cheerio') |
3 | const addCards=require('../card/addCards') | 3 | const addCards=require('../card/addCards') |
4 | const addDeck=require('../../database/deck/addDeck') | 4 | const addDeck=require('../../database/deck/addDeck') | ... | ... |
... | @@ -6,7 +6,7 @@ exports.GetDeckId=(deckOwner,deckTitle)=>{ | ... | @@ -6,7 +6,7 @@ exports.GetDeckId=(deckOwner,deckTitle)=>{ |
6 | if (err) throw err | 6 | if (err) throw err |
7 | connection.query(`select * from deck where deckOwner=\'${deckOwner}\' and deckTitle=\'${deckTitle}\'`,(err,results,field)=>{ | 7 | connection.query(`select * from deck where deckOwner=\'${deckOwner}\' and deckTitle=\'${deckTitle}\'`,(err,results,field)=>{ |
8 | if (err) throw err | 8 | if (err) throw err |
9 | - console.log('result in getDeckId'+results[0]) | 9 | + //console.log('result in getDeckId'+results[0]) |
10 | connection.release() | 10 | connection.release() |
11 | resolve(results[0].id) | 11 | resolve(results[0].id) |
12 | }) | 12 | }) | ... | ... |
... | @@ -18,6 +18,14 @@ | ... | @@ -18,6 +18,14 @@ |
18 | "negotiator": "0.6.1" | 18 | "negotiator": "0.6.1" |
19 | } | 19 | } |
20 | }, | 20 | }, |
21 | + "agent-base": { | ||
22 | + "version": "4.2.1", | ||
23 | + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz", | ||
24 | + "integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==", | ||
25 | + "requires": { | ||
26 | + "es6-promisify": "^5.0.0" | ||
27 | + } | ||
28 | + }, | ||
21 | "ajv": { | 29 | "ajv": { |
22 | "version": "6.6.0", | 30 | "version": "6.6.0", |
23 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.0.tgz", | 31 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.0.tgz", |
... | @@ -47,6 +55,11 @@ | ... | @@ -47,6 +55,11 @@ |
47 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", | 55 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", |
48 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" | 56 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" |
49 | }, | 57 | }, |
58 | + "async-limiter": { | ||
59 | + "version": "1.0.0", | ||
60 | + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", | ||
61 | + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" | ||
62 | + }, | ||
50 | "asynckit": { | 63 | "asynckit": { |
51 | "version": "0.4.0", | 64 | "version": "0.4.0", |
52 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", | 65 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", |
... | @@ -62,6 +75,11 @@ | ... | @@ -62,6 +75,11 @@ |
62 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", | 75 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", |
63 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" | 76 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" |
64 | }, | 77 | }, |
78 | + "balanced-match": { | ||
79 | + "version": "1.0.0", | ||
80 | + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", | ||
81 | + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" | ||
82 | + }, | ||
65 | "basic-auth": { | 83 | "basic-auth": { |
66 | "version": "2.0.1", | 84 | "version": "2.0.1", |
67 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", | 85 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", |
... | @@ -125,6 +143,20 @@ | ... | @@ -125,6 +143,20 @@ |
125 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", | 143 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", |
126 | "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" | 144 | "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" |
127 | }, | 145 | }, |
146 | + "brace-expansion": { | ||
147 | + "version": "1.1.11", | ||
148 | + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", | ||
149 | + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", | ||
150 | + "requires": { | ||
151 | + "balanced-match": "^1.0.0", | ||
152 | + "concat-map": "0.0.1" | ||
153 | + } | ||
154 | + }, | ||
155 | + "buffer-from": { | ||
156 | + "version": "1.1.1", | ||
157 | + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", | ||
158 | + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" | ||
159 | + }, | ||
128 | "bytes": { | 160 | "bytes": { |
129 | "version": "3.0.0", | 161 | "version": "3.0.0", |
130 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", | 162 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", |
... | @@ -161,6 +193,38 @@ | ... | @@ -161,6 +193,38 @@ |
161 | "delayed-stream": "~1.0.0" | 193 | "delayed-stream": "~1.0.0" |
162 | } | 194 | } |
163 | }, | 195 | }, |
196 | + "concat-map": { | ||
197 | + "version": "0.0.1", | ||
198 | + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", | ||
199 | + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" | ||
200 | + }, | ||
201 | + "concat-stream": { | ||
202 | + "version": "1.6.2", | ||
203 | + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", | ||
204 | + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", | ||
205 | + "requires": { | ||
206 | + "buffer-from": "^1.0.0", | ||
207 | + "inherits": "^2.0.3", | ||
208 | + "readable-stream": "^2.2.2", | ||
209 | + "typedarray": "^0.0.6" | ||
210 | + }, | ||
211 | + "dependencies": { | ||
212 | + "readable-stream": { | ||
213 | + "version": "2.3.6", | ||
214 | + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", | ||
215 | + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", | ||
216 | + "requires": { | ||
217 | + "core-util-is": "~1.0.0", | ||
218 | + "inherits": "~2.0.3", | ||
219 | + "isarray": "~1.0.0", | ||
220 | + "process-nextick-args": "~2.0.0", | ||
221 | + "safe-buffer": "~5.1.1", | ||
222 | + "string_decoder": "~1.1.1", | ||
223 | + "util-deprecate": "~1.0.1" | ||
224 | + } | ||
225 | + } | ||
226 | + } | ||
227 | + }, | ||
164 | "content-disposition": { | 228 | "content-disposition": { |
165 | "version": "0.5.2", | 229 | "version": "0.5.2", |
166 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", | 230 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", |
... | @@ -310,6 +374,19 @@ | ... | @@ -310,6 +374,19 @@ |
310 | "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", | 374 | "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", |
311 | "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" | 375 | "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" |
312 | }, | 376 | }, |
377 | + "es6-promise": { | ||
378 | + "version": "4.2.5", | ||
379 | + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz", | ||
380 | + "integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg==" | ||
381 | + }, | ||
382 | + "es6-promisify": { | ||
383 | + "version": "5.0.0", | ||
384 | + "resolved": "http://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", | ||
385 | + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", | ||
386 | + "requires": { | ||
387 | + "es6-promise": "^4.0.3" | ||
388 | + } | ||
389 | + }, | ||
313 | "escape-html": { | 390 | "escape-html": { |
314 | "version": "1.0.3", | 391 | "version": "1.0.3", |
315 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", | 392 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", |
... | @@ -385,6 +462,17 @@ | ... | @@ -385,6 +462,17 @@ |
385 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", | 462 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", |
386 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" | 463 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" |
387 | }, | 464 | }, |
465 | + "extract-zip": { | ||
466 | + "version": "1.6.7", | ||
467 | + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", | ||
468 | + "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", | ||
469 | + "requires": { | ||
470 | + "concat-stream": "1.6.2", | ||
471 | + "debug": "2.6.9", | ||
472 | + "mkdirp": "0.5.1", | ||
473 | + "yauzl": "2.4.1" | ||
474 | + } | ||
475 | + }, | ||
388 | "extsprintf": { | 476 | "extsprintf": { |
389 | "version": "1.3.0", | 477 | "version": "1.3.0", |
390 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", | 478 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", |
... | @@ -400,6 +488,14 @@ | ... | @@ -400,6 +488,14 @@ |
400 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", | 488 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", |
401 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" | 489 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" |
402 | }, | 490 | }, |
491 | + "fd-slicer": { | ||
492 | + "version": "1.0.1", | ||
493 | + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", | ||
494 | + "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", | ||
495 | + "requires": { | ||
496 | + "pend": "~1.2.0" | ||
497 | + } | ||
498 | + }, | ||
403 | "finalhandler": { | 499 | "finalhandler": { |
404 | "version": "1.1.1", | 500 | "version": "1.1.1", |
405 | "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", | 501 | "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", |
... | @@ -451,6 +547,11 @@ | ... | @@ -451,6 +547,11 @@ |
451 | "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", | 547 | "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", |
452 | "integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" | 548 | "integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" |
453 | }, | 549 | }, |
550 | + "fs.realpath": { | ||
551 | + "version": "1.0.0", | ||
552 | + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", | ||
553 | + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" | ||
554 | + }, | ||
454 | "getpass": { | 555 | "getpass": { |
455 | "version": "0.1.7", | 556 | "version": "0.1.7", |
456 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", | 557 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", |
... | @@ -459,6 +560,19 @@ | ... | @@ -459,6 +560,19 @@ |
459 | "assert-plus": "^1.0.0" | 560 | "assert-plus": "^1.0.0" |
460 | } | 561 | } |
461 | }, | 562 | }, |
563 | + "glob": { | ||
564 | + "version": "7.1.3", | ||
565 | + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", | ||
566 | + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", | ||
567 | + "requires": { | ||
568 | + "fs.realpath": "^1.0.0", | ||
569 | + "inflight": "^1.0.4", | ||
570 | + "inherits": "2", | ||
571 | + "minimatch": "^3.0.4", | ||
572 | + "once": "^1.3.0", | ||
573 | + "path-is-absolute": "^1.0.0" | ||
574 | + } | ||
575 | + }, | ||
462 | "har-schema": { | 576 | "har-schema": { |
463 | "version": "2.0.0", | 577 | "version": "2.0.0", |
464 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", | 578 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", |
... | @@ -514,6 +628,30 @@ | ... | @@ -514,6 +628,30 @@ |
514 | "sshpk": "^1.7.0" | 628 | "sshpk": "^1.7.0" |
515 | } | 629 | } |
516 | }, | 630 | }, |
631 | + "https-proxy-agent": { | ||
632 | + "version": "2.2.1", | ||
633 | + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz", | ||
634 | + "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==", | ||
635 | + "requires": { | ||
636 | + "agent-base": "^4.1.0", | ||
637 | + "debug": "^3.1.0" | ||
638 | + }, | ||
639 | + "dependencies": { | ||
640 | + "debug": { | ||
641 | + "version": "3.2.6", | ||
642 | + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", | ||
643 | + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", | ||
644 | + "requires": { | ||
645 | + "ms": "^2.1.1" | ||
646 | + } | ||
647 | + }, | ||
648 | + "ms": { | ||
649 | + "version": "2.1.1", | ||
650 | + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", | ||
651 | + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" | ||
652 | + } | ||
653 | + } | ||
654 | + }, | ||
517 | "iconv-lite": { | 655 | "iconv-lite": { |
518 | "version": "0.4.24", | 656 | "version": "0.4.24", |
519 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", | 657 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", |
... | @@ -522,6 +660,15 @@ | ... | @@ -522,6 +660,15 @@ |
522 | "safer-buffer": ">= 2.1.2 < 3" | 660 | "safer-buffer": ">= 2.1.2 < 3" |
523 | } | 661 | } |
524 | }, | 662 | }, |
663 | + "inflight": { | ||
664 | + "version": "1.0.6", | ||
665 | + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", | ||
666 | + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", | ||
667 | + "requires": { | ||
668 | + "once": "^1.3.0", | ||
669 | + "wrappy": "1" | ||
670 | + } | ||
671 | + }, | ||
525 | "inherits": { | 672 | "inherits": { |
526 | "version": "2.0.3", | 673 | "version": "2.0.3", |
527 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", | 674 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", |
... | @@ -616,6 +763,27 @@ | ... | @@ -616,6 +763,27 @@ |
616 | "mime-db": "~1.37.0" | 763 | "mime-db": "~1.37.0" |
617 | } | 764 | } |
618 | }, | 765 | }, |
766 | + "minimatch": { | ||
767 | + "version": "3.0.4", | ||
768 | + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", | ||
769 | + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", | ||
770 | + "requires": { | ||
771 | + "brace-expansion": "^1.1.7" | ||
772 | + } | ||
773 | + }, | ||
774 | + "minimist": { | ||
775 | + "version": "0.0.8", | ||
776 | + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", | ||
777 | + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" | ||
778 | + }, | ||
779 | + "mkdirp": { | ||
780 | + "version": "0.5.1", | ||
781 | + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", | ||
782 | + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", | ||
783 | + "requires": { | ||
784 | + "minimist": "0.0.8" | ||
785 | + } | ||
786 | + }, | ||
619 | "morgan": { | 787 | "morgan": { |
620 | "version": "1.9.1", | 788 | "version": "1.9.1", |
621 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", | 789 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", |
... | @@ -696,6 +864,14 @@ | ... | @@ -696,6 +864,14 @@ |
696 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", | 864 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", |
697 | "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=" | 865 | "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=" |
698 | }, | 866 | }, |
867 | + "once": { | ||
868 | + "version": "1.4.0", | ||
869 | + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", | ||
870 | + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", | ||
871 | + "requires": { | ||
872 | + "wrappy": "1" | ||
873 | + } | ||
874 | + }, | ||
699 | "parse5": { | 875 | "parse5": { |
700 | "version": "3.0.3", | 876 | "version": "3.0.3", |
701 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz", | 877 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz", |
... | @@ -718,11 +894,21 @@ | ... | @@ -718,11 +894,21 @@ |
718 | "util": "^0.10.3" | 894 | "util": "^0.10.3" |
719 | } | 895 | } |
720 | }, | 896 | }, |
897 | + "path-is-absolute": { | ||
898 | + "version": "1.0.1", | ||
899 | + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", | ||
900 | + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" | ||
901 | + }, | ||
721 | "path-to-regexp": { | 902 | "path-to-regexp": { |
722 | "version": "0.1.7", | 903 | "version": "0.1.7", |
723 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", | 904 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", |
724 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" | 905 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" |
725 | }, | 906 | }, |
907 | + "pend": { | ||
908 | + "version": "1.2.0", | ||
909 | + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", | ||
910 | + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" | ||
911 | + }, | ||
726 | "performance-now": { | 912 | "performance-now": { |
727 | "version": "2.1.0", | 913 | "version": "2.1.0", |
728 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", | 914 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", |
... | @@ -738,6 +924,11 @@ | ... | @@ -738,6 +924,11 @@ |
738 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", | 924 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", |
739 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" | 925 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" |
740 | }, | 926 | }, |
927 | + "progress": { | ||
928 | + "version": "2.0.3", | ||
929 | + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", | ||
930 | + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" | ||
931 | + }, | ||
741 | "proxy-addr": { | 932 | "proxy-addr": { |
742 | "version": "2.0.4", | 933 | "version": "2.0.4", |
743 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", | 934 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", |
... | @@ -747,6 +938,11 @@ | ... | @@ -747,6 +938,11 @@ |
747 | "ipaddr.js": "1.8.0" | 938 | "ipaddr.js": "1.8.0" |
748 | } | 939 | } |
749 | }, | 940 | }, |
941 | + "proxy-from-env": { | ||
942 | + "version": "1.0.0", | ||
943 | + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", | ||
944 | + "integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=" | ||
945 | + }, | ||
750 | "psl": { | 946 | "psl": { |
751 | "version": "1.1.29", | 947 | "version": "1.1.29", |
752 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", | 948 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", |
... | @@ -757,6 +953,41 @@ | ... | @@ -757,6 +953,41 @@ |
757 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", | 953 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", |
758 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" | 954 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" |
759 | }, | 955 | }, |
956 | + "puppeteer": { | ||
957 | + "version": "1.11.0", | ||
958 | + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-1.11.0.tgz", | ||
959 | + "integrity": "sha512-iG4iMOHixc2EpzqRV+pv7o3GgmU2dNYEMkvKwSaQO/vMZURakwSOn/EYJ6OIRFYOque1qorzIBvrytPIQB3YzQ==", | ||
960 | + "requires": { | ||
961 | + "debug": "^4.1.0", | ||
962 | + "extract-zip": "^1.6.6", | ||
963 | + "https-proxy-agent": "^2.2.1", | ||
964 | + "mime": "^2.0.3", | ||
965 | + "progress": "^2.0.1", | ||
966 | + "proxy-from-env": "^1.0.0", | ||
967 | + "rimraf": "^2.6.1", | ||
968 | + "ws": "^6.1.0" | ||
969 | + }, | ||
970 | + "dependencies": { | ||
971 | + "debug": { | ||
972 | + "version": "4.1.0", | ||
973 | + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.0.tgz", | ||
974 | + "integrity": "sha512-heNPJUJIqC+xB6ayLAMHaIrmN9HKa7aQO8MGqKpvCA+uJYVcvR6l5kgdrhRuwPFHU7P5/A1w0BjByPHwpfTDKg==", | ||
975 | + "requires": { | ||
976 | + "ms": "^2.1.1" | ||
977 | + } | ||
978 | + }, | ||
979 | + "mime": { | ||
980 | + "version": "2.4.0", | ||
981 | + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.0.tgz", | ||
982 | + "integrity": "sha512-ikBcWwyqXQSHKtciCcctu9YfPbFYZ4+gbHEmE0Q8jzcTYQg5dHCr3g2wwAZjPoJfQVXZq6KXAjpXOTf5/cjT7w==" | ||
983 | + }, | ||
984 | + "ms": { | ||
985 | + "version": "2.1.1", | ||
986 | + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", | ||
987 | + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" | ||
988 | + } | ||
989 | + } | ||
990 | + }, | ||
760 | "qs": { | 991 | "qs": { |
761 | "version": "6.5.2", | 992 | "version": "6.5.2", |
762 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", | 993 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", |
... | @@ -849,6 +1080,14 @@ | ... | @@ -849,6 +1080,14 @@ |
849 | "lodash": "^4.13.1" | 1080 | "lodash": "^4.13.1" |
850 | } | 1081 | } |
851 | }, | 1082 | }, |
1083 | + "rimraf": { | ||
1084 | + "version": "2.6.2", | ||
1085 | + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", | ||
1086 | + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", | ||
1087 | + "requires": { | ||
1088 | + "glob": "^7.0.5" | ||
1089 | + } | ||
1090 | + }, | ||
852 | "safe-buffer": { | 1091 | "safe-buffer": { |
853 | "version": "5.1.2", | 1092 | "version": "5.1.2", |
854 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", | 1093 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", |
... | @@ -972,6 +1211,11 @@ | ... | @@ -972,6 +1211,11 @@ |
972 | "mime-types": "~2.1.18" | 1211 | "mime-types": "~2.1.18" |
973 | } | 1212 | } |
974 | }, | 1213 | }, |
1214 | + "typedarray": { | ||
1215 | + "version": "0.0.6", | ||
1216 | + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", | ||
1217 | + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" | ||
1218 | + }, | ||
975 | "uid-safe": { | 1219 | "uid-safe": { |
976 | "version": "2.1.5", | 1220 | "version": "2.1.5", |
977 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", | 1221 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", |
... | @@ -1037,6 +1281,27 @@ | ... | @@ -1037,6 +1281,27 @@ |
1037 | "core-util-is": "1.0.2", | 1281 | "core-util-is": "1.0.2", |
1038 | "extsprintf": "^1.2.0" | 1282 | "extsprintf": "^1.2.0" |
1039 | } | 1283 | } |
1284 | + }, | ||
1285 | + "wrappy": { | ||
1286 | + "version": "1.0.2", | ||
1287 | + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", | ||
1288 | + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" | ||
1289 | + }, | ||
1290 | + "ws": { | ||
1291 | + "version": "6.1.2", | ||
1292 | + "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz", | ||
1293 | + "integrity": "sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==", | ||
1294 | + "requires": { | ||
1295 | + "async-limiter": "~1.0.0" | ||
1296 | + } | ||
1297 | + }, | ||
1298 | + "yauzl": { | ||
1299 | + "version": "2.4.1", | ||
1300 | + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", | ||
1301 | + "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", | ||
1302 | + "requires": { | ||
1303 | + "fd-slicer": "~1.0.1" | ||
1304 | + } | ||
1040 | } | 1305 | } |
1041 | } | 1306 | } |
1042 | } | 1307 | } | ... | ... |
... | @@ -27,6 +27,7 @@ | ... | @@ -27,6 +27,7 @@ |
27 | "mysql": "^2.16.0", | 27 | "mysql": "^2.16.0", |
28 | "mysql-apostrophe": "^1.0.8", | 28 | "mysql-apostrophe": "^1.0.8", |
29 | "path": "^0.12.7", | 29 | "path": "^0.12.7", |
30 | + "puppeteer": "^1.11.0", | ||
30 | "request": "^2.88.0", | 31 | "request": "^2.88.0", |
31 | "request-promise": "^4.2.2" | 32 | "request-promise": "^4.2.2" |
32 | } | 33 | } | ... | ... |
... | @@ -32,6 +32,9 @@ | ... | @@ -32,6 +32,9 @@ |
32 | } | 32 | } |
33 | }) | 33 | }) |
34 | }) | 34 | }) |
35 | + $('#submitButton').click(function(){ | ||
36 | + | ||
37 | + }) | ||
35 | }) | 38 | }) |
36 | </script> | 39 | </script> |
37 | </head> | 40 | </head> |
... | @@ -66,17 +69,17 @@ | ... | @@ -66,17 +69,17 @@ |
66 | <div class="col-md-4"> | 69 | <div class="col-md-4"> |
67 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/c/c5/Garrosh_Hellscream%28635%29.png?version=bab934001bb784a94c59a47823d535a7" style="width:150px;height:200px;"/> | 70 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/c/c5/Garrosh_Hellscream%28635%29.png?version=bab934001bb784a94c59a47823d535a7" style="width:150px;height:200px;"/> |
68 | <br> | 71 | <br> |
69 | - <input type="radio" name="checkOpponent" value="전사"/>전사 | 72 | + <input type="radio" name="checkOpponent" value="WARRIOR"/>전사 |
70 | </div> | 73 | </div> |
71 | <div class="col-md-4"> | 74 | <div class="col-md-4"> |
72 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/4/4b/Thrall%28319%29.png?version=adcee55715548b949a7d973c2fddbd95" style="width:150px;height:200px;"/> | 75 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/4/4b/Thrall%28319%29.png?version=adcee55715548b949a7d973c2fddbd95" style="width:150px;height:200px;"/> |
73 | <br> | 76 | <br> |
74 | - <input type="radio" name="checkOpponent" value="주술사"/>주술사 | 77 | + <input type="radio" name="checkOpponent" value="SHAMAN"/>주술사 |
75 | </div> | 78 | </div> |
76 | <div class="col-md-4"> | 79 | <div class="col-md-4"> |
77 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/a/a4/Valeera_Sanguinar%282%29.png?version=84a816910b223169eb14cc93c20437b2" style="width:150px;height:200px;"/> | 80 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/a/a4/Valeera_Sanguinar%282%29.png?version=84a816910b223169eb14cc93c20437b2" style="width:150px;height:200px;"/> |
78 | <br> | 81 | <br> |
79 | - <input type="radio" name="checkOpponent" value="도적"/>도적 | 82 | + <input type="radio" name="checkOpponent" value="ROGUE"/>도적 |
80 | </div> | 83 | </div> |
81 | </div> | 84 | </div> |
82 | <br> | 85 | <br> |
... | @@ -86,17 +89,17 @@ | ... | @@ -86,17 +89,17 @@ |
86 | <div class="col-md-4"> | 89 | <div class="col-md-4"> |
87 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/4/4d/Uther_Lightbringer%28257%29.png?version=b45ade5ac3fdd2579160fe5d7b7c1b20" style="width:150px;height:200px;"/> | 90 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/4/4d/Uther_Lightbringer%28257%29.png?version=b45ade5ac3fdd2579160fe5d7b7c1b20" style="width:150px;height:200px;"/> |
88 | <br> | 91 | <br> |
89 | - <input type="radio" name="checkOpponent" value="성기사"/>성기사 | 92 | + <input type="radio" name="checkOpponent" value="PALADIN"/>성기사 |
90 | </div> | 93 | </div> |
91 | <div class="col-md-4"> | 94 | <div class="col-md-4"> |
92 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/a/a0/Rexxar%28484%29.png?version=c21b57837db15d20cc814f2bf45682b6" style="width:150px;height:200px;"/> | 95 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/a/a0/Rexxar%28484%29.png?version=c21b57837db15d20cc814f2bf45682b6" style="width:150px;height:200px;"/> |
93 | <br> | 96 | <br> |
94 | - <input type="radio" name="checkOpponent" value="사냥꾼"/>사냥꾼 | 97 | + <input type="radio" name="checkOpponent" value="HUNTER"/>사냥꾼 |
95 | </div> | 98 | </div> |
96 | <div class="col-md-4"> | 99 | <div class="col-md-4"> |
97 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/f/fa/Malfurion_Stormrage%28621%29.png?version=b3f5a40e33f33d32995f3becbdd7aa94" style="width:150px;height:200px;"/> | 100 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/f/fa/Malfurion_Stormrage%28621%29.png?version=b3f5a40e33f33d32995f3becbdd7aa94" style="width:150px;height:200px;"/> |
98 | <br> | 101 | <br> |
99 | - <input type="radio" name="checkOpponent" value="드루이드"/>드루이드 | 102 | + <input type="radio" name="checkOpponent" value="DRUID"/>드루이드 |
100 | </div> | 103 | </div> |
101 | </div> | 104 | </div> |
102 | <br> | 105 | <br> |
... | @@ -106,17 +109,17 @@ | ... | @@ -106,17 +109,17 @@ |
106 | <div class="col-md-4"> | 109 | <div class="col-md-4"> |
107 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/0/0a/Gul%27dan%28618%29.png?version=90f421585c6f2d493ba94e259a76190e" style="width:150px;height:200px;"/> | 110 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/0/0a/Gul%27dan%28618%29.png?version=90f421585c6f2d493ba94e259a76190e" style="width:150px;height:200px;"/> |
108 | <br> | 111 | <br> |
109 | - <input type="radio" name="checkOpponent" value="흑마법사"/>흑마법사 | 112 | + <input type="radio" name="checkOpponent" value="WARLOCK"/>흑마법사 |
110 | </div> | 113 | </div> |
111 | <div class="col-md-4"> | 114 | <div class="col-md-4"> |
112 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/3/3c/Jaina_Proudmoore%28320%29.png?version=75868a59a53f90bce829edeb66126b73" style="width:150px;height:200px;"/> | 115 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/3/3c/Jaina_Proudmoore%28320%29.png?version=75868a59a53f90bce829edeb66126b73" style="width:150px;height:200px;"/> |
113 | <br> | 116 | <br> |
114 | - <input type="radio" name="checkOpponent" value="마법사"/>마법사 | 117 | + <input type="radio" name="checkOpponent" value="MAGE"/>마법사 |
115 | </div> | 118 | </div> |
116 | <div class="col-md-4"> | 119 | <div class="col-md-4"> |
117 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/8/80/Anduin_Wrynn%28110%29.png?version=ba8ecc39b3fdd4a2ede72e046c434454" style="width:150px;height:200px;"/> | 120 | <img src="https://d1u5p3l4wpay3k.cloudfront.net/hearthstone_gamepedia/8/80/Anduin_Wrynn%28110%29.png?version=ba8ecc39b3fdd4a2ede72e046c434454" style="width:150px;height:200px;"/> |
118 | <br> | 121 | <br> |
119 | - <input type="radio" name="checkOpponent" value="사제"/>사제 | 122 | + <input type="radio" name="checkOpponent" value="PRIEST"/>사제 |
120 | </div> | 123 | </div> |
121 | </div> | 124 | </div> |
122 | <br> | 125 | <br> |
... | @@ -124,7 +127,7 @@ | ... | @@ -124,7 +127,7 @@ |
124 | <div class="row"> | 127 | <div class="row"> |
125 | <div class="col-md-5"></div> | 128 | <div class="col-md-5"></div> |
126 | <div class="col-md-2"> | 129 | <div class="col-md-2"> |
127 | - <input class="btn btn-lg btn-primary btn-block" type="button" value="확인"/> | 130 | + <input class="btn btn-lg btn-primary btn-block" type="button" id="submitButton" value="확인"/> |
128 | </div> | 131 | </div> |
129 | <div class="col-md-5"></div> | 132 | <div class="col-md-5"></div> |
130 | </div> | 133 | </div> | ... | ... |
-
Please register or login to post a comment