X-Git-Url: https://gitweb.ps.run/lolstats/blobdiff_plain/7aecc11333eeff555614048d16b4073ce65f7812..d271c8fac628ab9afb14c84fda17e532aeb98424:/html/script.js diff --git a/html/script.js b/html/script.js index 8db21f9..a190690 100644 --- a/html/script.js +++ b/html/script.js @@ -3,14 +3,16 @@ function getRegions() { return [ "euw", "na", "kr", "br" ]; } - +function getChampions() { + return [ "Aatrox", "Annie", "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() {