blob: a19dbd3cc4acf0f416220fa2fc37e5e76e97c5da [file] [log] [blame]
Andreu66ad5cf2019-09-18 17:15:44 +02001<html>
2 <head>
3 <meta charset="UTF-8">
4 <title>Pàgina de l'usuari</title>
Andreuefe66eb2019-09-21 18:41:49 +02005
Andreu66ad5cf2019-09-18 17:15:44 +02006 <link rel="stylesheet" href="./css/basic.css" />
7 <link rel="stylesheet" href="./css/main.css" />
Andreu10cb3042019-09-18 19:55:36 +02008
Andreu66ad5cf2019-09-18 17:15:44 +02009 <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
Andreued8e1f92019-09-18 22:26:04 +020010 <script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script>
Andreuefe66eb2019-09-21 18:41:49 +020011
Andreu10cb3042019-09-18 19:55:36 +020012 <script src="./js/utils.js"></script>
Andreuefe66eb2019-09-21 18:41:49 +020013 <script src="./js/animations.js"></script>
Andreu66ad5cf2019-09-18 17:15:44 +020014
Andreudca79f42019-09-18 23:53:19 +020015 <?php
16 require './php/login.php';
17 ?>
Andreued8e1f92019-09-18 22:26:04 +020018
Andreu66ad5cf2019-09-18 17:15:44 +020019 <script>
Andreued491672019-09-20 13:09:18 +020020 let user = {
21 'id': <?=$user->id?>,
22 'quimata': <?=$user->quimata?>,
23 'requested': <?=$user->requested?>,
Andreuabbcb7e2019-09-21 18:22:14 +020024 'mort': <?=$user->mort?>,
25
26 'nom': "<?=$user->nomcomplet?>",
27 'curs': <?=$user->curs?>,
28 'grau': <?=$user->grau?>
Andreued491672019-09-20 13:09:18 +020029 };
Andreu66ad5cf2019-09-18 17:15:44 +020030 </script>
Andreudca79f42019-09-18 23:53:19 +020031
Andreu66ad5cf2019-09-18 17:15:44 +020032 </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>
Andreu885889c2019-09-19 00:28:20 +020038 <div id="state">0</div>
Andreu66ad5cf2019-09-18 17:15:44 +020039
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>
Andreuabbcb7e2019-09-21 18:22:14 +020047 <div id="butons" class="options">
48 <button id="win" onclick="js: send_request(user, 'REQ KILL');">L'he matat</button>
Andreu66ad5cf2019-09-18 17:15:44 +020049 </div>
50
51 <script>
Andreudca79f42019-09-18 23:53:19 +020052 $(document).ready(function() {
Andreuabbcb7e2019-09-21 18:22:14 +020053 // Set interval of checking
Andreuefe66eb2019-09-21 18:41:49 +020054 let checking = setInterval(function() { update_info(user); }, 1500);
Andreudca79f42019-09-18 23:53:19 +020055 });
Andreu66ad5cf2019-09-18 17:15:44 +020056 </script>
57 </body>
58</html>