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 | } |
Dani Vilardell | 824ec33 | 2020-09-23 16:00:40 +0200 | [diff] [blame] | 37 | .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 Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 59 | </style> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 60 | </head> |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 61 | <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 Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 73 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 74 | <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 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 | <a class="myButton" onclick="completeSubjectList()">Afegeix</a> |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 81 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 82 | <p id="alert" style="opacity: 0; color:red;"> |
| 83 | |
| 84 | </p> |
| 85 | <div id="subjectList"><b>Assignatures Cursades:</b></div> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 86 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 87 | <form> |
| 88 | <label for="seient" id="seient"></label><br> |
| 89 | <input type="text" id="seientInput" placeholder="Seient" style="width:300px;"><br> |
| 90 | </form> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 91 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 92 | <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 Vilardell | 21dacea | 2020-09-21 14:25:20 +0200 | [diff] [blame] | 94 | |
Dani Vilardell | 824ec33 | 2020-09-23 16:00:40 +0200 | [diff] [blame] | 95 | <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 Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 99 | </form> |
Dani Vilardell | d4bfb75 | 2020-09-21 21:32:55 +0200 | [diff] [blame] | 100 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 101 | <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] | 102 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 103 | <script> |
| 104 | //localStorage.clear(); |
Dani Vilardell | 996d869 | 2020-09-21 23:48:12 +0200 | [diff] [blame] | 105 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 106 | 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 Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 116 | //localStorage.clear(); |
| 117 | returnAllSubjectArray(); |
| 118 | autocomplete(document.getElementById("myInput"), subjects); |
| 119 | getTimeAndDate(); |
| 120 | completaHTML(); |
| 121 | writeSubjectList(); |
| 122 | |
| 123 | </script> |
Dani Vilardell | 12518e2 | 2020-09-21 16:00:07 +0200 | [diff] [blame] | 124 | |
Dani Vilardell | aae4e2d | 2020-09-22 17:33:39 +0200 | [diff] [blame] | 125 | |
Dani Vilardell | d4f2c90 | 2020-09-23 13:54:19 +0200 | [diff] [blame] | 126 | </body> |
| 127 | </center> |
Andreu Huguet | 8d2e08f | 2020-09-17 14:15:23 +0200 | [diff] [blame] | 128 | </html> |