blob: 3696dc3a4bf438e6dd7f2d5453e4c4165680913f [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>
Huguet57e9f47652018-07-23 03:28:12 +020041 <button id="searchButton"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>
42 <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>
avm99963f0d15212017-10-08 17:03:22 +020043 <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>
Huguet57e9f47652018-07-23 03:28:12 +020044
avm99963f0d15212017-10-08 17:03:22 +020045 <div id="backdrop-container" style="display: none;">
46 <div id="backdrop"></div>
47 </div>
48 <div id="dialog" class="mdl-shadow--2dp" style="display: none;">
49 <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
50 <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button>
51 <div id="dialog-vertex">
52 <h2 data-fill="name"></h2>
53 <ul>
54 <li><b>Any:</b> <span data-fill="year"></span></li>
55 <li><b>Sexe:</b> <span data-fill="sex"></span></li>
56 <li><b>ID:</b> <span data-fill="id"></span></li>
57 </ul>
58 <h3>Arestes (<span data-fill="n-edges"></span>):</h3>
59 <ul data-fill="edges">
60 </ul>
61 </div>
62 <div id="dialog-edge" style="display: none;">
63 </div>
64 </div>
65 <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;">
66 <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button>
67 <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button>
68 <div id="summary-vertex">
69 <h2 data-fill="name"></h2>
70 <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p>
71 </div>
72 </div>
Huguet57f2c26902018-07-23 01:15:26 +020073 <!-- Search Box -->
74 <div id="searchBox" class="modal">
75 <!-- Search Box Content -->
76 <div class="modal-content">
77 <span class="closeBox">&times;</span>
avm99963f0d15212017-10-08 17:03:22 +020078
Huguet57f2c26902018-07-23 01:15:26 +020079 <div class="in-box-content">
80 <center>
81 <form autocomplete="off">
82 <div class="autocomplete">
83 <input id="searchInput" type="text" placeholder="Busca una persona al graf">
84 </div>
85 </form>
86 </center>
87 </div>
88 </div>
89 </div>
90
avm99963f0d15212017-10-08 17:03:22 +020091 <div id="graf"></div>
Huguet57f2c26902018-07-23 01:15:26 +020092
avm99963f0d15212017-10-08 17:03:22 +020093 <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script>
Huguet57e9f47652018-07-23 03:28:12 +020094 <script>
95 // Initialize the graph and the sigma
96 var s, graf;
97 </script>
98
Huguet57f2c26902018-07-23 01:15:26 +020099 <!-- Search Bar JS files -->
100 <script src="./js/modal.js"></script>
101 <script src="./js/autocomplete.js" ></script>
Huguet57e9f47652018-07-23 03:28:12 +0200102
103 <script src="js/script.js"></script>
104
avm99963f0d15212017-10-08 17:03:22 +0200105 <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
106 <!--<script src="js/service-worker.js"></script>-->
107 </body>
108</html>