김한준

각 회차별 당첨번호 기능 추가

...@@ -4,55 +4,42 @@ ...@@ -4,55 +4,42 @@
4 <html> 4 <html>
5 5
6 <head> 6 <head>
7 -
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> 8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
10 <meta name="theme-color" content="#212121" /> 9 <meta name="theme-color" content="#212121" />
11 <title>로또 번호 생성기</title> 10 <title>로또 번호 생성기</title>
12 <link rel="stylesheet" type="text/css" href="/style.css"> 11 <link rel="stylesheet" type="text/css" href="/style.css">
13 <script src="/jquery.js" type="text/javascript"></script> 12 <script src="/jquery.js" type="text/javascript"></script>
14 - <script src="/coloring.js" type="text/javascript"></script>
15 <script src="/main.js" type="text/javascript"></script> 13 <script src="/main.js" type="text/javascript"></script>
16 - <script src="/sub__scroll.js" type="text/javascript"></script> 14 + <script id="a1" defer="" type="text/javascript" document.write('src=""')></script>
17 - <script defer="" type="text/javascript" src="http://lotto.kaisyu.com/api?method=get&amp;callback=loadlot"></script> 15 +
18 - 16 +
19 - <script language="javascript">
20 -<!--
21 -function getSelectValue(frm)
22 -{
23 - frm.textValue.value = frm.selectBox.options[frm.selectBox.selectedIndex].text;
24 -}
25 -//-->
26 -</script>
27 17
28 </head> 18 </head>
29 19
30 <body> 20 <body>
31 21
32 -
33 <H2>로또 번호 생성 & 당첨 확인</H2> 22 <H2>로또 번호 생성 & 당첨 확인</H2>
34 <p>로또 번호를 생성하고 각 회차의 당첨번호와 비교합니다</p> 23 <p>로또 번호를 생성하고 각 회차의 당첨번호와 비교합니다</p>
35 <p>회차 선택시 1등 당첨번호가 바뀌며 선택한 회차의 당첨번호와</p> 24 <p>회차 선택시 1등 당첨번호가 바뀌며 선택한 회차의 당첨번호와</p>
36 <p>생성한 당첨번호를 비교하여 각 등수의 당첨확률을 보여줍니다</p> 25 <p>생성한 당첨번호를 비교하여 각 등수의 당첨확률을 보여줍니다</p>
37 <p>회차선택시 번호 변경은 현재 수정하고 있습니다</p> 26 <p>회차선택시 번호 변경은 현재 수정하고 있습니다</p>
38 -
39 - <form name="form">
40 - <select name="selectBox" onchange="getSelectValue(this.form);">
41 - <option>로또회차선택</option>
42 - <script>
43 - for(i=1;i<861;i++){
44 - document.write("<option>"+i+"</option>");
45 - }
46 - </script>
47 - </select>
48 - </form>
49 -
50 - <p style="position:absolute;top:calc(50% + 100px);width:100%;">
51 - <input type="text" id="inputnum" value="5" size="2"><span class="key" onclick="count()">시작</span>
52 - </p>
53 27
54 - 28 +
55 - <section id="winner" class="shadow"> 29 + <div class="container">
30 + <div class="row p-4">
31 + <div class="col-xs-12">
32 + <form name="form" id="form">
33 + <div class="form-group">
34 + <label for="selectBox">몇 회차 로또 결과를 볼까요?</label>
35 + <select id="selectBox" name="selectBox" class="form-control">
36 + <option value="" selected disabled>선택하세요...</option>
37 + </select>
38 + </div>
39 + <button class="btn btn-primary" type="submit">결과 보기</button>
40 + </form>
41 + <pre id="result"></pre>
42 + <section id="winner" class="shadow">
56 <h2 id="lottok">loading...</h2> 43 <h2 id="lottok">loading...</h2>
57 <div class="output" id="output0"></div> 44 <div class="output" id="output0"></div>
58 <div class="output" id="output1"></div> 45 <div class="output" id="output1"></div>
...@@ -62,14 +49,24 @@ function getSelectValue(frm) ...@@ -62,14 +49,24 @@ function getSelectValue(frm)
62 <div class="output" id="output5"></div> 49 <div class="output" id="output5"></div>
63 <div class="output" style="box-shadow:none; color:#000;">+</div> 50 <div class="output" style="box-shadow:none; color:#000;">+</div>
64 <div class="output" id="output6"></div> 51 <div class="output" id="output6"></div>
65 - </section> 52 + </section>
53 + </div>
54 + </div>
55 + </div>
56 +
57 +
58 +
59 + <p style="position:absolute;top:calc(50% + 100px);width:100%;">
60 + <input type="text" id="inputnum" value="5" size="2"><span class="key" onclick="count()">시작</span>
61 + </p>
62 +
63 +
66 <div id="stats"></div> 64 <div id="stats"></div>
67 65
68 <ol id="lottotable"></ol> 66 <ol id="lottotable"></ol>
69 67
70 68
71 69
72 - <!-- <footer>ⓒ 2011-2019 JinH</footer> -->
73 70
74 </body> 71 </body>
75 72
......