avm99963 | 658fae5 | 2017-10-08 23:09:16 +0200 | [diff] [blame] | 1 | <?php |
| 2 | require_once("config.php"); |
| 3 | |
| 4 | session_start(); |
| 5 | |
| 6 | if (!isset($_POST["password"])) { |
| 7 | header("Location: login.php"); |
| 8 | exit(); |
| 9 | } |
| 10 | |
| 11 | if ($_POST["password"] != "forallexists") { |
| 12 | header("Location: login.php?msg=wrong"); |
| 13 | exit(); |
| 14 | } |
| 15 | ?> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 16 | <!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"> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame^] | 26 | |
| 27 | <!-- Seach Bar CSS files --> |
| 28 | <link rel="stylesheet" href="./css/modal.css"></link> |
| 29 | <link rel="stylesheet" href="./css/autocomplete.css"></link> |
| 30 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 31 | <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> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame^] | 72 | <!-- Search Box --> |
| 73 | <div id="searchBox" class="modal"> |
| 74 | <!-- Search Box Content --> |
| 75 | <div class="modal-content"> |
| 76 | <span class="closeBox">×</span> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 77 | |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame^] | 78 | <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 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 90 | <div id="graf"></div> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame^] | 91 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 92 | <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script> |
| 93 | <script src="js/script.js"></script> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame^] | 94 | |
| 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 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 104 | <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> |