-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
108 lines (104 loc) · 6.64 KB
/
index.html
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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="utf-8">
<title>Convertitore orario PoliMi</title>
<meta property="og:type" content="website">
<meta property="og:title" content="Convertitore orario Polimi">
<meta property="og:description"
content="Importa l'orario del Polimi sul tuo calendario preferito">
<meta property="og:url" content="https://bebora.github.io/polimi-schedule-js">
<meta property="og:image" content="https://bebora.github.io/polimi-schedule-js/images/opengraphlogo.png">
<meta name="twitter:card" content="summary">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='shortcut icon' type='image/x-icon' href='images/favicon.ico'/>
<link href='https://fonts.googleapis.com/css?family=Roboto:500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style/style.css" />
</head>
<body>
<div class="content">
<div style="display: table; width: 100%; padding: 20px 0;">
<div class="title-container">
<h1 id="title">Convertitore orario PoliMi</h1>
</div>
<span id="flags" style="float: right; display: table;">
<a class="middleImage faqLinkText" href="home.html#howToUseHead"><span id="howToLink">Istruzioni</span> <i class="far fa-question-circle"></i></a>
<img id="itFlag" class="middleImage" src="images/italy-flag-icon-64.png" alt="Italian Flag" title="Imposta italiano">
<img id="enFlag" class="middleImage" src="images/united-kingdom-flag-icon-64.png" alt="UK Flag" title="Set language to English">
</span>
</div>
<textarea id="input" placeholder="Incolla le lezioni copiate dall'orario testuale"></textarea>
<label id="inputLabel" for="input" class="hideLabel">Incolla le lezioni copiate dall'orario testuale</label>
<button id="download" class="btn"><i class="fa fa-download" aria-hidden="true"></i><span id="saveFile"> Salva su file</span></button>
<button id="import-gcal" class="btn btn-blue"><i class="fab fa-google"></i><span id="importToGcal"> Importa su Google Calendar</span></button>
<p id="error">Errore! Non riesco a generare il calendario</p>
<div>
<span id="manualErrorPopup">Qualcosa non va?</span>
</div>
</div>
<div class="footer">
<a href="https://github.com/bebora/polimi-schedule-js">Github repo <i class="fab fa-github"></i></a>
<a href="home.html" style="margin-left: 10px;"><span id="homepageFooter">Home + Istruzioni d'uso</span> <i class="fas fa-home"></i></a>
<a href="privacy_policy.html" style="margin-left: 10px;">Privacy policy</a>
</div>
<div id="google-pop" class="pop-bg" style="display: none;">
<div id="google-pop-window" class="pop-window">
<span id="google-close-button" class="pop-close"><i class="fas fa-times"></i> </span>
<div class="pop-content">
<div id="logged_out_section">
<button id="authorize_button" class="btn btn-ggl">
<span class="google-icon" style="display: table-cell;"></span>
<span style="display: table-cell; width: 16px;"></span>
<span style="display: table-cell;">Sign in with Google</span>
</button>
</div>
<div id="logged_in_section">
<div id="select-cal">
<p id="selectCalText">Seleziona il calendario dove importare gli eventi</p>
<select id="calendarId" style="font-size: 20px; max-width: 100%;"></select>
<label id="calendarIdLabel" for="calendarId" class="hideLabel">Selezione calendario esistente</label>
</div>
<p id="orSelect">oppure</p>
<div>
<input type="checkbox" id="newCalendar" name="newCalendar" value="newCalendar">
<label id="newCalendarLabel" for="newCalendar"> Crea nuovo calendario</label>
</div>
<div id="inputElem" style="display: none; padding: 12px 0;">
<label id="newNameLabel" for="newName">Nome:</label>
<input type="text" id="newName" name="newName" style="font-size: 20px; max-width: 100%;" value="PoliMi">
</div>
<div id="creationProgress" style="display: none;">Creando il calendario...</div>
<div id="creationOk" style="display: none;">Calendario creato</div>
<div id="creationFail" style="display: none;">Creazione calendario fallita</div>
<div id="importProgress" style="display: none;"><span id="importProgressPre">Importando</span> <span id="eventsCount"></span> <span id="importProgressPost">eventi...</span></div>
<div id="importOk" style="display: none;">Eventi importati</div>
<div id="importFail" style="display: none;">Impossibile importare gli eventi</div>
<div id="zeroEvents" style="display: none;">Nessun evento da importare</div>
<button id="import_button" class="btn btn-blue"><i class="fas fa-cloud-upload-alt"></i> <span id="importButtonText">Importa</span></button>
<button id="signout_button" class="btn btn-red"><i class="fas fa-sign-out-alt"></i> Logout</button>
</div>
</div>
</div>
</div>
<div id="error-pop" class="pop-bg" style="display: none;">
<div id="error-pop-window" class="pop-window">
<span id="error-close-button" class="pop-close"><i class="fas fa-times"></i> </span>
<div class="pop-content">
<h2 id="errorTitle">Ops! Qualcosa è andato storto</h2>
<div id="genericError">Il testo che hai incollato non è valido oppure è in un nuovo formato non supportato.</div>
<div id="googleErrorSuggestion">Se stai usando Google Calendar, controlla di avere una connessione funzionante e di aver dato i permessi all'applicazione.</div>
<div id="errorContact">Il problema potrebbe capitare anche ad altri utenti! Puoi segnalarlo su Telegram o GitHub.</div>
<div style="margin-top: 20px">
<a id="telegram-link" class="btn btn-tg" target="_blank"><i class="fab fa-telegram"></i> <span id="telegramGroup">Gruppo Telegram</span></a>
<a id="github-link" class="btn btn-gh" href="https://github.com/bebora/polimi-schedule-js/issues/new" target="_blank"><i class="fab fa-github"></i> <span id="githubIssue">Apri Issue</span></a>
</div>
</div>
</div>
</div>
<script defer src="scripts/dist/web-core-bundle.js"></script>
<script defer src="https://apis.google.com/js/api.js" onload="bundle.gapiLoaded()"></script>
<script defer src="https://accounts.google.com/gsi/client" onload="bundle.gisLoaded()"></script>
</body>
</html>