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"> |
| 26 | <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| 27 | <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" /> |
| 28 | |
| 29 | <!-- Apple web app --> |
| 30 | <link rel="apple-touch-icon" href="img/graf.png"> |
| 31 | <meta name="apple-mobile-web-app-title" content="Graf FME"> |
| 32 | <meta name="apple-mobile-web-app-capable" content="yes"> |
| 33 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 34 | </head> |
| 35 | <body> |
| 36 | <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> |
| 37 | <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> |
| 38 | |
| 39 | <div id="backdrop-container" style="display: none;"> |
| 40 | <div id="backdrop"></div> |
| 41 | </div> |
| 42 | <div id="dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 43 | <button id="quit-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 44 | <button id="min-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">remove</i></button> |
| 45 | <div id="dialog-vertex"> |
| 46 | <h2 data-fill="name"></h2> |
| 47 | <ul> |
| 48 | <li><b>Any:</b> <span data-fill="year"></span></li> |
| 49 | <li><b>Sexe:</b> <span data-fill="sex"></span></li> |
| 50 | <li><b>ID:</b> <span data-fill="id"></span></li> |
| 51 | </ul> |
| 52 | <h3>Arestes (<span data-fill="n-edges"></span>):</h3> |
| 53 | <ul data-fill="edges"> |
| 54 | </ul> |
| 55 | </div> |
| 56 | <div id="dialog-edge" style="display: none;"> |
| 57 | </div> |
| 58 | </div> |
| 59 | <div id="summary-dialog" class="mdl-shadow--2dp" style="display: none;"> |
| 60 | <button id="quit2-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">close</i></button> |
| 61 | <button id="max-dialog" class="mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect"><i class="material-icons">add</i></button> |
| 62 | <div id="summary-vertex"> |
| 63 | <h2 data-fill="name"></h2> |
| 64 | <p><span data-fill="year"></span>, <span data-fill="sex"></span>, <span data-fill="id"></span></p> |
| 65 | </div> |
| 66 | </div> |
| 67 | |
| 68 | <div id="graf"></div> |
| 69 | |
| 70 | <script src="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js"></script> |
| 71 | <script src="js/script.js"></script> |
| 72 | <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script> |
| 73 | <!--<script src="js/service-worker.js"></script>--> |
| 74 | </body> |
| 75 | </html> |