]> gitweb.ps.run Git - lolstats/blobdiff - html/script.js
changes
[lolstats] / html / script.js
index 8db21f945033e3b607c7c4a13e2464012ec4dc6b..51c43c0281648d80e9fccdb50334bd2c33a93036 100644 (file)
@@ -3,14 +3,21 @@
 function getRegions() {
   return [ "euw", "na", "kr", "br" ];
 }
-
+function getChampions() {
+  return [ {name: "Aatrox"}, {name: "Annie"}, {name: "Braum"}, {name: "Not"} ];
+}
+function getMatchProps() {
+  return []
+}
+function getMatches() {
+}
 function getInfo() {
   app.summoner = $("#nameinput").val();
   app.region = $("#regionselect").val();
 } 
 function setUrl() {
   window.history.pushState("object or string", "Title",
-    "/?summoner=" +
+    "/lol?summoner=" +
     app.summoner +
     "&region=" +
     app.region +
@@ -32,6 +39,9 @@ var app = new Vue({
     region: "",
     view: "start",
     regions: getRegions(),
+    champions: getChampions(),
+    matchprops: getMatchProps(),
+    matches: getMatches(),
   },
   methods: {
     submit: function() {