Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김한준
/
OSS-Term-Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김한준
2019-06-02 23:52:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d50ef64e617694db5718d89f61bf9c33a81b255
3d50ef64
1 parent
162244ad
회차 변경 기능 수정 완료
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
js/main.js
js/main.js
View file @
3d50ef6
...
...
@@ -6,7 +6,7 @@ $(document).ready(function () {
var
form
=
$
(
'#form'
);
var
result
=
$
(
'#result'
);
var
a2
=
$
(
'#a1'
);
for
(
i
=
2
;
i
<
861
;
i
++
)
{
for
(
i
=
1
;
i
<
862
;
i
++
)
{
var
option
=
$
(
'<option>'
);
option
.
val
(
i
).
text
(
i
+
'회차'
);
dropdown
.
append
(
option
);
...
...
@@ -17,8 +17,16 @@ $(document).ready(function () {
alert
(
'뭔가 선택을 하세요.'
);
dropdown
.
focus
();
}
else
{
document
.
getElementById
(
"a1"
).
src
=
"http://lotto.kaisyu.com/api?method=get&gno="
+
dropdown
.
val
()
+
";callback=loadlot"
;
document
.
getElementById
(
"lotto_api_src"
).
src
=
"http://lotto.kaisyu.com/api?method=get&gno="
+
dropdown
.
val
()
+
";callback=loadlot"
;
var
lotto_parent
=
document
.
getElementById
(
"lotto_api_data"
);
var
lotto_child
=
document
.
getElementById
(
"lotto_api_src"
);
lotto_child
.
remove
();
child_node
=
document
.
createElement
(
'script'
);
child_node
.
id
=
"lotto_api_src"
;
lotto_parent
.
append
(
child_node
);
}
});
});
...
...
@@ -165,7 +173,6 @@ function count() {
}
function
loadlot
(
a
)
{
$
(
"#lottok"
).
html
(
'제 '
+
a
.
gno
+
'회차 당첨 결과('
+
a
.
gdate
+
')'
);
// + '<br/>' +
//a.nums + a.bnum;
a
.
nums
[
6
]
=
a
.
bnum
;
...
...
@@ -185,5 +192,6 @@ function loadlot(a) {
$
(
'#output'
+
i
).
addClass
(
"c5"
);
}
}
data
=
a
;
}
...
...
Please
register
or
login
to post a comment