blob: 48e9d1a2c4ef66f8ac585548e2b5a826b6a78700 [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>
Andreu Huguet932617d2020-09-27 20:24:17 +02003<script type="text/javascript" src="./js/autocomplete.js"></script>
4<script type="text/javascript" src="./js/completeLink.js"></script>
5<script type="text/javascript" src="./js/completeSubjectListInHTML.js"></script>
6<script type="text/javascript" src="./js/getTimeAndDate.js"></script>
7<script type="text/javascript" src="./js/completeHTML.js"></script>
8<script type="text/css" src="./css/autocomplete.css"></script>
9<script type="text/css" src="./css/generalStyle.css"></script>
Dani Vilardell12518e22020-09-21 16:00:07 +020010<meta charset="utf-8">
Dani Vilardell21dacea2020-09-21 14:25:20 +020011
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020012<html>
13 <head>
Dani Vilardelld4f2c902020-09-23 13:54:19 +020014 <style type="text/css">
15 .myButton {
16 box-shadow:inset 0px 1px 0px 0px #6e9eb8;
17 background:linear-gradient(to bottom, #1a5b8c 5%, #4b84a3 100%);
18 background-color:#1a5b8c;
19 border:1px solid #22536e;
20 display:inline-block;
21 cursor:pointer;
22 color:#ffffff;
23 font-family:Arial;
24 font-size:13px;
25 font-weight:bold;
26 padding:6px 12px;
27 text-decoration:none;
28 }
29 .myButton:hover {
30 background:linear-gradient(to bottom, #4b84a3 5%, #1a5b8c 100%);
31 background-color:#4b84a3;
32 }
33 .myButton:active {
34 position:relative;
35 top:1px;
36 }
Dani Vilardell824ec332020-09-23 16:00:40 +020037 .myButton2 {
38 box-shadow:inset 0px 1px 0px 0px #b30000;
39 background:linear-gradient(to bottom, #ff1a1a 5%, #ff8080 100%);
40 background-color:#ff6666;
41 border:1px solid #990000;
42 display:inline-block;
43 cursor:pointer;
44 color:#ffffff;
45 font-family:Arial;
46 font-size:13px;
47 font-weight:bold;
48 padding:6px 12px;
49 text-decoration:none;
50 }
51 .myButton2:hover {
52 background:linear-gradient(to bottom, #ff8080 5%, #ff1a1a 100%);
53 background-color:#ff6666;
54 }
55 .myButton2:active {
56 position:relative;
57 top:1px;
58 }
Dani Vilardelld4f2c902020-09-23 13:54:19 +020059 </style>
Andreu Huguet8d2e08f2020-09-17 14:15:23 +020060 </head>
Dani Vilardelld4f2c902020-09-23 13:54:19 +020061 <center>
62 <link rel="stylesheet" href="autocomplete.css">
63 <body>
64 <h1>App de traçabilitat DAFME</h1>
65 <h2 id = "assignatura"></h2>
66 <h3 id = "aula"></h3>
67
68 <h2 id="hora">
69 <span id="inici"></span> -
70 <span id="fi"></span>
71 </h2>
72 <h3 id="data"></h3>
Dani Vilardell12518e22020-09-21 16:00:07 +020073
Dani Vilardelld4f2c902020-09-23 13:54:19 +020074 <form id="subjectListInput" autocomplete="off">
75 <div class="autocomplete" id="input2" style="width:300px;">
76 <input id="myInput" type="text" name="mySubject" placeholder="Subject">
77 </div>
78 </form>
Dani Vilardell996d8692020-09-21 23:48:12 +020079
Dani Vilardelld4f2c902020-09-23 13:54:19 +020080 <a class="myButton" onclick="completeSubjectList()">Afegeix</a>
Dani Vilardell996d8692020-09-21 23:48:12 +020081
Dani Vilardelld4f2c902020-09-23 13:54:19 +020082 <p id="alert" style="opacity: 0; color:red;">
83
84 </p>
85 <div id="subjectList"><b>Assignatures Cursades:</b></div>
Dani Vilardelld4bfb752020-09-21 21:32:55 +020086
Dani Vilardelld4f2c902020-09-23 13:54:19 +020087 <form>
88 <label for="seient" id="seient"></label><br>
89 <input type="text" id="seientInput" placeholder="Seient" style="width:300px;"><br>
90 </form>
Dani Vilardell12518e22020-09-21 16:00:07 +020091
Dani Vilardelld4f2c902020-09-23 13:54:19 +020092 <form id = "link">
93 <!--<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]>-->
Dani Vilardell21dacea2020-09-21 14:25:20 +020094
Dani Vilardell824ec332020-09-23 16:00:40 +020095 <h2>
96 <a class="myButton" type="reset" onclick="completaLink()">Continua</a>
97 <a class="myButton2" onclick="completaLinkNoAnatClasse()">No he assistit a classe</a>
98 </h2>
Dani Vilardelld4f2c902020-09-23 13:54:19 +020099 </form>
Dani Vilardelld4bfb752020-09-21 21:32:55 +0200100
Dani Vilardelld4f2c902020-09-23 13:54:19 +0200101 <a class="myButton" href="https://docs.google.com/forms/d/e/1FAIpQLSfT9o287VqLyhwR8LPdloAQWhuqCgA3NfdhgP5vb9_sVQHL-g/viewform">Hi ha errors? Completa formulari manualment</a>
Dani Vilardell996d8692020-09-21 23:48:12 +0200102
Dani Vilardelld4f2c902020-09-23 13:54:19 +0200103 <script>
104 //localStorage.clear();
Dani Vilardell996d8692020-09-21 23:48:12 +0200105
Dani Vilardelld4f2c902020-09-23 13:54:19 +0200106 var codisFiles = ["208184485", "1077148310", "642851281", "1686039024", "697835787", "1511799646", "809853432", "182597499", "1890539481", "529159478", "1615241874", "1334263875"];
107 var subjects = [];
108 var linkOutput = "";
109 var totesLesClasses = JSON.parse(classes);
110 var dataHorarisAlumne = [];
111 var hora_actual = new Date();
112 var minuts, dia, mes, any, data;
113
114 if(localStorage.dataHorarisAlumne != null) dataHorarisAlumne = JSON.parse(localStorage.dataHorarisAlumne);
115
Dani Vilardelld4f2c902020-09-23 13:54:19 +0200116 //localStorage.clear();
117 returnAllSubjectArray();
118 autocomplete(document.getElementById("myInput"), subjects);
119 getTimeAndDate();
120 completaHTML();
121 writeSubjectList();
122
123 </script>
Dani Vilardell12518e22020-09-21 16:00:07 +0200124
Dani Vilardellaae4e2d2020-09-22 17:33:39 +0200125
Dani Vilardelld4f2c902020-09-23 13:54:19 +0200126 </body>
127 </center>
Andreu Huguet8d2e08f2020-09-17 14:15:23 +0200128</html>