-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
332 lines (308 loc) · 15.6 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
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
<!DOCTYPE html>
<html>
<head>
<title>IPM</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script type="text/javascript">
var activePreview = null;
var activeButton = null;
function openPreview(linkDiv) {
if (window.innerWidth <= 600) {
openFull(linkDiv);
return;
}
if (linkDiv.getAttribute("data-source") == "")
return;
var prev = getPreviewDiv(linkDiv);
var button = getButton(linkDiv);
if (activePreview == prev) {
activePreview.style.transitionDelay = "0ms";
/*activeButton.style.transitionDelay = "0ms";*/
prev.classList.toggle("visiblePreview");
button.classList.toggle("btnFullVisible")
activePreview = null;
return;
}
if (activePreview != null) {
activePreview.style.transitionDelay = "0ms";
/*activeButton.style.transitionDelay = "0ms";*/
activePreview.classList.toggle("visiblePreview");
activeButton.classList.toggle("btnFullVisible")
prev.style.transitionDelay = "500ms";
/*button.style.transitionDelay = "500ms";*/
}
var frame = getPreviewIframe(prev);
if (frame.src == "")
frame.src = linkDiv.getAttribute("data-source");
prev.classList.toggle("visiblePreview");
button.classList.toggle("btnFullVisible")
activePreview = prev;
activeButton = button;
}
function getPreviewIframe(prev) {
for (let i=0; i<prev.children.length; i++) {
if (prev.children[i].tagName == "IFRAME") {
return prev.children[i];
}
}
}
function getButton(linkDiv) {
for(let i=0; i<linkDiv.children.length; i++) {
if (linkDiv.children[i].classList.contains("linkHead")) {
var head = linkDiv.children[i];
for (let j=0; j<head.children.length; j++) {
if (head.children[j].tagName == "BUTTON") {
return head.children[j];
}
}
}
}
}
function getPreviewDiv(linkDiv) {
for(let i=0; i<linkDiv.children.length; i++) {
if (linkDiv.children[i].classList.contains("preview")) {
return linkDiv.children[i];
}
}
}
function openFull(linkDiv) {
window.open(linkDiv.getAttribute("data-source"), "_blank")
}
</script>
</head>
<body>
<header>
<div class="top">
<h1>Interfaces Pessoa Máquina 2018-19</h1>
<h2>Grupo 31 - Turno IPM20111326L03</h2>
</div>
<div class="profiles">
<div class="portrait">
<img alt="portrait pic 189403" src="images/89403.jpg">
<div class="nametag">
<p>Alexandre Duarte</p>
<p>89403</p>
</div>
</div>
<div class="portrait">
<img alt="portrait pic 189426" src="images/89426.png">
<div class="nametag">
<p>Daniel Lopes</p>
<p>89426</p>
</div>
</div>
<div class="portrait">
<img alt="portrait pic 189504" src="images/89504.jpg">
<div class="nametag">
<p>Mariana Oliveira</p>
<p>89504</p>
</div>
</div>
</div>
</header>
<div class="content">
<div id="at" class="section">
<h2>Análise de Tarefas</h2>
<div class="linksList">
<div class="link" data-source="31A_questionario.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Questionário para análise de tarefas</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="31A_questionario.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Questionário para análise de tarefas (melhorado)</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="31A_relatorio.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Análise de tarefas + Funcionalidades</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="31A_relatorio(melhorado).pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Análise de tarefas + Funcionalidades (melhorados)</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
</div>
</div>
<div id="mc" class="section">
<h2>Modelo Conceptual</h2>
<div class="linksList">
<div class="link" data-source="prot_3ecras.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Design de 3 ecrãs</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="storyboard.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Storyboard</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
</div>
</div>
<div id="proto" class="section">
<h2>Protótipos</h2>
<div class="linksList">
<div class="link" data-source="pbf.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">PBF</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<!-- <div class="link" data-source="pbf.pdf">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">PBF (melhorado)</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div> -->
<div class="link" data-source="prot/prot1/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Primeiro protótipo funcional</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot2/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Primeiro protótipo funcional completo</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot3/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Segundo protótipo funcional</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot4/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Segundo protótipo funcional completo</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot5/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Protótipo Final</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot6/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Protótipo Final completo</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="prot/prot7/index.html">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Protótipo Final completo melhorado</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
</div>
</div>
<div id="au" class="section">
<h2>Avaliação com Utilizadores</h2>
<div class="linksList">
<div class="link" data-source="">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Tarefas e Critérios de usabilidade</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Tarefas e Critérios de usabilidade (melhorado)</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Relatório da avaliação com utilizadores</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Relatório da avaliação com utilizadores (melhorado)</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
<div class="link" data-source="">
<div class="linkHead">
<h3 onclick="openPreview(this.parentElement.parentElement)">Manual do Utilizador</h3>
<button class="btnFull" onclick="openFull(this.parentElement.parentElement)">Open</button>
</div>
<div class="preview">
<iframe></iframe>
</div>
</div>
</div>
</div>
</div>
</body>
</html>