X-Git-Url: https://gitweb.ps.run/lolstats/blobdiff_plain/7aecc11333eeff555614048d16b4073ce65f7812..d321fbf9c21bbc256215f88edc98296701c6b328:/html/script.js diff --git a/html/script.js b/html/script.js index 8db21f9..d97fcc4 100644 --- a/html/script.js +++ b/html/script.js @@ -3,14 +3,16 @@ function getRegions() { return [ "euw", "na", "kr", "br" ]; } - +function getChampions() { + return [ {name: "Aatrox"}, {name: "Annie"}, {name: "Braum"} ]; +} function getInfo() { app.summoner = $("#nameinput").val(); app.region = $("#regionselect").val(); } function setUrl() { window.history.pushState("object or string", "Title", - "/?summoner=" + + "/lol?summoner=" + app.summoner + "®ion=" + app.region + @@ -32,6 +34,7 @@ var app = new Vue({ region: "", view: "start", regions: getRegions(), + champions: getChampions(), }, methods: { submit: function() {