-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrenotatore Agende UniPi.user.js
986 lines (840 loc) · 99.9 KB
/
Prenotatore Agende UniPi.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
// ==UserScript==
// @name Prenotatore Agende UniPi
// @namespace https://alessandro-antonelli.github.io/
// @version 1.5
// @description Esegue automaticamente la prenotazione sul sito agende.unipi.it
// @author Alessandro Antonelli
// @match https://agende.unipi.it/*
// @icon https://www.google.com/s2/favicons?domain=unipi.it
// @grant none
// @license MIT
// ==/UserScript==
// Source code repository; https://github.com/alessandro-antonelli/prenotatore-agende-unipi
const versione = '1.5';
var CodiceAgenda;
var OraAvvio;
var OraUltimoControllo;
var ElencoSlot = [];
var TimestampProssimoRiavvio;
var TimerProssimoRiavvio;
var TimerTieniAggiornataDataRiavvio;
var TimerAggiornaCountdown;
var TimerLampeggioSpia;
var PrenotazioniInCorso = 0;
var RiconoscimentoClickManuali = true;
const SimboloInfo = '<img width="16" height="16" style="margin-right: 3px" alt="Info" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+CiAgPGNpcmNsZSBjeT0iMjQiIGN4PSIyNCIgcj0iMjMiIHN0cm9rZT0iIzAwMCIgZmlsbD0ibm9uZSIvPgogIDxjaXJjbGUgY3g9IjI0IiBjeT0iMTEuNiIgcj0iNC43Ii8+CiAgPHBhdGggZD0ibTE3LjQgMTguOHYyLjE1aDEuMTNjMi4yNiAwIDIuMjYgMS4zOCAyLjI2IDEuMzh2MTUuMXMwIDEuMzgtMi4yNiAxLjM4aC0xLjEzdjIuMDhoMTQuMnYtMi4wOGgtMS4xM2MtMi4yNiAwLTIuMjYtMS4zOC0yLjI2LTEuMzh2LTE4LjYiLz4KPC9zdmc+" />';
const ThrobberCaricamento = '<img alt="caricamento..." style="object-fit: cover; height: 25px; width: 32px" height="32" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zO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FgykVIEzteKFhIoRIdVPhRJ+jRafybstJV3NgYn0EMDWewYjR9/xmCoAIgU16AVj+yLUtrarXtBdIZkNSLf////////dnYu+PPKWREyj4XZ//8NKNMWp4KdqKM/e0GLVpy99VNppMaLAeEcojFbP6ZmAyxAeCDieFIZ0PwH/Uv//////2f1//////////27/+/szHeY8jTohGVhxFf8Q1CXYf0rw0TuVbAmyCgz/+xDECAPKHa0AB6StCAAANIAAAASqgCoZBFwyGYTAKfIWcjizXo0xuVS/zP///////q3o/R1K3zf+Xo///6G//zPmNKY2/X/6GcowPCwiHWEgCAIPTExBTUUzLjk5LjOqqqqqqqqqqg==';
//fonte: https://freesound.org/people/FunWithSound/sounds/456966/
const SuonoNuovoSlotPubblicato = 'data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAnAAAj5wADAwYGBg0NHBwcJCQtLS02NkVFRUtLS1NTWFhYaGhra2txcXd3d4GBgYeHjIyMkZGXl5ednaKioqenra2tsrKyuLi9vb3Dw8nJyc7O09PT2tra4ODm5ubr6/Hx8fb2/Pz8//8AAAA5TEFNRTMuOTlyAqUAAAAAAAAAABRAJAOGQgAAQAAAI+fu74JqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//sQxAAABCgDCaAEQACSAGO0EIgCAHHHwAA0aLGXl+S///+qIP9Wj5f/yH9Jf/kP/+Rz6gsGLZZbIJbo0EgjjBaZ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AFcJb0W3i//tAxAoDSmCBIE087wFjEGOJrCXgp012hXcwvznCTavyEJEs9VbILscrrs00ynP10ogsNoltAWA4Zeg672eqRWTU4509K2//b+uS/1f/r//+9PYXgnn6zwtTsXa8MCjkGYcLAQOnAxEfjusBL36iRlE/9mIzI4Zj8pqUpAN1qKXU0RfCLMSkbtkYbcpuABETXjbltuPy4FBAPzUXpfAsOej////////2aalDhjUQAAqA024G1XX/+0DEBIAKCH0hSOjpwS8NY6QcvKiXhcwThQXtDgpPNQI+KRV0Vh706c7XdJ7Qidty9EJVN1XWazDUa7SU7GFEMLuJwM6nn51KqKDXv6nBX/p/+v9b+j///+826qQAJNrahaDq2aZmQkFFgqczohDD5Wc6pnCR+d7OXo0UDCnZSewn8kakWqKZyZFhjY3h7bNPEjWzR1X4Vt//31dX/7P///rvbAwPpY6BEAAAAAADrRQTk88wlf/7IMQHAAkcVxHgvSbAk4BaaBEIAMvo2cbpuD+lmzsf7Col2KxNv+S9IpkpE8aDVQNeeROnuhZYfdkb/Ez/pk/9QFnf9n+3iW22sGgdEQdcgDADgAEURNgUVElSgmGTP1ihI1/////qF//1t//8V8X//6AqQUxBTUUzLjk5LjNVVVU=';
//fonte: https://notificationsounds.com/wake-up-tones/arpeggio-467
(async function()
{
'use strict';
OraAvvio = new Date();
const url = window.location.href;
let RegExpURL = new RegExp('https://agende.unipi.it/[a-z]{3}-[a-z]{3}-[a-z]{3}');
if(!RegExpURL.test(url))
{ console.log('Prenotatore Agende v.' + versione + ' | Non sono in un\'agenda: mi disattivo'); return; }
else {
CodiceAgenda = url.replace('https://agende.unipi.it/', '');
console.log('Prenotatore Agende v.' + versione + ' avviato! | codice agenda: ' + CodiceAgenda);
}
await VerificaCaricamentoPagina();
InstallaNeutralizzatoreAlert();
CaricaUI();
CaricaImpostazioni();
await VerificaCaricamentoAgenda();
await ElencaSlot();
CalcolaProssimoRiavvio();
await EseguiPrenotazioni();
})();
function InstallaNeutralizzatoreAlert()
{
var disablerFunction = function ()
{
window.alert = async function alert(msg) //Funzione che sovrascrive gli ALERT
{
if(msg == null) return;
var elemento = document.createElement('div');
elemento.style.margin = '5px auto 5px auto';
elemento.style.transitionDuration = '4s';
var contenuto = document.createElement('span');
contenuto.innerHTML = '⚠️ L\'agenda dice:<br/><b>' + msg + '</b>';
contenuto.style.display = 'inline-block';
contenuto.style.border = '3px solid gold';
contenuto.style.backgroundColor = 'yellow';
contenuto.style.borderRadius = '10px';
contenuto.style.padding = '5px';
elemento.appendChild(contenuto);
document.getElementById('ContenitoreAlert').appendChild(elemento);
await new Promise(resolve => setTimeout(resolve, 8000));
elemento.style.opacity = '0';
await new Promise(resolve => setTimeout(resolve, 4000));
elemento.remove();
};
window.confirm = async function confirm(msg) //Funzione che sovrascrive i CONFIRM
{
if(msg == null) return true;
var elemento = document.createElement('div');
elemento.style.margin = '5px auto 5px auto';
elemento.style.transitionDuration = '4s';
var contenuto = document.createElement('span');
contenuto.innerHTML = '⚠️ L\'agenda chiede:<br/><b>' + msg + '</b>';
contenuto.style.display = 'inline-block';
contenuto.style.border = '3px solid gold';
contenuto.style.backgroundColor = 'yellow';
contenuto.style.borderRadius = '10px';
contenuto.style.padding = '5px';
elemento.appendChild(contenuto);
document.getElementById('ContenitoreAlert').appendChild(elemento);
return true; // Simula il click sul pulsante "sì" da parte dell'utente
await new Promise(resolve => setTimeout(resolve, 8000));
elemento.style.opacity = '0';
await new Promise(resolve => setTimeout(resolve, 4000));
elemento.remove();
};
};
var disablerCode = "(" + disablerFunction.toString() + ")();";
var disablerScriptElement = document.createElement('script');
disablerScriptElement.textContent = disablerCode;
document.documentElement.appendChild(disablerScriptElement);
disablerScriptElement.parentNode.removeChild(disablerScriptElement);
}
async function VerificaCaricamentoPagina()
{
Attività(ThrobberCaricamento + ' 📄Caricamento pagina');
while(true)
{
var OraAttuale = new Date();
var DurataCaricamento = OraAttuale.getTime() - OraAvvio.getTime();
// Cerca di trovare un elemento che c'è sempre nella pagina; se è diverso da null, possiamo uscire con successo
if(document.querySelector("#agtitle") != null || document.querySelector("#agtext") != null)
{
//Pagina caricata con successo dopo DurataCaricamento ms
return;
}
// Non sono uscito dal ciclo: vuol dire che la pagina non si è ancora caricata
// Nel caso in cui il server risponda errore 503 (viene caricata una pagina con scritto solo "The service is unavailable"), ricarico la pagina
const Corpo503Old = 'The service is unavailable.';
const Corpo503New = `<h2>Service Unavailable</h2>
<hr><p>HTTP Error 503. The service is unavailable.</p>
`;
const Title503 = 'Service Unavailable';
if(document.body.innerHTML == Corpo503Old || document.body.innerHTML == Corpo503New || document.title == Title503) await RicaricaPagina('Ricevuto errore 503');
//Se non è siccesso niente ma è passato troppo tempo, ricarico
if(DurataCaricamento > 20000) await RicaricaPagina('Nessuna risposta');
await sleep(1000); //attendi 1 secondo che la pagina si carichi
}
}
async function VerificaCaricamentoAgenda()
{
var CountFallimenti = 0;
var ElementoTitolo, Titolo, DurataCaricamento;
while(true)
{
Attività(ThrobberCaricamento + ' 📆Caricamento agenda (' + (CountFallimenti+1) + '° tentativo)');
if(CountFallimenti >= 15) await RicaricaPagina('Slot non visualizzati'); //Agenda non ancora caricata dopo 15 tentativi
await sleep(1000); //attendi 1 secondo che la pagina si carichi
ElementoTitolo = document.querySelector("#agtext");
if (ElementoTitolo == null)
{ CountFallimenti++; continue; }
else
{
Titolo = ElementoTitolo.innerHTML;
if(Titolo == 'Nessuna descrizione')
{ CountFallimenti++; continue; }
else
{
// Controllo che ci siano degli slot nelle 10 settimane successive o precedenti
var BottoneAvanti = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-next-button.fc-button.fc-button-primary");
var BottoneIndietro = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-prev-button.fc-button.fc-button-primary");
var BottoneOggi = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > button");
var trovato = false;
//Controllo settimane successive
for(var spostamenti=0; spostamenti < 10; spostamenti++)
{
if(CiSonoCaselleNellaSettimana() == true) { trovato = true; break; }
else await BottoneIndietro.click();
}
await BottoneOggi.click();
if(!trovato)
{
//Controllo settimane precedenti
for(spostamenti=0; spostamenti < 10; spostamenti++)
{
if(CiSonoCaselleNellaSettimana() == true) { trovato = true; break; }
else await BottoneIndietro.click();
}
await BottoneOggi.click();
}
if(!trovato) //Il titolo dell'agenda si è caricato, ma non ci sono i riquadri per prenotare, nemmeno nelle settimane precedenti/successive
{
CountFallimenti++;
continue;
}
else { //Agenda caricata!
break;
}
} //fine if(Titolo != 'nessuna descrizione')
} //fine if(ElementoTitolo != null)
} //fine while
// Cambio titolo della finestra
document.title = document.getElementById('agtitle').innerHTML + ' [Prenotatore Agende ' + versione + ']';
}
function CaricaUI()
{
// Inietto CSS
const CSS =
`<style>
.slider:hover { cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; background: grey; cursor: pointer; border-radius: 12px; }
label { font-weight: normal !important; cursor: pointer; }
input[type=checkbox] { cursor: pointer; zoom: 2; }
input[type=checkbox]:disabled { cursor: not-allowed; }
.MioTooltip { position: relative; display: inline-block; }
.MioTooltip .TestoTooltip { top: 120%; left: 50%; max-width: 350px; margin-left: -50%; visibility: hidden; background-color: black; color: #fff; text-align: center; padding: 5px 0; border-radius: 6px; position: absolute; z-index: 50; }
.MioTooltip:hover .TestoTooltip { visibility: visible; }
.MioTooltip .TestoTooltip::after { content: " "; position: absolute; bottom: 100%; left: 50%; margin-left: -8px; border-width: 8px; border-style: solid; border-color: transparent transparent black transparent; }
</style>`;
document.querySelector('head').innerHTML += CSS;
// Inserisco casella dell'app
const ContenutoRiquadroApp =
`<h2 style="color: #0F4A7C; font-weight: bold; text-align: center; font-size: 200%">🤖Prenotatore Agende UniPi</h2>
<div style="width: 100%; float: left; font-size: 120%; padding: 0;">
<div id="OFF" style="display: none; margin: 0 0 8px 0; text-align: center">
<span style="background-color: #444444; color: white; font-size: 130%; font-weight: bold; border-radius: 8px; padding: 5px;">💤SPENTO</span>
<!--<span style="font-style: italic; font-size: 80%; vertical-align: top; display: inline-block">` + SimboloInfo + `Seleziona uno slot<br/>dalla lista per avviarmi.</span>-->
</div>
<div id="ON" style="display: none; margin: 0 0 8px 0; text-align: center">
<div style="text-align: center">
<span id="SpiaON" style="transition-duration: 3s; background-color: firebrick; color: white; font-size: 130%; font-weight: bold; border-radius: 8px; padding: 5px; margin-right: 5px;">
⚡ATTIVO</span><span style="font-style: italic; font-size: 80%; vertical-align: top; display: inline-block; max-width: 60%">` +
SimboloInfo + `Non chiudere questa pagina; mantieni il computer acceso e connesso a internet!</span>
</div>
</div>
<div style="border: 1px solid silver; margin-bottom: 8px; padding: 3px; border-left: none; border-right: none;">
<span style="margin-right: 5px;">Stato</span><span id="attività" style="color: #6C6F71"></span>
</div>
<h3 style="color: #0F4A7C; font-weight: bold;">Impostazioni</h3>
<fieldset id="FormFrequenza" style="padding: 0 0 0 0">
<span style="vertical-align: top;">Frequenza dei controlli:</span>
<div style="display: inline-block">
<input id="FrequenzaSlider" class="slider" type="range" min="-3" max="3" value="0" style="display: inline-block; width: 180px; -webkit-appearance: none; background: #005CC8; height: 15px; border-radius: 7px;" />
<div id="FrequenzaLabel" style="text-align: center; width: 180px; font-weight: bold; color: #005CC8;">ogni 3 minuti</div>
</div>
</fieldset>
<label class="MioTooltip">
<input type="checkbox" id="PrenotaNuoviSlot" style="vertical-align: top" />
Prenota i nuovi slot senza chiedermelo
<span class="TestoTooltip">Se selezioni questa opzione, quando viene pubblicato un nuovo slot nell'agenda, il prenotatore cercherà
di prenotarlo senza attendere un tuo ordine.<br/>➡️La pagina sarà aggiornata periodicamente per verificare se
vengono pubblicati nuovi slot.</span>
</label>
<div style="display: flex; flex-wrap: wrap;">
<h3 style="color: #0F4A7C; font-weight: bold; display: inline-block; flex: 0 0 auto; margin-right: 8px;">Slot disponibili</h3>
<span style="font-size: 80%; font-style: italic; display: inline-block; flex: 1 1; min-width: 100px;">` +
SimboloInfo + `Seleziona gli slot che vuoi siano prenotati automaticamente.</span>
</div>
<div id="ElencoSlot" style="border: 1px solid silver; min-height: 150px; background-color: white;">
<div style="text-align: center; font-size: 120%; padding: 8px;">
<img alt="attendi..." width="64" height="64" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wICg0MDM1YTRmYjQ5LCAyMDIwLTA1LTAxKSIKICAgc29kaXBvZGk6ZG9jbmFtZT0iR2Vhci5zdmciCiAgIGlkPSJzdmc4IgogICB2ZXJzaW9uPSIxLjEiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIgogICB2aWV3Qm94PSIwIDAgOTAuMzQzODExIDkwLjM0MzgxMSIKICAgaGVpZ2h0PSIxODAuNjg3NjIiCiAgIHdpZHRoPSIxODAuNjg3NjIiCiAgIHN0eWxlPSJkaXNwbGF5OmJsb2NrO3NoYXBlLXJlbmRlcmluZzphdXRvIj4KICA8bWV0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BhIDMwLDMwIDAgMCAxIDMuNTk0NTA1LC04LjY3NzkwNCB2IDAgbCAtOC40ODUyODEsLTguNDg1MjgxIDkuODk5NDk1LC05Ljg5OTQ5NSA4LjQ4NTI4MSw4LjQ4NTI4MSBBIDMwLDMwIDAgMCAxIC03LC0yOS4xNzE5MDQgdiAwIC0xMiBIIDcgdiAxMiBhIDMwLDMwIDAgMCAxIDguNjc3OTA0LDMuNTk0NTA1IHYgMCBsIDguNDg1MjgxLC04LjQ4NTI4MSA5Ljg5OTQ5NSw5Ljg5OTQ5NSAtOC40ODUyODEsOC40ODUyODEgQSAzMCwzMCAwIDAgMSAyOS4xNzE5MDQsLTcgTSAwLC0xOCBhIDE4LDE4IDAgMSAwIDAsMzYgMTgsMTggMCAxIDAgMCwtMzYiIC8+CiAgICA8L2c+CiAgPC9nPgogIDwhLS0gW2xkaW9dIGdlbmVyYXRlZCBieSBodHRwczovL2xvYWRpbmcuaW8vIC0tPgo8L3N2Zz4K" />
<br/>Caricamento in corso...
</div>
</div>
<div style="opacity: 0.7; text-align: center; margin-bottom: 5px">
Questo è uno strumento <u>non</u> ufficiale: non è stato creato dall'Università di Pisa. <b>Usalo responsabilmente!</b>
</div>
<div style="font-size: 70%; opacity: 0.7; text-align: center">
versione ` + versione + ` |
©2021 <a href="https://alessandro-antonelli.github.io/" target="blank">Alessandro Antonelli</a> |
<a href="https://github.com/alessandro-antonelli/prenotatore-agende-unipi" target="blank">codice sorgente su Github</a> |
rilasciato con <a href="https://raw.githubusercontent.com/alessandro-antonelli/prenotatore-agende-unipi/main/LICENSE" target="blank">licenza MIT</a> |
suoni: <a href="https://notificationsounds.com/" target="blank">Notification Sounds</a> |
icone di caricamento: <a href="https://loading.io/" target="blank">Loading.io</a>
</div>
</div>
`;
var RiquadroApp = document.createElement('div');
RiquadroApp.id = 'RiquadroApp';
RiquadroApp.style.minWidth = '220px';
RiquadroApp.style.maxWidth = 'fit-content';
RiquadroApp.style.height = 'fit-content';
RiquadroApp.style.flex = '2 1 35vw';
RiquadroApp.style.padding = '8px';
RiquadroApp.style.borderRadius = '20px';
RiquadroApp.style.backgroundColor = '#DDDDDD';
RiquadroApp.style.marginBottom = '20px';
RiquadroApp.innerHTML = ContenutoRiquadroApp;
document.querySelector("body > div.wrapper > section").prepend(RiquadroApp);
document.getElementById('PrenotaNuoviSlot').addEventListener('click', ClickPrenotaNuoviSlot);
document.getElementById('FrequenzaSlider').addEventListener('input', CambiamentoFrequenza.bind(null, null));
var ContainerAgenda = document.querySelector("body > div > section > div.container");
ContainerAgenda.style.minWidth = '500px';
ContainerAgenda.style.flex = '1 1 60vw';
ContainerAgenda.style.marginLeft = 'unset';
ContainerAgenda.style.marginLeft = 'unset';
var ContainerContenuto = document.querySelector("body > div > section");
ContainerContenuto.style.display = 'flex';
ContainerContenuto.style.flexDirection = 'row';
ContainerContenuto.style.flexWrap = 'wrap';
var ContenitoreAlert = document.createElement('div');
ContenitoreAlert.id = 'ContenitoreAlert';
ContenitoreAlert.style.position = 'fixed';
ContenitoreAlert.style.top = '0';
ContenitoreAlert.style.left = '0';
ContenitoreAlert.style.width = '100%';
ContenitoreAlert.style.fontSize = '130%';
ContenitoreAlert.style.textAlign = 'center';
ContenitoreAlert.style.zIndex = '10';
document.body.append(ContenitoreAlert);
CambiamentoVisibilitàPagina();
document.addEventListener('visibilitychange', CambiamentoVisibilitàPagina, false);
// Se l'utente clicca sul calendario (effettuando/togliendo manualmente una prenotazione), triggero aggiornamento della lista degli slot nella UI
document.querySelector('#calendar > div.fc-view-container').addEventListener('click', async() => {
if(RiconoscimentoClickManuali) { await sleep(1000); ElencaSlot(); }
});
}
function CambiamentoVisibilitàPagina()
{
if(document.hidden)
{
if(TimerLampeggioSpia != null) { clearTimeout(TimerLampeggioSpia); TimerLampeggioSpia = null; }
if(TimerAggiornaCountdown != null) { clearTimeout(TimerAggiornaCountdown); TimerAggiornaCountdown = null; }
} else
{
LampeggioSpia();
if(TimerLampeggioSpia == null) TimerLampeggioSpia = setInterval(LampeggioSpia, 3000);
if(TimestampProssimoRiavvio != null) AttivaCountdownRefresh();
}
}
function LampeggioSpia()
{
var spia = document.getElementById('SpiaON');
if(spia != null)
{
if(spia.style.backgroundColor == 'firebrick') spia.style.backgroundColor = 'red';
else if(spia.style.backgroundColor == 'red') spia.style.backgroundColor = 'firebrick';
}
}
function CaricaImpostazioni()
{
const ElencoSlotStr = localStorage.getItem(CodiceAgenda + 'ElencoSlot');
if(ElencoSlotStr != null && ElencoSlotStr != '') ElencoSlot = JSON.parse(ElencoSlotStr);
const FrequenzaStr = localStorage.getItem(CodiceAgenda + 'Frequenza');
if(FrequenzaStr != null) CambiamentoFrequenza(Number(FrequenzaStr));
document.getElementById('PrenotaNuoviSlot').checked = (localStorage.getItem(CodiceAgenda + 'PrenotaNuoviSlot') == 'true');
}
async function ElencaSlot()
{
var BottoneAvanti = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-next-button.fc-button.fc-button-primary");
var BottoneIndietro = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-prev-button.fc-button.fc-button-primary");
var BottoneOggi = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > button");
await BottoneOggi.click();
const PrenotareDefault = (localStorage.getItem(CodiceAgenda + 'PrenotaNuoviSlot') == 'true');
var NuovoElencoSlot = [];
for(var s=0; s <= 13; s++)
{
for(var g=0; g<7; g++)
{
var t=0;
while(true)
{
var ElemSlot = RestituisciElementoTurno(g, t);
if(ElemSlot == null) break;
if(ElemSlot.classList.contains('ag-slot-passed') ) { t++; continue; }
const DataSlot = GetDataAssoluta(g);
const OraSlot = ElemSlot.querySelector('div > div.fc-time > span').innerHTML;
const SlotPrecedente = GetSlot(DataSlot, OraSlot);
if(SlotPrecedente == null)
{
var suono = new Audio(SuonoNuovoSlotPubblicato);
suono.play();
}
var ElemTitolo = ElemSlot.querySelector('div > div.fc-title');
const TitoloSlot = (ElemTitolo != null ? ElemTitolo.innerHTML : '');
const prenotato = ElemSlot.classList.contains('ag-slot-mine');
var elem = { data: DataSlot,
ora: OraSlot,
titolo: TitoloSlot,
PostiLiberi: GetPostiLiberi(ElemSlot),
capienza: GetPostiTotali(ElemSlot),
prenotare: (SlotPrecedente != null ? SlotPrecedente.prenotare : PrenotareDefault),
prenotato: prenotato,
dataPrenotazione: ( (SlotPrecedente != null && prenotato) ? SlotPrecedente.dataPrenotazione : null),
dataUltimoTentativo: (SlotPrecedente != null ? SlotPrecedente.dataUltimoTentativo : null),
IndGiorno: g,
IndTurno: t,
};
NuovoElencoSlot.push(elem);
t++;
}
}
await BottoneAvanti.click();
}
ElencoSlot = NuovoElencoSlot;
localStorage.setItem(CodiceAgenda + 'ElencoSlot', JSON.stringify(ElencoSlot));
OraUltimoControllo = new Date();
// Aggiorno lista mostrata nella UI
var ElemElencoSlot = document.getElementById('ElencoSlot');
var CodiceElencoSlot = '';
for(var i=0; i<ElencoSlot.length; i++)
{
const elem = ElencoSlot[i];
const coloriPosti = ColorePosti(elem.PostiLiberi, elem.capienza);
var coloreSfondo;
if(elem.prenotato) coloreSfondo = 'lightgreen';
else if(elem.prenotare) coloreSfondo = 'yellow';
else coloreSfondo = 'unset';
var InizioGiornoConPiuSlot = false;
if(ElencoSlot[i+1] != null && ElencoSlot[i].data.getDate() != ElencoSlot[i+1].data.getDate() &&
ElencoSlot[i+2] != null && ElencoSlot[i+1].data.getDate() == ElencoSlot[i+2].data.getDate() ) InizioGiornoConPiuSlot = true;
var FineGiornoConPiuSlot = false;
if(ElencoSlot[i-1] != null && ElencoSlot[i].data.getDate() == ElencoSlot[i-1].data.getDate() &&
ElencoSlot[i+1] != null && ElencoSlot[i].data.getDate() != ElencoSlot[i+1].data.getDate() ) FineGiornoConPiuSlot = true;
CodiceElencoSlot +=
`<label id="CasellaSlot` + i + `" style="display: block; padding: 8px 0 8px 8px; margin: 0; background-color: ` + coloreSfondo + `">
<input type="checkbox" style="vertical-align: top" id="CheckboxSlot` + i + `" ` + (elem.prenotato ? 'disabled' : (elem.prenotare ? 'checked' : '') ) + ` />
<span>` + DaNumeroANomeGiornoSettimana(elem.data.getDay()) + ' ' +
elem.data.getDate() + ' ' + DaNumeroANomeMese(elem.data.getMonth(), true) + ' 🕖 ' + elem.ora.replace(' - ', ' - ') + ' ' +
'<span style="background-color: ' + coloriPosti[0] + '; color: ' + coloriPosti[1] + '; border-radius: 5px; padding: 3px;' +
(coloreSfondo != 'unset' ? 'border: 1px solid black;' : '') + '">' +
'<span style="font-weight: bold; font-size: 110%">' + elem.PostiLiberi + '</span> liber' + (elem.PostiLiberi != 1 ? 'i' : 'o') +
'<span style="font-size: 90%; opacity: 0.8"> su ' + elem.capienza + '</span>' +
'</span>' +
(elem.titolo != '' ? '<div style="color: darkviolet; font-weight: bold;">' + elem.titolo + '</div>' : '') +
(elem.prenotato ? '<div style="font-face: bold; color: green">✔️Prenotato' +
(elem.dataPrenotazione != null ? ' il ' + FormattaData(new Date(elem.dataPrenotazione)) : '') + '</div>' : '') +
`</span>
</label>` +
( (InizioGiornoConPiuSlot || FineGiornoConPiuSlot) ? '<hr style="margin: 2px 0" />' : '');
}
ElemElencoSlot.innerHTML = CodiceElencoSlot;
for(i=0; i<ElencoSlot.length; i++) document.getElementById('CheckboxSlot' + i).addEventListener('click', ClickCasellaSlot.bind(null, i));
if(ElencoSlot.length == 0) document.getElementById('ElencoSlot').innerHTML = `<div style="text-align: center; font-size: 120%; padding: 8px"><div style="font-size: 300%; font-weight: bold; color: gray; font-family: helvetica">Ø</div>Non ho trovato slot prenotabili su questa agenda!</div>`;
BottoneOggi = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > button");
await BottoneOggi.click();
}
async function EseguiPrenotazioni()
{
var ElencoPrenotazioniNecessarie = [];
for(var i=0; i < ElencoSlot.length; i++)
{
if(ElencoSlot[i].prenotare && !ElencoSlot[i].prenotato && ElencoSlot[i].PostiLiberi > 0)
{ ElencoPrenotazioniNecessarie.push(i); }
}
ElencoPrenotazioniNecessarie.sort(OrdinamentoPerTentativoPiùLontano);
RiconoscimentoClickManuali = false;
for(i=0; i < ElencoPrenotazioniNecessarie.length; i++)
{
await Prenota(ElencoPrenotazioniNecessarie[i]);
await sleep(500); //aspetto mezzo secondo tra un click e l'altro, per evitare l'errore "too many connections"
}
RiconoscimentoClickManuali = true;
}
function OrdinamentoPerTentativoPiùLontano(a, b)
{
const dataA = ElencoSlot[a].dataUltimoTentativo;
const dataB = ElencoSlot[b].dataUltimoTentativo;
if(dataA == null) return -1;
else if(dataB == null) return 1;
else return (new Date(dataA)).getTime() - (new Date(dataB)).getTime();
}
async function Prenota(indice)
{
var BottoneAvanti = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-next-button.fc-button.fc-button-primary");
var BottoneOggi = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > button");
PrenotazioniInCorso++;
const ThrobberPrenotazione = '<img alt="attendi..." style="object-fit: cover; height: 25px; width: 40px" height="40" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiBub25lOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjI4MHB4IiBoZWlnaHQ9IjI4MHB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgo8cmVjdCB4PSIxNy41IiB5PSIyOC41IiB3aWR0aD0iMTUiIGhlaWdodD0iNDMiIGZpbGw9IiNhOWE5YTkiPgogIDxhbmltYXRlIGF0dHJpYnV0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LjUgMC41IDEiIGJlZ2luPSItMC4xcyI+PC9hbmltYXRlPgo8L3JlY3Q+CjxyZWN0IHg9IjY3LjUiIHk9IjI4LjUiIHdpZHRoPSIxNSIgaGVpZ2h0PSI0MyIgZmlsbD0iIzM3ODhkOCI+CiAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ieSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMXMiIGNhbGNNb2RlPSJzcGxpbmUiIGtleVRpbWVzPSIwOzAuNTsxIiB2YWx1ZXM9IjE3LjIxMjU7MjguNTsyOC41IiBrZXlTcGxpbmVzPSIwIDAuNSAwLjUgMTswIDAuNSAwLjUgMSI+PC9hbmltYXRlPgogIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImhlaWdodCIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMXMiIGNhbGNNb2RlPSJzcGxpbmUiIGtleVRpbWVzPSIwOzAuNTsxIiB2YWx1ZXM9IjY1LjU3NTs0Mzs0MyIga2V5U3BsaW5lcz0iMCAwLjUgMC41IDE7MCAwLjUgMC41IDEiPjwvYW5pbWF0ZT4KPC9yZWN0Pgo8IS0tIFtsZGlvXSBnZW5lcmF0ZWQgYnkgaHR0cHM6Ly9sb2FkaW5nLmlvLyAtLT48L3N2Zz4=" />';
var OrarioSintetico = ElencoSlot[indice].ora.replace(' - ', '-');
OrarioSintetico = OrarioSintetico.replace(':00', ''); OrarioSintetico = OrarioSintetico.replace(':00', '');
Attività(ThrobberPrenotazione + ' 🖱️Cerco di prenotare lo slot ' + ElencoSlot[indice].data.getDate() + ' ' + DaNumeroANomeMese(ElencoSlot[indice].data.getMonth(), false) + ' ' + OrarioSintetico);
//Mi sposto alla settimana che contiene lo slot da prenotare
SpostatiAllaSettimanaGiusta(ElencoSlot[indice].data);
var elemento = RestituisciElementoTurno(ElencoSlot[indice].IndGiorno, ElencoSlot[indice].IndTurno);
if(elemento == null) {
console.error('Elemento null in settimana ' + document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-center > h2").innerHTML + ' prima del click su ' + JSON.stringify(ElencoSlot[indice]));
PrenotazioniInCorso--;
return;
}
const TimestampClick = (new Date()).getTime();
ElencoSlot[indice].dataUltimoTentativo = new Date();
localStorage.setItem(CodiceAgenda + 'ElencoSlot', JSON.stringify(ElencoSlot));
await elemento.click();
// Attendo e verifico che la prenotazione sia stata registrata sul sito Agende
while(true)
{
elemento = RestituisciElementoTurno(ElencoSlot[indice].IndGiorno, ElencoSlot[indice].IndTurno);
if(elemento == null) {
console.error('Elemento null in settimana ' + document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-center > h2").innerHTML + ' verificando il click su ' + JSON.stringify(ElencoSlot[indice]));
break;
}
if(elemento.classList.contains('ag-slot-mine')) //Prenotazione riuscita!
{
// Registro nel local storage
ElencoSlot[indice].prenotato = true;
ElencoSlot[indice].dataPrenotazione = new Date();
ElencoSlot[indice].prenotare = false;
localStorage.setItem(CodiceAgenda + 'ElencoSlot', JSON.stringify(ElencoSlot));
ElencaSlot(); //Aggiorno lista slot nella UI
CalcolaProssimoRiavvio(); //Aggiorno data del prossimo riavvio
// Avviso acustico
var suono = new Audio(SuonoPrenotazioneFatta);
suono.play();
break;
}
await sleep(500);
const MsPassati = (new Date()).getTime() - TimestampClick;
if(MsPassati > 10000)
{
if(ElencoSlot[indice].prenotare)
{ await RicaricaPagina('Prenotazione non riuscita'); break; }
else break; //Se durante l'attesa e verifica l'utente ha rimosso il suo interesse verso lo slot, non c'è bisogno di refreshare per ritentare
}
}
PrenotazioniInCorso--;
}
function CalcolaProssimoRiavvio()
{
var HoQualcosaDaFare;
if(localStorage.getItem(CodiceAgenda + 'PrenotaNuoviSlot') == 'true') HoQualcosaDaFare = true;
else
{
HoQualcosaDaFare = false;
for(var i=0; i < ElencoSlot.length; i++)
{
if(ElencoSlot[i].prenotare && !ElencoSlot[i].prenotato) { HoQualcosaDaFare = true; break; }
}
}
if(!HoQualcosaDaFare)
{
TimestampProssimoRiavvio = null;
// Aggiorno UI
document.getElementById('ON').style.display = 'none';
document.getElementById('OFF').style.display = 'block';
document.title = document.title.replace('⚡', '');
Attività('Nessun ordine inserito');
// Cancello timer
if(TimerProssimoRiavvio != null) { clearTimeout(TimerProssimoRiavvio); TimerProssimoRiavvio = null; }
if(TimerTieniAggiornataDataRiavvio != null) { clearTimeout(TimerTieniAggiornataDataRiavvio); TimerTieniAggiornataDataRiavvio = null; }
if(TimerAggiornaCountdown != null) { clearTimeout(TimerAggiornaCountdown); TimerAggiornaCountdown = null; }
}
else
{
// Aggiorno UI
if(document.getElementById('ON').style.display == 'none')
{
document.title = '⚡' + document.title;
document.getElementById('ON').style.display = 'block';
document.getElementById('OFF').style.display = 'none';
}
// Calcolo quanto manca; se già passato, eseguo riavvio
const frequenzaMs = GetFrequenzaControlliMinuti() * 60000;
TimestampProssimoRiavvio = OraUltimoControllo.getTime() + frequenzaMs;
const MsMancanti = TimestampProssimoRiavvio - (new Date()).getTime();
if(MsMancanti < 0) { RicaricaPagina('Devo eseguire un nuovo controllo'); return; }
// Aggiorno attività in corso nella UI, e imposto il suo aggiornamento periodico
AttivaCountdownRefresh();
// Imposto timer (sovrascrivendoli se già esistenti)
if(TimerProssimoRiavvio != null) clearTimeout(TimerProssimoRiavvio);
TimerProssimoRiavvio = setTimeout(RicaricaPagina.bind(null, 'Devo eseguire un nuovo controllo'), MsMancanti);
if(TimerTieniAggiornataDataRiavvio != null) clearTimeout(TimerTieniAggiornataDataRiavvio);
TimerTieniAggiornataDataRiavvio = setInterval(CalcolaProssimoRiavvio, 60000);
}
}
function AttivaCountdownRefresh()
{
const MsMancanti = TimestampProssimoRiavvio - (new Date()).getTime();
Attività('Attendo prossimo aggiornamento pagina (tra ' + FormattaLassoTempo(MsMancanti) + ')');
//Adatto l'intervallo di aggiornamento dell'attività in corso in base a quanto manca
var IntervCountdownUI;
if(MsMancanti < 315000) IntervCountdownUI = 1000; //vengono visualizzati i secondi: necessario aggiornare ogni secondo
else if(MsMancanti < 600000) IntervCountdownUI = 15000; //vengono visualizzati solo i minuti, posso aggiornare meno spesso
else IntervCountdownUI = 60000; //vengono visualizzati solo i minuti, posso aggiornare meno spesso
if(TimerAggiornaCountdown != null) clearTimeout(TimerAggiornaCountdown);
TimerAggiornaCountdown = setInterval(AggiornaCountdown, IntervCountdownUI);
}
function AggiornaCountdown()
{
if(PrenotazioniInCorso > 0) return;
const MsMancanti = TimestampProssimoRiavvio - (new Date()).getTime();
const MsMancantiFormattati = MsMancanti >= 10000 ? FormattaLassoTempo(MsMancanti) : '<b>' + FormattaLassoTempo(MsMancanti) + '</b>';
if(MsMancanti > 0) Attività('Attendo prossimo aggiornamento pagina (tra ' + MsMancantiFormattati + ')');
}
function FormattaLassoTempo(millisecondi)
{
if(millisecondi < 1000) return '0,' + Math.floor(millisecondi/100) + 's';
else if(millisecondi < 60000) return Math.floor(millisecondi/1000) + 's';
else if(millisecondi < 300000) return Math.floor(millisecondi/60000) + ' min ' + Math.floor((millisecondi % 60000)/1000) + 's';
else return Math.floor(millisecondi/60000) + ' minuti';
}
function FormattaData(data)
{
return data.getDate() + ' ' + DaNumeroANomeMese(data.getMonth(), true) + ' alle ' + data.getHours() + (data.getMinutes() < 10 ? ':0' : ':') + data.getMinutes();
}
async function ClickCasellaSlot(indice)
{
var CheckBox = document.getElementById('CheckboxSlot' + indice);
var casella = CheckBox.parentElement;
var IndicatorePosti = casella.querySelector('span > span');
ElencoSlot[indice].prenotare = CheckBox.checked;
localStorage.setItem(CodiceAgenda + 'ElencoSlot', JSON.stringify(ElencoSlot));
if(ElencoSlot[indice].prenotato == true) { casella.style.backgroundColor = 'lightgreen'; IndicatorePosti.style.border = '1px solid black'; }
else if(ElencoSlot[indice].prenotare == true) { casella.style.backgroundColor = 'yellow'; IndicatorePosti.style.border = '1px solid black'; }
else { casella.style.backgroundColor = 'unset'; IndicatorePosti.style.border = 'none'; }
CalcolaProssimoRiavvio();
await EseguiPrenotazioni();
}
function ClickPrenotaNuoviSlot()
{
localStorage.setItem(CodiceAgenda + 'PrenotaNuoviSlot', document.getElementById('PrenotaNuoviSlot').checked);
CalcolaProssimoRiavvio();
}
function CambiamentoFrequenza(ForzaLivello)
{
var Slider = document.getElementById('FrequenzaSlider');
var Label = document.getElementById('FrequenzaLabel');
var livello = (ForzaLivello != null ? ForzaLivello : Slider.value);
Slider.value = livello;
if(ForzaLivello == null) localStorage.setItem(CodiceAgenda + 'Frequenza', livello);
if(ForzaLivello == null) CalcolaProssimoRiavvio();
if(livello == -3)
{
Label.innerHTML = 'ogni ora';
Label.style.color = '#4de34d';
Slider.style.background = '#6ee86e';
} else if(livello == -2)
{
Label.innerHTML = 'ogni 20 minuti';
Label.style.color = '#3EBE00';
Slider.style.background = '#3EBE00';
} else if(livello == -1)
{
Label.innerHTML = 'ogni 8 minuti';
Label.style.color = 'green';
Slider.style.background = 'green';
} else if(livello == 0)
{
Label.innerHTML = 'ogni 3 minuti';
Label.style.color = '#005CC8';
Slider.style.background = '#005CC8';
} else if(livello == 1)
{
Label.innerHTML = 'ogni 1 minuto e 30';
Label.style.color = '#b2b200';
Slider.style.background = '#FFE118';
} else if(livello == 2)
{
Label.innerHTML = 'ogni 45 secondi';
Label.style.color = '#FF8100';
Slider.style.background = '#FF8100';
} else if(livello == 3)
{
Label.innerHTML = 'ogni 15 secondi';
Label.style.color = '#E10000';
Slider.style.background = '#E10000';
}
}
function GetFrequenzaControlliMinuti()
{
const storage = localStorage.getItem(CodiceAgenda + 'Frequenza');
if(storage == null) return 3;
else
{
if(Number(storage) == -3) return 60;
else if(Number(storage) == -2) return 20;
else if(Number(storage) == -1) return 8;
else if(Number(storage) == 0) return 3;
else if(Number(storage) == 1) return 1.5; //1 minuto e 30
else if(Number(storage) == 2) return 0.75; //45 secondi
else if(Number(storage) == 3) return 0.25; //15 secondi
}
}
async function RicaricaPagina(msg)
{
const throbber = '<img alt="🔄" width="25" height="25" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiBub25lOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMHB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgo8Zz4KICA8cGF0aCBkPSJNNTAgMjJBMjggMjggMCAxIDAgNzUuODY4NjI2OTEwMzE2MDIgMzkuMjg0ODYzODkzNzc3NDg0IiBmaWxsPSJub25lIiBzdHJva2U9IiMzNzg4ZDgiIHN0cm9rZS13aWR0aD0iMjAiPjwvcGF0aD4KICA8cGF0aCBkPSJNNDkgLTNMNDkgNDdMNzQgMjJMNDkgLTMiIGZpbGw9IiMzNzg4ZDgiPjwvcGF0aD4KICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMXMiIHZhbHVlcz0iMCA1MCA1MDszNjAgNTAgNTAiIGtleVRpbWVzPSIwOzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KPC9nPgo8IS0tIFtsZGlvXSBnZW5lcmF0ZWQgYnkgaHR0cHM6Ly9sb2FkaW5nLmlvLyAtLT48L3N2Zz4=" />';
if(msg == null) Attività(throbber + 'Ricarico la pagina');
else Attività(throbber + msg + ': ricarico la pagina');
// Ordina il refresh e cicla finché la pagina non si è ricaricata
while(true)
{
window.location.reload();
await sleep(30000);
}
}
function GetSlot(DataSlot, OraSlot)
{
for(var i=0; i<ElencoSlot.length; i++)
{
const data = new Date(ElencoSlot[i].data);
if(data.getTime() == DataSlot.getTime() && ElencoSlot[i].ora == OraSlot) return ElencoSlot[i];
}
return null; //non trovato
}
function ColorePosti(liberi, totali)
{
if(liberi < 0) return ['black', 'white']; //overbooking!
else if(liberi == 0) return ['darkred', 'white']; //pieno
else if(liberi == 1) return ['red', 'white']; //ultimo posto disponibile - ultima chance di iscriversi
else
{
// Calcolo sfumatura di colore in base alla percentuale (in scala esponenziale) dei posti liberi che esuberano rispetto alla soglia minima di 1 ("ultima chance")
const percentuale = (Math.pow(1.1, liberi-2) - 1) / (Math.pow(1.1, totali-2));
if(percentuale < 0.25) return [MediaColori('#FF8C00', '#FFFF00', percentuale*4), 'black']; //tra darkorange e yellow
else if(percentuale < 0.5) return [MediaColori('#FFFF00', '#99DE00', (percentuale-0.25)*4), 'black']; //tra yellow e verde giallo
else if(percentuale < 0.75) return [MediaColori('#99DE00', '#00C200', (percentuale-0.5)*4), 'white']; //tra verde giallo e verde medio
else return [MediaColori('#00C200', '#008250', (percentuale-0.75)*4), 'white']; //tra verde medio e verde acqua
}
}
function MediaColori(c1, c2, percentuale)
{
var RetVal = '#';
for(var i = 0; i<3; i++)
{
var sub1 = c1.substring(1+2*i, 3+2*i);
var sub2 = c2.substring(1+2*i, 3+2*i);
var v1 = parseInt(sub1, 16);
var v2 = parseInt(sub2, 16);
var v = Math.floor(v1 + (v2 - v1) * percentuale);
var sub = v.toString(16).toUpperCase();
var padsub = ('0'+sub).slice(-2);
RetVal += padsub;
}
return RetVal;
}
function GetPostiLiberi(elemento)
{
var ElemOccupati = elemento.querySelector('div > div.ag-cnt > span.ag-taken');
var Totali = GetPostiTotali(elemento);
if(Totali == 0) return 0;
else if(ElemOccupati == null || ElemOccupati.innerHTML == '') return '?';
else return Totali - Number(ElemOccupati.innerHTML);
}
function GetPostiTotali(ElemSlot)
{
if(ElemSlot.querySelector('div > div.ag-cnt > span.ag-max') != null)
{ return Number(ElemSlot.querySelector('div > div.ag-cnt > span.ag-max').innerHTML); }
else if(ElemSlot.querySelector('div > div.ag-cnt > input') != null)
{ return Number(ElemSlot.querySelector('div > div.ag-cnt > input').value); }
else return 0;
}
function SpostatiAllaSettimanaGiusta(Data)
{
var BottoneIndietro = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-prev-button.fc-button.fc-button-primary");
var BottoneAvanti = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > div > button.fc-next-button.fc-button.fc-button-primary");
var BottoneOggi = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-left > button");
const LunedìSettimanaCercata = RestituisciLunedìStessaSettimana(Data);
const StringaSettimana = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-center > h2").innerHTML;
var LunSettimanaVisualizzata = LunedìSettimanaVisualizzata();
while(!StessoGiornoMeseAnno(LunedìSettimanaCercata, LunSettimanaVisualizzata))
{
const differenza = LunedìSettimanaCercata.getTime() - LunSettimanaVisualizzata.getTime();
var nuovaData = new Date(LunSettimanaVisualizzata);
if(differenza > 0) { BottoneAvanti.click(); nuovaData.setDate(LunSettimanaVisualizzata.getDate() + 7); }
else { BottoneIndietro.click(); nuovaData.setDate(LunSettimanaVisualizzata.getDate() - 7); }
LunSettimanaVisualizzata = nuovaData;
}
}
function GetDataAssoluta(GiornoSettimana)
{
var RetVal = LunedìSettimanaVisualizzata();
RetVal.setDate(RetVal.getDate() + GiornoSettimana);
return RetVal;
}
function LunedìSettimanaVisualizzata()
{
const StringaSettimana = document.querySelector("#calendar > div.fc-toolbar.fc-header-toolbar > div.fc-center > h2").innerHTML;
const StringaDomenica = StringaSettimana.split(' – ')[1];
const giorno = Number(StringaDomenica.split(' ')[0]);
const meseStringa = StringaDomenica.split(' ')[1];
const mese = DaNomeANumeroMese(meseStringa) - 1;
const anno = Number(StringaDomenica.split(' ')[2]);
return new Date(anno, mese, giorno - 6, 0, 0, 0, 0);
}
function RestituisciLunedìStessaSettimana(data)
{
var GiorniDaSottrarre;
if(data.getDay() == 1) GiorniDaSottrarre = 0;
else if(data.getDay() == 2) GiorniDaSottrarre = 1;
else if(data.getDay() == 3) GiorniDaSottrarre = 2;
else if(data.getDay() == 4) GiorniDaSottrarre = 3;
else if(data.getDay() == 5) GiorniDaSottrarre = 4;
else if(data.getDay() == 6) GiorniDaSottrarre = 5;
else if(data.getDay() == 0) GiorniDaSottrarre = 6;
var retVal = new Date(data);
retVal.setDate(retVal.getDate() - GiorniDaSottrarre);
return retVal;
}
function StessoGiornoMeseAnno(Data1, Data2)
{
if(Data1 == null || Data2 == null) return false;
if(Data1.getDate() == Data2.getDate() && Data1.getMonth() == Data2.getMonth() && Data1.getFullYear() == Data2.getFullYear() )
{ return true; }
else
{ return false; }
}
function DaNomeANumeroMese(StringaMese)
{
if(StringaMese == 'gen') return 1;
else if(StringaMese == 'feb') return 2;
else if(StringaMese == 'mar') return 3;
else if(StringaMese == 'apr') return 4;
else if(StringaMese == 'mag') return 5;
else if(StringaMese == 'giu') return 6;
else if(StringaMese == 'lug') return 7;
else if(StringaMese == 'ago') return 8;
else if(StringaMese == 'set') return 9;
else if(StringaMese == 'ott') return 10;
else if(StringaMese == 'nov') return 11;
else if(StringaMese == 'dic') return 12;
}
function DaNumeroANomeMese(NumeroMese, VersioneLunga)
{
if(VersioneLunga == null) VersioneLunga = false;
if(NumeroMese == 0) return (VersioneLunga ? 'gennaio' : 'gen');
else if(NumeroMese == 1) return (VersioneLunga ? 'febbraio' : 'feb');
else if(NumeroMese == 2) return (VersioneLunga ? 'marzo' : 'mar');
else if(NumeroMese == 3) return (VersioneLunga ? 'aprile' : 'apr');
else if(NumeroMese == 4) return (VersioneLunga ? 'maggio' : 'mag');
else if(NumeroMese == 5) return (VersioneLunga ? 'giugno' : 'giu');
else if(NumeroMese == 6) return (VersioneLunga ? 'luglio' : 'lug');
else if(NumeroMese == 7) return (VersioneLunga ? 'agosto' : 'ago');
else if(NumeroMese == 8) return (VersioneLunga ? 'settembre' : 'set');
else if(NumeroMese == 9) return (VersioneLunga ? 'ottobre' : 'ott');
else if(NumeroMese == 10) return (VersioneLunga ? 'novembre' : 'nov');
else if(NumeroMese == 11) return (VersioneLunga ? 'dicembre' : 'dic');
}
function DaNumeroANomeGiornoSettimana(GiornoSettimana)
{
if(GiornoSettimana == 0) return 'dom';
else if(GiornoSettimana == 1) return 'lun';
else if(GiornoSettimana == 2) return 'mar';
else if(GiornoSettimana == 3) return 'mer';
else if(GiornoSettimana == 4) return 'gio';
else if(GiornoSettimana == 5) return 'ven';
else if(GiornoSettimana == 6) return 'sab';
}
function Attività(stringa)
{
var elem = document.getElementById('attività');
if(elem != null) elem.innerHTML = stringa;
}
function CiSonoCaselleNellaSettimana()
{
// Restituisce true se nella settimana visualizzata c'è almeno una casella/link (compare almeno una casella/link per prenotarsi), false se è tutta vuota
for(var i = 0; i < 7; i++)
{ if(RestituisciElementoTurno(i, 0) != null) return true; }
return false;
}
function RestituisciElementoTurno(GiornoSettimana, Turno)
{
//GiornoSettimana: 0=lunedì ... 6=domenica
//Turno: 0, 1, 2, 3...
const NumeroColonna = GiornoSettimana + 2;
//NumeroColonna: 2=lunedì ... 8=domenica
return document.querySelector('#calendar > div.fc-view-container > div > table > tbody > tr > td > div.fc-scroller.fc-time-grid-container > div > ' +
'div.fc-content-skeleton > table > tbody > tr > td:nth-child(' + NumeroColonna + ') > div > div:nth-child(2) > a:nth-child(' + (Turno+1) + ')');
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}