Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <meta charset="UTF-8"> |
| 4 | <title>Pàgina de l'usuari</title> |
Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame^] | 5 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 6 | <link rel="stylesheet" href="./css/basic.css" /> |
| 7 | <link rel="stylesheet" href="./css/main.css" /> |
Andreu | 10cb304 | 2019-09-18 19:55:36 +0200 | [diff] [blame] | 8 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 9 | <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame] | 10 | <script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script> |
Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame^] | 11 | |
Andreu | 10cb304 | 2019-09-18 19:55:36 +0200 | [diff] [blame] | 12 | <script src="./js/utils.js"></script> |
Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame^] | 13 | <script src="./js/animations.js"></script> |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 14 | |
Andreu | dca79f4 | 2019-09-18 23:53:19 +0200 | [diff] [blame] | 15 | <?php |
| 16 | require './php/login.php'; |
| 17 | ?> |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame] | 18 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 19 | <script> |
Andreu | ed49167 | 2019-09-20 13:09:18 +0200 | [diff] [blame] | 20 | let user = { |
| 21 | 'id': <?=$user->id?>, |
| 22 | 'quimata': <?=$user->quimata?>, |
| 23 | 'requested': <?=$user->requested?>, |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 24 | 'mort': <?=$user->mort?>, |
| 25 | |
| 26 | 'nom': "<?=$user->nomcomplet?>", |
| 27 | 'curs': <?=$user->curs?>, |
| 28 | 'grau': <?=$user->grau?> |
Andreu | ed49167 | 2019-09-20 13:09:18 +0200 | [diff] [blame] | 29 | }; |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 30 | </script> |
Andreu | dca79f4 | 2019-09-18 23:53:19 +0200 | [diff] [blame] | 31 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 32 | </head> |
| 33 | <body> |
| 34 | <div id="outter-container"> |
| 35 | <div id="inner-container"> |
| 36 | <h2>Hola <name id="user_name"><?=$user->nom()?></name>,</h2> |
| 37 | <h3>La teva víctima és:</h3> |
Andreu | 885889c | 2019-09-19 00:28:20 +0200 | [diff] [blame] | 38 | <div id="state">0</div> |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 39 | |
| 40 | <div class="victima"> |
| 41 | <img width="300px" src="./imgs/<?=$victim->id?>.png" /> |
| 42 | <h2 id="victim_name"><?=$victim->nomcomplet?></h2> |
| 43 | <h3><span id="victim_curs"><?=$victim->curs?></span>-<span id="victim_grau"><?=$victim->grau?></span></h3> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 47 | <div id="butons" class="options"> |
| 48 | <button id="win" onclick="js: send_request(user, 'REQ KILL');">L'he matat</button> |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 49 | </div> |
| 50 | |
| 51 | <script> |
Andreu | dca79f4 | 2019-09-18 23:53:19 +0200 | [diff] [blame] | 52 | $(document).ready(function() { |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 53 | // Set interval of checking |
Andreu | efe66eb | 2019-09-21 18:41:49 +0200 | [diff] [blame^] | 54 | let checking = setInterval(function() { update_info(user); }, 1500); |
Andreu | dca79f4 | 2019-09-18 23:53:19 +0200 | [diff] [blame] | 55 | }); |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 56 | </script> |
| 57 | </body> |
| 58 | </html> |