blob: 58f5ed6274549438617f91ce8a84f2e9f31855df [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
avm99963ce735762018-09-26 16:29:29 +020011if ($_POST["password"] != $conf["password"]) {
avm99963658fae52017-10-08 23:09:16 +020012 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">
javierlc2000920ec502018-12-24 19:20:07 +010024
25 <!-- <link rel="stylesheet" href="css/styles.css"> -->
26 <!-- PER DEBUGAR --> <link rel="stylesheet" href="styles_debug.css">
Huguet57f2c26902018-07-23 01:15:26 +020027
avm99963f0d15212017-10-08 17:03:22 +020028 <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
29 <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" />
30
31 <!-- Apple web app -->
32 <link rel="apple-touch-icon" href="img/graf.png">
33 <meta name="apple-mobile-web-app-title" content="Graf FME">
34 <meta name="apple-mobile-web-app-capable" content="yes">
35 <meta name="apple-mobile-web-app-status-bar-style" content="black">
36 </head>
37 <body>
javierlc2000920ec502018-12-24 19:20:07 +010038 <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>
avm99963a00c43e2018-09-26 20:16:07 +020039 <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>
40 <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 +020041 <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>
avm99963a00c43e2018-09-26 20:16:07 +020042
javierlc2000920ec502018-12-24 19:20:07 +010043 <div id="yearlist" style="padding:10px; padding-top:70px; float:right; display: none"> </div>
44
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>
avm99963f7592e22018-09-26 17:06:15 +020056 <li><b>ID:</b> <span data-fill="id"></span></li>
avm99963f0d15212017-10-08 17:03:22 +020057 </ul>
avm99963f7592e22018-09-26 17:06:15 +020058 <h3>Arestes (<span data-fill="n-edges"></span>):</h3>
59 <ul data-fill="edges">
60 </ul>
avm99963f0d15212017-10-08 17:03:22 +020061 </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>
avm99963a00c43e2018-09-26 20:16:07 +020073 <!-- MD Search Box -->
74 <div class="md-google-search__metacontainer" style="display: none;">
75 <div class="md-google-search__container">
76 <div class="md-google-search">
77 <button class="md-google-search__search-btn">
78 <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>
79 </button>
80 <div class="md-google-search__field-container">
avm999630f7e1e72018-09-26 21:30:30 +020081 <input id="search-input" class="md-google-search__field" autocomplete="off" placeholder="Cerca" value="" name="search" type="text" spellcheck="false" style="outline: none;">
avm99963a00c43e2018-09-26 20:16:07 +020082 </div>
83 <button class="md-google-search__empty-btn" style="display: none;">
84 <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>
85 </button>
Huguet57f2c26902018-07-23 01:15:26 +020086 </div>
87 </div>
88 </div>
avm99963a00c43e2018-09-26 20:16:07 +020089
90 <div class="autocomplete-container" style="display: none;">
91 <div id="autocomplete-list" class="autocomplete-items"></div>
92 </div>
93
avm99963f0d15212017-10-08 17:03:22 +020094 <div id="graf"></div>
javierlc2000920ec502018-12-24 19:20:07 +010095
avm99963f0d15212017-10-08 17:03:22 +020096 <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script>
avm99963a00c43e2018-09-26 20:16:07 +020097
Huguet57f2c26902018-07-23 01:15:26 +020098 <!-- Search Bar JS files -->
Huguet57f2c26902018-07-23 01:15:26 +020099 <script src="./js/autocomplete.js" ></script>
avm99963a00c43e2018-09-26 20:16:07 +0200100
javierlc2000920ec502018-12-24 19:20:07 +0100101 <!-- <script src="js/script.js"></script> -->
102 <!-- PER DEBUGAR --> <script src="script_debug.js"></script>
avm99963a00c43e2018-09-26 20:16:07 +0200103
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>