blob: a07222dcbf55823dc265323eb7a4afc11f0336e3 [file] [log] [blame]
avm99963658fae52017-10-08 23:09:16 +02001<?php
2require_once("config.php");
3
4session_start();
5
6if (!isset($_POST["password"])) {
7 header("Location: login.php");
8 exit();
9}
10
11if ($_POST["password"] != "forallexists") {
12 header("Location: login.php?msg=wrong");
13 exit();
14}
15?>
avm99963f0d15212017-10-08 17:03:22 +020016<!DOCTYPE html>
17<html>
18 <head>
19 <meta charset="utf-8">
20 <title>Graf alternatiu FME</title>
21
22 <meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
23 <link rel="manifest" href="manifest.json">
24
25 <link rel="stylesheet" href="css/styles.css">
Huguet57f2c26902018-07-23 01:15:26 +020026
27 <!-- Seach Bar CSS files -->
28 <link rel="stylesheet" href="./css/modal.css"></link>
29 <link rel="stylesheet" href="./css/autocomplete.css"></link>
30
avm99963f0d15212017-10-08 17:03:22 +020031 <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
32 <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" />
33
34 <!-- Apple web app -->
35 <link rel="apple-touch-icon" href="img/graf.png">
36 <meta name="apple-mobile-web-app-title" content="Graf FME">
37 <meta name="apple-mobile-web-app-capable" content="yes">
38 <meta name="apple-mobile-web-app-status-bar-style" content="black">
39 </head>
40 <body>
41 <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>
42 <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>
43
44 <div id="backdrop-container" style="display: none;">
45 <div id="backdrop"></div>
46 </div>
47 <div id="dialog" class="mdl-shadow--2dp" style="display: none;">
48 <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
49 <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button>
50 <div id="dialog-vertex">
51 <h2 data-fill="name"></h2>
52 <ul>
53 <li><b>Any:</b> <span data-fill="year"></span></li>
54 <li><b>Sexe:</b> <span data-fill="sex"></span></li>
55 <li><b>ID:</b> <span data-fill="id"></span></li>
56 </ul>
57 <h3>Arestes (<span data-fill="n-edges"></span>):</h3>
58 <ul data-fill="edges">
59 </ul>
60 </div>
61 <div id="dialog-edge" style="display: none;">
62 </div>
63 </div>
64 <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;">
65 <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
66 <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button>
67 <div id="summary-vertex">
68 <h2 data-fill="name"></h2>
69 <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p>
70 </div>
71 </div>
Huguet57f2c26902018-07-23 01:15:26 +020072 <!-- Search Box -->
73 <div id="searchBox" class="modal">
74 <!-- Search Box Content -->
75 <div class="modal-content">
76 <span class="closeBox">&times;</span>
avm99963f0d15212017-10-08 17:03:22 +020077
Huguet57f2c26902018-07-23 01:15:26 +020078 <div class="in-box-content">
79 <center>
80 <form autocomplete="off">
81 <div class="autocomplete">
82 <input id="searchInput" type="text" placeholder="Busca una persona al graf">
83 </div>
84 </form>
85 </center>
86 </div>
87 </div>
88 </div>
89
avm99963f0d15212017-10-08 17:03:22 +020090 <div id="graf"></div>
Huguet57f2c26902018-07-23 01:15:26 +020091
avm99963f0d15212017-10-08 17:03:22 +020092 <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script>
93 <script src="js/script.js"></script>
Huguet57f2c26902018-07-23 01:15:26 +020094
95 <!-- Search Bar JS files -->
96 <script src="./js/modal.js"></script>
97 <script src="./js/autocomplete.js" ></script>
98 <script>
99 /*initiate the autocomplete function on the "searchInput" element,
100 and pass along the nodes' names array as possible autocomplete values:*/
101 autocomplete(document.getElementById("searchInput"), graf.nodes);
102 </script>
103
avm99963f0d15212017-10-08 17:03:22 +0200104 <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
105 <!--<script src="js/service-worker.js"></script>-->
106 </body>
107</html>