X-Git-Url: https://gitweb.ps.run/lolstats/blobdiff_plain/7254b601bd7a577fc244c45b35e0364a40166dbb..8ed339b1fd7fca6209d1784bd18faf8608ab67a6:/html/script.js diff --git a/html/script.js b/html/script.js index 92be426..51c43c0 100644 --- a/html/script.js +++ b/html/script.js @@ -4,7 +4,12 @@ function getRegions() { return [ "euw", "na", "kr", "br" ]; } function getChampions() { - return [ "Aatrox", "Annie", "Braum" ]; + return [ {name: "Aatrox"}, {name: "Annie"}, {name: "Braum"}, {name: "Not"} ]; +} +function getMatchProps() { + return [] +} +function getMatches() { } function getInfo() { app.summoner = $("#nameinput").val(); @@ -12,7 +17,7 @@ function getInfo() { } function setUrl() { window.history.pushState("object or string", "Title", - "/?summoner=" + + "/lol?summoner=" + app.summoner + "®ion=" + app.region + @@ -35,6 +40,8 @@ var app = new Vue({ view: "start", regions: getRegions(), champions: getChampions(), + matchprops: getMatchProps(), + matches: getMatches(), }, methods: { submit: function() {