X-Git-Url: https://gitweb.ps.run/lolstats/blobdiff_plain/7aecc11333eeff555614048d16b4073ce65f7812..8ed339b1fd7fca6209d1784bd18faf8608ab67a6:/html/script.js?ds=sidebyside diff --git a/html/script.js b/html/script.js index 8db21f9..51c43c0 100644 --- a/html/script.js +++ b/html/script.js @@ -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 + "®ion=" + app.region + @@ -32,6 +39,9 @@ var app = new Vue({ region: "", view: "start", regions: getRegions(), + champions: getChampions(), + matchprops: getMatchProps(), + matches: getMatches(), }, methods: { submit: function() {