blob: 634dc59f1fc8c16aa16edc017898a57d4f323bd7 [file] [log] [blame]
Dani Vilardell996d8692020-09-21 23:48:12 +02001<!DOCTYPE html>
Dani Vilardell21dacea2020-09-21 14:25:20 +02002<script type="text/javascript" src="./horaris.json"></script>
Dani Vilardelld4bfb752020-09-21 21:32:55 +02003<script type="text/javascript" src="./autocomplete.js"></script>
Dani Vilardellaae4e2d2020-09-22 17:33:39 +02004<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 Vilardell12518e22020-09-21 16:00:07 +02007<meta charset="utf-8">
Dani Vilardell21dacea2020-09-21 14:25:20 +02008
Andreu Huguet8d2e08f2020-09-17 14:15:23 +02009<html>
10 <head>
11 </head>
Dani Vilardelld4bfb752020-09-21 21:32:55 +020012 <link rel="stylesheet" href="autocomplete.css">
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020013 <body>
14 <h1>App de traçabilitat DAFME</h1>
Dani Vilardell21dacea2020-09-21 14:25:20 +020015 <h2 id = "assignatura"></h2>
Dani Vilardell21dacea2020-09-21 14:25:20 +020016 <h3 id = "aula"></h3>
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020017 <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 Vilardell12518e22020-09-21 16:00:07 +020025
Dani Vilardell996d8692020-09-21 23:48:12 +020026 <form id="subjectListInput" autocomplete="off">
27 <div class="autocomplete" id="input2" style="width:300px;">
Dani Vilardelld4bfb752020-09-21 21:32:55 +020028 <input id="myInput" type="text" name="mySubject" placeholder="Subject">
29 </div>
Dani Vilardell996d8692020-09-21 23:48:12 +020030
31 </form>
32 <button onclick="completeSubjectList()">Afegeix</button>
33
34 <div id="subjectList"></div>
35
36 <form>
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020037 <label for="seient" id="seient"></label><br>
Dani Vilardell996d8692020-09-21 23:48:12 +020038 <input type="text" id="seientInput" placeholder="Seient"><br>
Dani Vilardelld4bfb752020-09-21 21:32:55 +020039 </form>
40
Dani Vilardell996d8692020-09-21 23:48:12 +020041 <form id = "link">
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020042 <!--<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 Vilardell12518e22020-09-21 16:00:07 +020044 </form>
45
Dani Vilardelld4bfb752020-09-21 21:32:55 +020046 <script>
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020047 var codisFiles = ["208184485", "1077148310", "642851281", "1686039024", "697835787", "1511799646", "809853432", "182597499", "1890539481", "529159478", "1615241874", "1334263875"];
Dani Vilardell996d8692020-09-21 23:48:12 +020048 var classesAlumne = [{}];
Dani Vilardelld4bfb752020-09-21 21:32:55 +020049 var subjects = ["Calcul 1", "Calcul 2", "Algebra Lineal", "Geometria", "Numerica", "EDOS"];
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020050 var linkOutput = "";
Dani Vilardell21dacea2020-09-21 14:25:20 +020051 var mydata = JSON.parse(classes);
Dani Vilardell996d8692020-09-21 23:48:12 +020052 let datahoraris = JSON.stringify(classesAlumne);
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020053 var hora_actual = new Date();
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020054 var minuts, dia, mes, any, data;
Dani Vilardell21dacea2020-09-21 14:25:20 +020055
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020056 if(localStorage.pos == null) localStorage.pos = 0;
Dani Vilardelld4bfb752020-09-21 21:32:55 +020057
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020058 autocomplete(document.getElementById("myInput"), subjects);
59
60 getTimeAndDate();
61
Dani Vilardell996d8692020-09-21 23:48:12 +020062 if(localStorage.classesAlumne != null) classesAlumne = JSON.parse(localStorage.classesAlumne);
63
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020064 writeSubjectList();
65
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020066 document.getElementById("data").innerHTML = data;
Dani Vilardell996d8692020-09-21 23:48:12 +020067
68 </script>
Dani Vilardell12518e22020-09-21 16:00:07 +020069
Dani Vilardellaae4e2d2020-09-22 17:33:39 +020070
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020071 </body>
72</html>