10 function randomElement(array) {
11 return array[Math.floor(Math.random() * array.length)];
13 let champ1 = "http://ddragon.leagueoflegends.com/cdn/img/champion/loading/" + randomElement(redSkins) + ".jpg";
14 let champ2 = "http://ddragon.leagueoflegends.com/cdn/img/champion/splash/" + randomElement(redSkins) + ".jpg";
15 let ionia1 = "https://am-a.akamaihd.net/image?f=https%3A%2F%2Funiverse-meeps.leagueoflegends.com%2Fv1%2Fassets%2Fimages%2Fmttargon-eternal-winter-of-the-mountaintop.jpg";
16 let ionia2 = "https://am-a.akamaihd.net/image?f=https%3A%2F%2Funiverse-meeps.leagueoflegends.com%2Fv1%2Fassets%2Fimages%2Ffactions%2Fmount-targon_splash.jpg";
19 return window.innerWidth < window.innerHeight;
20 return (typeof window.orientation !== 'undefined');
31 if (getType()) bg.image = ionia1;
32 else bg.image = ionia2;
39 regions: [ "EUW", "NA" ],
42 { text: "No.", name: "no" },
43 { text: "Queue", name: "qu" },
44 { text: "Champion", name: "ch" },
45 { text: "Result", name: "rs" },
46 { text: "Duration", name: "du" },
47 { text: "Date", name: "da" }
51 showNextPanel: function() {
52 start.visible = false;