]> gitweb.ps.run Git - lolstats/blob - html/index.html
25d8fce19075ac55c5e92a7b1a7943d114efd36b
[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   </head>
15   <body style="">
16     <div id="background"></div>
17     <div id="app">
18
19       <!-- Start Screen -->
20       <div id="start">
21         <!-- Main panel -->
22         <!--
23         <span id="title">Enter Your Summoner Name</span>
24         -->
25         <div id="inputpanel">
26           <select id="regionselect">
27             <option v-for="(url, name) in regions" :value="name">{{ name }}</option>
28           </select>
29           <input v-on:keyup.enter="submit" id="nameinput" type="text" placeholder="Summoner Name">
30           <button v-on:click="submit" id="gobutton"><span class="fas fa-arrow-right"></span></button>
31         </div>
32
33       </div>
34       <div id="matchhistory" style="display: none">
35         <div id="historyfilters">
36           <button id="statsbutton" v-on:click="historyToStats">Statistics</button>
37           <label for="champselect">Champion</label>
38           <select id="champselect">
39             <option>All</option>
40             <option v-for="c in champions">{{ c }}</option>
41           </select>
42           <button id="refreshbutton" v-on:click="refreshHistory">Refresh</button>
43         </div>
44         <hr />
45         <div id="matchlist">
46           <table>
47             <tr>
48               <th v-for="c in matchprops">{{ c.text }}</th>
49             </tr>
50             <tr v-for="m in matches">
51               <td v-for="c in matchprops">{{ m[c.name] }}</td>
52             </tr>
53           </table>
54         </div>
55       </div>
56       <div id="stats" style="display: none">
57         <button id="historybutton" v-on:click="statsToHistory">Match history</button>
58       </div>
59
60     </div>
61
62     <!-- Vue.js Script -->
63     <script src="lol/script.js"></script>
64   </body>
65 </html>