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 | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 7 | <script type="text/javascript" src="./completeHTML.js"></script> |
| 8 | <script type="text/css" src="./autocomplete.css"></script> |
| 9 | <script type="text/css" src="./generalStyle.css"></script> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 10 | <meta charset="utf-8"> |
Dani Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 11 | |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 12 | <html> |
| 13 | <head> |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 14 | <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 | } |
| 37 | </style> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 38 | </head> |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 39 | <center> |
| 40 | <link rel="stylesheet" href="autocomplete.css"> |
| 41 | <body> |
| 42 | <h1>App de traçabilitat DAFME</h1> |
| 43 | <h2 id = "assignatura"></h2> |
| 44 | <h3 id = "aula"></h3> |
| 45 | |
| 46 | <h2 id="hora"> |
| 47 | <span id="inici"></span> - |
| 48 | <span id="fi"></span> |
| 49 | </h2> |
| 50 | <h3 id="data"></h3> |
| 51 | <p> <br></p> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 52 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 53 | <form id="subjectListInput" autocomplete="off"> |
| 54 | <div class="autocomplete" id="input2" style="width:300px;"> |
| 55 | <input id="myInput" type="text" name="mySubject" placeholder="Subject"> |
| 56 | </div> |
| 57 | </form> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 58 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 59 | <a class="myButton" onclick="completeSubjectList()">Afegeix</a> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 60 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 61 | <p id="alert" style="opacity: 0; color:red;"> |
| 62 | |
| 63 | </p> |
| 64 | <div id="subjectList"><b>Assignatures Cursades:</b></div> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 65 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 66 | <form> |
| 67 | <label for="seient" id="seient"></label><br> |
| 68 | <input type="text" id="seientInput" placeholder="Seient" style="width:300px;"><br> |
| 69 | </form> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 70 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 71 | <form id = "link"> |
| 72 | <!--<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 Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 73 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 74 | <a class="myButton" type="reset" onclick="completaLink()">Continua</a> |
| 75 | </form> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 76 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 77 | <p> <br></p> |
| 78 | <a class="myButton" href="https://docs.google.com/forms/d/e/1FAIpQLSfT9o287VqLyhwR8LPdloAQWhuqCgA3NfdhgP5vb9_sVQHL-g/viewform">Hi ha errors? Completa formulari manualment</a> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 79 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 80 | <script> |
| 81 | //localStorage.clear(); |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 82 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 83 | var codisFiles = ["208184485", "1077148310", "642851281", "1686039024", "697835787", "1511799646", "809853432", "182597499", "1890539481", "529159478", "1615241874", "1334263875"]; |
| 84 | var subjects = []; |
| 85 | var linkOutput = ""; |
| 86 | var totesLesClasses = JSON.parse(classes); |
| 87 | var dataHorarisAlumne = []; |
| 88 | var hora_actual = new Date(); |
| 89 | var minuts, dia, mes, any, data; |
| 90 | |
| 91 | if(localStorage.dataHorarisAlumne != null) dataHorarisAlumne = JSON.parse(localStorage.dataHorarisAlumne); |
| 92 | |
| 93 | console.log(localStorage.dataHorarisAlumne); |
| 94 | |
| 95 | //localStorage.clear(); |
| 96 | returnAllSubjectArray(); |
| 97 | autocomplete(document.getElementById("myInput"), subjects); |
| 98 | getTimeAndDate(); |
| 99 | completaHTML(); |
| 100 | writeSubjectList(); |
| 101 | |
| 102 | </script> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 103 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame] | 104 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame^] | 105 | </body> |
| 106 | </center> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 107 | </html> |