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> |
Huguet57 | ca0025c | 2018-07-23 01:17:46 +0200 | [diff] [blame^] | 43 | |
| 44 | <!-- Trigger/Open The Search Box --> |
| 45 | <button id="searchButton"class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored">Busca</button> |
| 46 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 47 | <div id="backdrop-container" style="display: none;"> |
| 48 | <div id="backdrop"></div> |
| 49 | </div> |
| 50 | <div id="dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 51 | <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 52 | <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button> |
| 53 | <div id="dialog-vertex"> |
| 54 | <h2 data-fill="name"></h2> |
| 55 | <ul> |
| 56 | <li><b>Any:</b> <span data-fill="year"></span></li> |
| 57 | <li><b>Sexe:</b> <span data-fill="sex"></span></li> |
| 58 | <li><b>ID:</b> <span data-fill="id"></span></li> |
| 59 | </ul> |
| 60 | <h3>Arestes (<span data-fill="n-edges"></span>):</h3> |
| 61 | <ul data-fill="edges"> |
| 62 | </ul> |
| 63 | </div> |
| 64 | <div id="dialog-edge" style="display: none;"> |
| 65 | </div> |
| 66 | </div> |
| 67 | <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 68 | <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 69 | <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button> |
| 70 | <div id="summary-vertex"> |
| 71 | <h2 data-fill="name"></h2> |
| 72 | <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p> |
| 73 | </div> |
| 74 | </div> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 75 | <!-- Search Box --> |
| 76 | <div id="searchBox" class="modal"> |
| 77 | <!-- Search Box Content --> |
| 78 | <div class="modal-content"> |
| 79 | <span class="closeBox">×</span> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 80 | |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 81 | <div class="in-box-content"> |
| 82 | <center> |
| 83 | <form autocomplete="off"> |
| 84 | <div class="autocomplete"> |
| 85 | <input id="searchInput" type="text" placeholder="Busca una persona al graf"> |
| 86 | </div> |
| 87 | </form> |
| 88 | </center> |
| 89 | </div> |
| 90 | </div> |
| 91 | </div> |
| 92 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 93 | <div id="graf"></div> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 94 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 95 | <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script> |
| 96 | <script src="js/script.js"></script> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 97 | |
| 98 | <!-- Search Bar JS files --> |
| 99 | <script src="./js/modal.js"></script> |
| 100 | <script src="./js/autocomplete.js" ></script> |
| 101 | <script> |
| 102 | /*initiate the autocomplete function on the "searchInput" element, |
| 103 | and pass along the nodes' names array as possible autocomplete values:*/ |
| 104 | autocomplete(document.getElementById("searchInput"), graf.nodes); |
| 105 | </script> |
| 106 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 107 | <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script> |
| 108 | <!--<script src="js/service-worker.js"></script>--> |
| 109 | </body> |
| 110 | </html> |