Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fa21-cs242-project
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jim20
fa21-cs242-project
Commits
202f331e
Commit
202f331e
authored
3 years ago
by
pkim62@illnois.edu
Browse files
Options
Downloads
Patches
Plain Diff
wow
parent
6cfc8e2e
Branches
week2
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/static/script.js
+4
-5
4 additions, 5 deletions
src/static/script.js
src/templates/index.html
+1
-1
1 addition, 1 deletion
src/templates/index.html
with
5 additions
and
6 deletions
src/static/script.js
+
4
−
5
View file @
202f331e
...
...
@@ -105,14 +105,13 @@ function test(querystring) {
champ_tier
:
champ
.
champ_tier
})
});
console
.
log
(
dict
);
return
dict
;
addTable
(
dict
)
}
})
}
function
addTable
(
querystring
)
{
arr
=
test
(
querystring
);
function
addTable
(
arr2
)
{
arr
=
arr2
setTimeout
(
function
(){
var
myTableDiv
=
document
.
getElementById
(
"
myDynamicTable
"
);
...
...
@@ -128,7 +127,7 @@ function addTable(querystring) {
for
(
var
j
=
0
;
j
<
4
;
j
++
)
{
var
td
=
document
.
createElement
(
'
TD
'
);
td
.
width
=
'
75
'
;
td
.
appendChild
(
document
.
createTextNode
(
arr
[
'
0
'
][
'
name
'
]));
td
.
appendChild
(
document
.
createTextNode
(
arr
[
j
][
'
name
'
]));
tr
.
appendChild
(
td
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/templates/index.html
+
1
−
1
View file @
202f331e
...
...
@@ -16,7 +16,7 @@
<button
type =
"button"
onclick=
"handleGetChamp(field.value)"
style=
"height:50px; width:720px"
>
Get Champ
</button><br><br><br><br>
<label>
Query (Ex : champion.win_rate: > 55):
</label><br><br>
<input
type=
"text"
id=
"field2"
name=
"wr"
style=
"height:50px; width:712px"
><br><br>
<button
type =
"button"
onclick=
"
addTable
(field2.value)"
style=
"height:50px; width:720px"
>
Get Query
</button><br><br><br><br>
<button
type =
"button"
onclick=
"
test
(field2.value)"
style=
"height:50px; width:720px"
>
Get Query
</button><br><br><br><br>
<button
type =
"button"
onclick=
"clearValues()"
style=
"height:50px; width:720px"
>
Clear Results
</button><br><br>
</form>
<table>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment