treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorPatrick Schönberger2018-12-10 19:02:28 +0100
committerPatrick Schönberger2018-12-10 19:02:28 +0100
commit7254b601bd7a577fc244c45b35e0364a40166dbb (patch)
tree52ec8d16a33b773f8489b2336204151db82486c7
parent6925fed704a39c55e4af58074e6f616519bd94c5 (diff)
downloadlolstats-7254b601bd7a577fc244c45b35e0364a40166dbb.tar.gz
lolstats-7254b601bd7a577fc244c45b35e0364a40166dbb.zip
changes
-rw-r--r--html/index.html7
-rw-r--r--html/script.js5
2 files changed, 7 insertions, 5 deletions
diff --git a/html/index.html b/html/index.html
index 77e22c3..8346529 100644
--- a/html/index.html
+++ b/html/index.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
- <title>lol stats</title>
+ <title>Advanced League of Legends Match History & Statistics</title>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="lol/style.css">
@@ -31,11 +31,10 @@
</div>
<div id="matchhistory" style="display: none">
<button v-on:click="historyToStats">Statistics</button>
- <hr />
Champion:
<select>
- <option>Annie</option>
- <option>Aatrox</option>
+ <option>All</option>
+ <option v-for="c in champions">{{ c.name }}</option>
</select>
</div>
diff --git a/html/script.js b/html/script.js
index 8db21f9..92be426 100644
--- a/html/script.js
+++ b/html/script.js
@@ -3,7 +3,9 @@
function getRegions() {
return [ "euw", "na", "kr", "br" ];
}
-
+function getChampions() {
+ return [ "Aatrox", "Annie", "Braum" ];
+}
function getInfo() {
app.summoner = $("#nameinput").val();
app.region = $("#regionselect").val();
@@ -32,6 +34,7 @@ var app = new Vue({
region: "",
view: "start",
regions: getRegions(),
+ champions: getChampions(),
},
methods: {
submit: function() {