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 | |
avm99963 | ce73576 | 2018-09-26 16:29:29 +0200 | [diff] [blame] | 11 | if ($_POST["password"] != $conf["password"]) { |
avm99963 | 658fae5 | 2017-10-08 23:09:16 +0200 | [diff] [blame] | 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 | |
avm99963 | f7592e2 | 2018-09-26 17:06:15 +0200 | [diff] [blame] | 25 | <link rel="stylesheet" href="css/styles.css"> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 26 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 27 | <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| 28 | <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" /> |
| 29 | |
| 30 | <!-- Apple web app --> |
| 31 | <link rel="apple-touch-icon" href="img/graf.png"> |
| 32 | <meta name="apple-mobile-web-app-title" content="Graf FME"> |
| 33 | <meta name="apple-mobile-web-app-capable" content="yes"> |
| 34 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 35 | </head> |
| 36 | <body> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 37 | <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> |
| 38 | <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> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 39 | <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> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 40 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 41 | <div id="backdrop-container" style="display: none;"> |
| 42 | <div id="backdrop"></div> |
| 43 | </div> |
| 44 | <div id="dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 45 | <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 46 | <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button> |
| 47 | <div id="dialog-vertex"> |
| 48 | <h2 data-fill="name"></h2> |
| 49 | <ul> |
| 50 | <li><b>Any:</b> <span data-fill="year"></span></li> |
| 51 | <li><b>Sexe:</b> <span data-fill="sex"></span></li> |
avm99963 | f7592e2 | 2018-09-26 17:06:15 +0200 | [diff] [blame] | 52 | <li><b>ID:</b> <span data-fill="id"></span></li> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 53 | </ul> |
avm99963 | f7592e2 | 2018-09-26 17:06:15 +0200 | [diff] [blame] | 54 | <h3>Arestes (<span data-fill="n-edges"></span>):</h3> |
| 55 | <ul data-fill="edges"> |
| 56 | </ul> |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 57 | </div> |
| 58 | <div id="dialog-edge" style="display: none;"> |
| 59 | </div> |
| 60 | </div> |
| 61 | <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 62 | <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 63 | <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button> |
| 64 | <div id="summary-vertex"> |
| 65 | <h2 data-fill="name"></h2> |
| 66 | <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p> |
| 67 | </div> |
| 68 | </div> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 69 | <!-- MD Search Box --> |
| 70 | <div class="md-google-search__metacontainer" style="display: none;"> |
| 71 | <div class="md-google-search__container"> |
| 72 | <div class="md-google-search"> |
| 73 | <button class="md-google-search__search-btn"> |
| 74 | <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> |
| 75 | </button> |
| 76 | <div class="md-google-search__field-container"> |
| 77 | <input id="search-input" class="md-google-search__field" autocomplete="off" placeholder="Search" value="" name="search" type="text" spellcheck="false" style="outline: none;"> |
| 78 | </div> |
| 79 | <button class="md-google-search__empty-btn" style="display: none;"> |
| 80 | <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> |
| 81 | </button> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 82 | </div> |
| 83 | </div> |
| 84 | </div> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 85 | |
| 86 | <div class="autocomplete-container" style="display: none;"> |
| 87 | <div id="autocomplete-list" class="autocomplete-items"></div> |
| 88 | </div> |
| 89 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 90 | <div id="graf"></div> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +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> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 93 | |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 94 | <!-- Search Bar JS files --> |
Huguet57 | f2c2690 | 2018-07-23 01:15:26 +0200 | [diff] [blame] | 95 | <script src="./js/autocomplete.js" ></script> |
avm99963 | a00c43e | 2018-09-26 20:16:07 +0200 | [diff] [blame^] | 96 | |
| 97 | <script src="js/script.js"></script> |
| 98 | |
avm99963 | f0d1521 | 2017-10-08 17:03:22 +0200 | [diff] [blame] | 99 | <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script> |
| 100 | <!--<script src="js/service-worker.js"></script>--> |
| 101 | </body> |
| 102 | </html> |