Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 1 | <!DOCTYPE html> |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 2 | <script type="text/javascript" src="./horaris.json"></script> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 3 | <script type="text/javascript" src="./autocomplete.js"></script> |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 4 | <script type="text/javascript" src="./completeLink.js"></script> |
| 5 | <script type="text/javascript" src="./completeSubjectListInHTML.js"></script> |
| 6 | <script type="text/javascript" src="./getTimeAndDate.js"></script> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 7 | <meta charset="utf-8"> |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 8 | |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 9 | <html> |
| 10 | <head> |
| 11 | </head> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 12 | <link rel="stylesheet" href="autocomplete.css"> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 13 | <body> |
| 14 | <h1>App de traçabilitat DAFME</h1> |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 15 | <h2 id = "assignatura"></h2> |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 16 | <h3 id = "aula"></h3> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 17 | <a href="#">No és així? Canvia-ho.</a> |
| 18 | |
| 19 | <h2 id="hora"> |
| 20 | <span id="inici"></span> - |
| 21 | <span id="fi"></span> |
| 22 | </h2> |
| 23 | <h3 id="data"></h3> |
| 24 | <a href="#">No és així? Canvia-ho.</a> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 25 | |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 26 | <form id="subjectListInput" autocomplete="off"> |
| 27 | <div class="autocomplete" id="input2" style="width:300px;"> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 28 | <input id="myInput" type="text" name="mySubject" placeholder="Subject"> |
| 29 | </div> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 30 | |
| 31 | </form> |
| 32 | <button onclick="completeSubjectList()">Afegeix</button> |
| 33 | |
| 34 | <div id="subjectList"></div> |
| 35 | |
| 36 | <form> |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 37 | <label for="seient" id="seient"></label><br> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 38 | <input type="text" id="seientInput" placeholder="Seient"><br> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 39 | </form> |
| 40 | |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 41 | <form id = "link"> |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 42 | <!--<form id = "link" action = https://docs.google.com/forms/d/e/1FAIpQLSfT9o287VqLyhwR8LPdloAQWhuqCgA3NfdhgP5vb9_sVQHL-g/viewform?entry.1063142948=S03&entry.2115504093=2020-09-14&entry.1749141911=9:00&entry.1827359679=10:00&entry.208184485=Columna+3&entry.1600275159=[Autogenerat+per+delefme/covid-tracability]>--> |
| 43 | <button onclick="completaLink()">Continua</button> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 44 | </form> |
| 45 | |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 46 | <script> |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 47 | var codisFiles = ["208184485", "1077148310", "642851281", "1686039024", "697835787", "1511799646", "809853432", "182597499", "1890539481", "529159478", "1615241874", "1334263875"]; |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 48 | var classesAlumne = [{}]; |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 49 | var subjects = ["Calcul 1", "Calcul 2", "Algebra Lineal", "Geometria", "Numerica", "EDOS"]; |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 50 | var linkOutput = ""; |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 51 | var mydata = JSON.parse(classes); |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 52 | let datahoraris = JSON.stringify(classesAlumne); |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 53 | var hora_actual = new Date(); |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 54 | var minuts, dia, mes, any, data; |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 55 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 56 | if(localStorage.pos == null) localStorage.pos = 0; |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 57 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 58 | autocomplete(document.getElementById("myInput"), subjects); |
| 59 | |
| 60 | getTimeAndDate(); |
| 61 | |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 62 | if(localStorage.classesAlumne != null) classesAlumne = JSON.parse(localStorage.classesAlumne); |
| 63 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 64 | writeSubjectList(); |
| 65 | |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 66 | document.getElementById("data").innerHTML = data; |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 67 | |
| 68 | </script> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 69 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame^] | 70 | |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 71 | </body> |
| 72 | </html> |