blob: f8290079dc1fbc168b6ada4a5b0e65f62ddb719f [file] [log] [blame]
Javier López-Contreras68f34922018-12-26 12:16:37 +01001<?php
2require_once ("config.php");
3
4session_start();
5
6if (! isset($_POST["password"])) {
avm99963865b8ca2018-12-28 02:52:50 +01007 header("Location: login.php");
8 exit();
Javier López-Contreras68f34922018-12-26 12:16:37 +01009}
10
11if ($_POST["password"] != $conf["password"]) {
avm99963865b8ca2018-12-28 02:52:50 +010012 header("Location: login.php?msg=wrong");
13 exit();
Javier López-Contreras68f34922018-12-26 12:16:37 +010014}
15?>
16
17<!DOCTYPE html>
18<html>
avm99963865b8ca2018-12-28 02:52:50 +010019 <head>
20 <meta charset="utf-8">
21 <title>Graf alternatiu FME</title>
Javier López-Contreras68f34922018-12-26 12:16:37 +010022
avm99963865b8ca2018-12-28 02:52:50 +010023 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
24 <link rel="manifest" href="manifest.json">
Javier López-Contreras68f34922018-12-26 12:16:37 +010025
avm99963865b8ca2018-12-28 02:52:50 +010026 <!-- own css stylesheets -->
27 <link rel="stylesheet" href="css/styles.css">
Javier López-Contreras68f34922018-12-26 12:16:37 +010028
avm99963865b8ca2018-12-28 02:52:50 +010029 <!-- imported css stylesheets -->
30 <link rel="stylesheet"
31 href="https://fonts.googleapis.com/icon?family=Material+Icons">
32 <link rel="stylesheet"
33 href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" />
Javier López-Contreras6d1d72d2018-12-27 23:17:18 +010034
avm99963865b8ca2018-12-28 02:52:50 +010035 <!-- Apple web app -->
36 <link rel="apple-touch-icon" href="img/graf.png">
37 <meta name="apple-mobile-web-app-title" content="Graf FME">
38 <meta name="apple-mobile-web-app-capable" content="yes">
39 <meta name="apple-mobile-web-app-status-bar-style" content="black">
40 </head>
41 <body>
42 <!-- side buttons -->
43 <div id="option-buttons">
44 <button id="circle-mode" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored"><i class="material-icons">trip_origin</i></button>
45 <button id="settings" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored"><i class="material-icons">settings</i></button>
46 <button id="search" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored"><i class="material-icons">search</i></button>
47 <button id="zoomin" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored"><i class="material-icons">zoom_in</i></button>
48 <button id="zoomout" class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored"><i class="material-icons">zoom_out</i></button>
49 </div>
50
51 <!-- limit year list -->
52 <div id="year-list" style="display:none">
53 <span id="year-list-span"></span>
54 </div>
55
56 <!-- Search container -->
57 <div id="backdrop-container" style="display: none;">
58 <div id="backdrop"></div>
59 </div>
60
61 <!-- Dialog container -->
62 <div id="dialog" class="mdl-shadow--2dp" style="display: none;">
63 <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
64 <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button>
65
66 <div id="dialog-vertex">
67 <h2 data-fill="name"></h2>
68 <ul>
69 <li><b>Any:</b> <span data-fill="year"></span></li>
70 <li><b>Sexe:</b> <span data-fill="sex"></span></li>
71 <li><b>ID:</b> <span data-fill="id"></span></li>
72 </ul>
73 <h3>Arestes (<span data-fill="n-edges"></span>):</h3>
74 <ul data-fill="edges">
75 </ul>
76 </div>
77 <div id="dialog-edge" style="display: none;"></div>
78 </div>
79 <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;">
80 <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
81 <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button>
82 <div id="summary-vertex">
83 <h2 data-fill="name"></h2>
84 <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p>
85 </div>
86 </div>
87
88 <!-- MD Search Box -->
89 <div class="md-google-search__metacontainer" style="display: none;">
90 <div class="md-google-search__container">
91 <div class="md-google-search">
92 <button class="md-google-search__search-btn">
93 <svg height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>
94 </button>
95 <div class="md-google-search__field-container">
96 <input id="search-input" class="md-google-search__field" autocomplete="off" placeholder="Cerca" value="" name="search" type="text" spellcheck="false" style="outline: none;">
97 </div>
98 <button class="md-google-search__empty-btn" style="display: none;">
99 <svg focusable="false" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>
100 </button>
101 </div>
102 </div>
103 </div>
104
105 <div class="autocomplete-container" style="display: none;">
106 <div id="autocomplete-list" class="autocomplete-items"></div>
107 </div>
108
109 <div id="graf"></div>
110
111 <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script>
Javier López-Contreras68f34922018-12-26 12:16:37 +0100112
113
avm99963865b8ca2018-12-28 02:52:50 +0100114 <!-- Our scripts -->
115 <script src="./js/autocomplete.js"></script>
116 <script src="./js/script.js"></script>
Javier López-Contreras68f34922018-12-26 12:16:37 +0100117
avm99963865b8ca2018-12-28 02:52:50 +0100118 <!-- imported scripts -->
119 <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
Javier López-Contreras68f34922018-12-26 12:16:37 +0100120
avm99963865b8ca2018-12-28 02:52:50 +0100121 <!--<script src="js/service-worker.js"></script>-->
122 </body>
Javier López-Contreras68f34922018-12-26 12:16:37 +0100123</html>