]> gitweb.ps.run Git - lolstats/blob - html/index.html
e39dec9c4f769e833b2a4d39ec4471cd08afe582
[lolstats] / html / index.html
1 <!DOCTYPE html5>
2 <html>
3   <head>
4     <meta charset="utf-8" />
5     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
6     <title>Advanced League of Legends Match History & Statistics</title>
7     <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:700" rel="stylesheet">
8     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
9     <link rel="stylesheet" href="lol/style.css">
10     <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
11     <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.js"></script>
12     <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
13     <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
14     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.css">
15     <script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.js"></script>
16   </head>
17   <body style="">
18     <div id="background"></div>
19     <div id="app">
20
21       <!-- Start Screen -->
22       <div id="start">
23         <!-- Main panel -->
24         <!--
25           <span id="title">Enter Your Summoner Name</span>
26         -->
27         <div id="inputpanel">
28           <select id="regionselect">
29             <option v-for="(url, name) in regions" :value="name">{{ name }}</option>
30           </select>
31           <input v-on:keyup.enter="submit" id="nameinput" type="text" placeholder="Summoner Name">
32           <button v-on:click="submit" id="gobutton"><span class="fas fa-arrow-right"></span></button>
33         </div>
34
35       </div>
36       <div id="matchhistory" style="display: none">
37         <div id="historyfilters">
38           <button id="statsbutton" v-on:click="historyToStats">Statistics</button>
39           <div id="champselect">
40             <button class="champselect" v-on:click="selectAll">All</button>
41             <button class="champselect" v-on:click="selectNone">None</button><br />
42             <span v-for="c in champions"><input class="champselectcb" type="checkbox" />{{ c }}<br /></span>
43           </div>
44           <button id="refreshbutton" v-on:click="refreshHistory">Refresh</button>
45         </div>
46         <hr />
47         <div id="matchlist" class="clusterize">
48           <div style="position: relative; width: 100%; height: 100%; max-height: 100%" id="scrollArea" class="clusterize-scroll">
49             <table>
50               <tbody id="contentArea" class="clusterize-content">
51                 <tr>
52                   <th>Icon</th>
53                   <th v-for="c in matchprops">{{ c.text }}</th>
54                 </tr>
55                 <tr v-for="m in matches">
56                   <td><img class="championIcon" :src="'http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/' + m.championString + '.png'"></img></td>
57                   <td v-for="c in matchprops">{{ m[c.name] }}</td>
58                 </tr>
59               </tbody>
60             </table>
61           </div>
62         </div>
63       </div>
64       <div id="stats" style="display: none">
65         <div id="statsfilters">
66         <button id="historybutton" v-on:click="statsToHistory">Match history</button>
67         </div>
68       </div>
69
70     </div>
71
72     <!-- Vue.js Script -->
73     <script src="lol/script.js"></script>
74     <script>
75       var clusterize = new Clusterize({
76         scrollId: 'scrollArea',
77         contentId: 'contentArea',
78       });
79     </script>
80   </body>
81 </html>