]> gitweb.ps.run Git - lolstats/blobdiff - html/index.html
cleanup
[lolstats] / html / index.html
index d35e28fd37052fcf0368bd3725ed0020b2757e89..25434c17de68f6a47be68022a73c1ae8252c030e 100644 (file)
@@ -2,6 +2,7 @@
 <html>
   <head>
     <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
     <title>Advanced League of Legends Match History & Statistics</title>
     <link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:700" rel="stylesheet">
     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
@@ -10,6 +11,8 @@
     <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.js"></script>
     <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
     <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.css">
+    <script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.js"></script>
   </head>
   <body style="">
     <div id="background"></div>
       <div id="start">
         <!-- Main panel -->
         <!--
-        <span id="title">Enter Your Summoner Name</span>
+          <span id="title">Enter Your Summoner Name</span>
         -->
         <div id="inputpanel">
           <select id="regionselect">
-            <option v-for="r in regions" :value="r">{{ r }}</option>
+            <option v-for="(url, name) in regions" :value="name">{{ name }}</option>
           </select>
           <input v-on:keyup.enter="submit" id="nameinput" type="text" placeholder="Summoner Name">
           <button v-on:click="submit" id="gobutton"><span class="fas fa-arrow-right"></span></button>
       <div id="matchhistory" style="display: none">
         <div id="historyfilters">
           <button id="statsbutton" v-on:click="historyToStats">Statistics</button>
-          <label for="champselect">Champion</label>
-          <select id="champselect">
-            <option>All</option>
-            <option v-for="c in champions">{{ c.name }}</option>
-          </select>
+          <div id="champselect">
+            <button class="champselect" v-on:click="selectAll">All</button>
+            <button class="champselect" v-on:click="selectNone">None</button><br />
+            <span v-for="c in champions"><input class="champselectcb" type="checkbox" :id="'cb' + c" /><label :for="'cb' + c">{{ c }}</label><br /></span>
+          </div>
           <button id="refreshbutton" v-on:click="refreshHistory">Refresh</button>
         </div>
-        <div id="matchlist">
-          <table>
-            <tr>
-              <th v-for="c in matchprops">{{ c.text }}</th>
-            </tr>
-            <tr v-for="m in matches">
-              <td v-for="c in matchprops">{{ m[c.name] }}</td>
-            </tr>
-          </table>
+        <hr />
+        <div id="matchlist" class="clusterize">
+          <div style="position: relative; width: 100%; height: 100%; max-height: 100%" id="scrollArea" class="clusterize-scroll">
+            <table>
+              <tbody id="contentArea" class="clusterize-content">
+                <tr class="clusterize-no-data">
+                  <td>Loading data...</td>
+                </tr>
+                <!--
+                <tr>
+                  <th>Icon</th>
+                  <th v-for="c in matchprops">{{ c.text }}</th>
+                </tr>
+                <tr v-for="m in matches">
+                  <td><img class="championIcon" :src="'http://ddragon.leagueoflegends.com/cdn/8.24.1/img/champion/' + m.championString + '.png'"></img></td>
+                  <td v-for="c in matchprops">{{ m[c.name] }}</td>
+                  </tr>
+                -->
+              </tbody>
+            </table>
+          </div>
         </div>
       </div>
       <div id="stats" style="display: none">
+        <div id="statsfilters">
         <button id="historybutton" v-on:click="statsToHistory">Match history</button>
+        </div>
       </div>
 
     </div>
 
     <!-- Vue.js Script -->
     <script src="lol/script.js"></script>
+    <script>
+    </script>
   </body>
 </html>