-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
508 lines (394 loc) · 19.2 KB
/
Copy pathindex.html
File metadata and controls
508 lines (394 loc) · 19.2 KB
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
<!DOCTYPE HTML>
<html lang="en" _data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/scroller.svg" type="image/svg+xml" sizes="any">
<!-- Primary Meta Tags -->
<title>Scroller - Sight Translation Training | University of Bologna</title>
<meta name="title" content="Scroller - Web Tool for Simultaneous Interpreting Training | University of Bologna">
<meta name="description" content="Train and evaluate sight translation skills objectively. Adjust text scrolling speed in WPM (Words Per Minute), customize readability, and track performance. Developed by the University of Bologna for interpreters and trainers.">
<!-- SEO stuff here -->
<!-- Endo of SEO stuff -->
<!-- JQuery v3.7 -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<!-- Bootstrap v5.3 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<!-- Bootstrap icons 1.11.3 -->
<!-- link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" -->
<!-- FontAwesome -->
<script src="https://use.fontawesome.com/7fcfdd6cf1.js"></script>
<!-- JSCookies-->
<script src="js/js.cookie.js"></script>
<!-- Toastr -->
<script src="js/toastr.min.js"></script>
<link rel="stylesheet" href="css/toastr.min.css">
<!-- icone bandiere -->
<link rel="stylesheet" href="css/flag-icons.css?0">
<!-- TinyMCE v7 -->
<script src="https://cdn.jsdelivr.net/npm/tinymce@7.7.1/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery@2/dist/tinymce-jquery.min.js" referrerpolicy="origin"></script>
<!-- i18next (localizzazione) -->
<script src="https://cdn.jsdelivr.net/npm/i18next@21.6.10/i18next.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-i18next@1.2.1/jquery-i18next.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/i18next-browser-languagedetector@6.1.3/i18nextBrowserLanguageDetector.min.js"></script>
<script src="js/i18n.js?5"></script>
<!-- JQuery event-hold -->
<script src="js/jquery-event-holdrepeat.min.js"></script>
<style type="text/css">
.unselectable {
user-select: none;
}
.form-range-thumb-bg {
background: yellow;
}
.ui-slider {
width: 120px;
}
.estimated-time-display {
color: white;
}
.elapsed-time-display, .remaining-time-display {
color: #FAFA33;
}
.speed-changer {
margin-bottom: 4px;
margin-top: 1px;
margin-left: 0;
margin-right: 0;
padding: 0;
}
.bg-scroller-header {
background: #0E6CF6;
/*background: #09459c;*/
}
.btn-scroller-header {
_background: #232F3E;
_border-color: #434F5E;
_color: #838F9E;
color: #8cb3ed;
background: #0E6CF6;
}
.btn-scroller-header:hover {
background_: #434F5E;
_border-color: #434F5E;
color: #EDEDED;
background: #0E6CF6;
}
.btn-clear {
_color: #0EC5E9;
color: black;
background: #F8F9FA;
border-color: #0EC5E9;
}
.btn-clear:hover {
_color: black;
color: #0D6EFD;
background: white;
border-color: #0EC5E9;
}
.btn-fixed-width {
width: 3em;
height: 20pt !important;
padding-top: 2px;
}
.small-label {
font-size: 0.8rem;
}
#editor-container {
height: 100%;
display: flex;
align-items: stretch;
flex-direction: column;
}
#editor-textarea {
flex: 1;
min-height: 0;
}
#player-body {
/* background: #337ab7; */
}
/*
* Ricalcolo automaticamente l'altezza del player (il container più esterno).
* Sottraggo dall'altezza della viewport quella dei margini
*/
#player-container, #editor-container {
--containers-margin: 4px;
/*
height: calc(100vh - 2*var(--containers-margin));
margin-bottom: var(--containers-margin);
margin-top: var(--containers-margin);
*/
height: calc(100vh);
padding-bottom: var(--containers-margin);
padding-top: var(--containers-margin);
background: #e1e9f5;
}
#sliding-context {
position:relative;
z-index: 1 ;
width: 100%;
overflow: hidden ;
}
#sliding-text{
position: absolute ;
z-index: 1 ;
overflow: hidden ;
width: 100%;
font-size: 18px;
}
#player-footer {
display: flex;
align-items: center;
}
.inline-block {
display:inline-block;
}
.toast-middle {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* bring your own prefixes */
}
</style>
<!-- Load scroller code -->
<script src="js/dipintra-scroller.js?1"></script>
</head>
<body>
<!-- begin: editor -->
<div id ="editor-container" class="container-fluid">
<div class="row unselectable">
<div class="col-10 ">
<h3 data-i18n="editor.title">Traduzione a vista</h3>
</div>
<div class="col-2 text-end">
<!-- Selettore di lingua -->
<div class="dropdown" data-i18n="[title]editor.selectlanguage" id="languageDropdown">
<button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" id="languageDropdownButton" data-bs-toggle="dropdown" aria-expanded="false">🌐<!-- Icona globo --></button>
<ul class="dropdown-menu" aria-labelledby="languageDropdownButton">
<li>
<button class="dropdown-item" data-lang="it">
<i class="flag-icon flag-icon-it"></i>
Italiano
</button>
</li>
<li>
<button data-lang="en" class="dropdown-item">
<i class="flag-icon flag-icon-gb"></i>
English
</button>
</li>
<li>
<button data-lang="es" class="dropdown-item">
<i class="flag-icon flag-icon-es"></i>
Español
</button>
</li>
<li>
<button data-lang="fr" class="dropdown-item">
<i class="flag-icon flag-icon-fr"></i>
Français
</button>
</li>
<li>
<button data-lang="de" class="dropdown-item disabled" disabled>
<i class="flag-icon flag-icon-de"></i>
Deutsch
</button>
</li>
<li>
<button data-lang="ru" class="dropdown-item disabled" disabled>
<i class="flag-icon flag-icon-ru"></i>
Русский
</button>
</li>
</ul>
</div>
</div>
</div>
<textarea id="editor-textarea" name="editor-textarea">
</textarea>
<div class="row mt-2 mb-2 unselectable">
<div class="col-sm-10 ">
<div class="input-group" style="width: 25rem">
<span class="input-group-text" data-i18n="editor.scrollrate">Velocità di scorrimento</span>
<select id="text-speed-combo" name="text-speed-combo" class="form-select">
<option value="80" data-i18n='editor.wpm0'>80 parole/minuto</option>
<option value="100" data-i18n='editor.wpm1'>100 parole/minuto</option>
<option value="120" data-i18n='editor.wpm2' selected="selected">120 parole/minuto</option>
<option value="140" data-i18n='editor.wpm3'>140 parole/minuto</option>
<option value="160" data-i18n='editor.wpm4'>160 parole/minuto</option>
<option value="180" data-i18n='editor.wpm5'>180 parole/minuto</option>
<option value="200" data-i18n='editor.wpm6'>200 parole/minuto</option>
<option value="220" data-i18n='editor.wpm7'>220 parole/minuto</option>
<option value="230" data-i18n='editor.wpm8'>230 parole/minuto</option>
<option value="240" data-i18n='editor.wpm9'>240 parole/minuto</option>
</select>
</div>
</div>
<div class="col-2 text-end">
<div id="start-player" class="btn btn-primary"><i class="fa fa-laptop float-right"></i> <span data-i18n='editor.runscroller'>Visualizza</span></div>
</div>
</div>
</div>
<!-- end: editor -->
<!-- begin: player -->
<div id="player-container" class="container-fluid" style="min-width: 460px!important">
<div id="player-title-row" class="unselectable d-flex justify-content-between align-items-center mb-1" >
<div>
<h3 data-i18n="player.title">Traduzione a vista</h3>
</div>
<div class="d-flex align-items-center">
<div class="small-label" for="back-to-editor" data-i18n="player.back">Chiudi e torna all'editor</div><div> </div>
<div id="back-to-editor" class="btn btn-danger" data-i18n="[title]descr.xxx" data-i18n="[title]descr.back" title="Torna all'editor di testo e carica un altro contenuto">
<i class="fa fa-times" ></i>
</div>
</div>
</div>
<!-- begin: scroller -->
<div class="card text-white bg-scroller-header ">
<div class="card-header unselectable d-flex justify-content-between align-items-center ps-1 pe-1 pt-0 pb-0">
<!-- Player -->
<div class="text-center me-1 ms-0 p-0" >
<span class="small-label" data-i18n="player.player">Player</span>
<div class="m-0 p-0">
<div id="start-pause" class="btn btn-clear btn-fixed-width btn-sm"
data-i18n="[title]descr.play" title="Riproduci/pausa">
<i class="fa fa-play"></i>
</div>
<div id="stop" class="btn btn-clear btn-fixed-width btn-sm"
data-i18n="[title]descr.stop" title="Interrompi la riproduzione">
<i class="fa fa-stop"></i>
</div>
<div id="rewind-button" class="btn btn-clear btn-sm btn-fixed-width"
data-i18n="[title]descr.rewind" title="Torna indietro di 5 secondi">
<i class="fa fa-undo"></i>
</div>
</div>
</div>
<!-- scroll speed -->
<div class="text-center ms-1 me-1 mt-1 p-0">
<span class="small-label" data-i18n="player.scrollrate">Velocità di scorrimento</span>
<div class="d-flex justify-content-between align-items-center m-0 p-0">
<div id="dec-text-speed" class="btn btn-scroller-header btn-sm btn-fixed-width speed-changer" data-i18n="[title]descr.decspeed" title="Diminuisci la velocità di scorrimento">
<i class="fa fa-minus"></i>
</div>
<div class="inline-block mt-0 mb-0 me-1 ms-1 d-none d-md-block" style="padding-top:3px">
<input type="range" class="form-range" id="speed-slider" data-i18n="[title]descr.setspeed">
</div>
<div id="inc-text-speed" class="btn btn-scroller-header btn-sm btn-fixed-width speed-changer" data-i18n="[title]descr.incspeed" title="Aumenta la velocità di scorrimento">
<i class="fa fa-plus"></i>
</div>
</div>
</div>
<!-- grow -->
<div class="flex-grow-1 m-0 p-0"></div>
<!-- line height -->
<div class="text-center ms-0 me-0 p-0">
<span class="small-label" data-i18n="player.lineheight">Interlinea</span>
<div div class="ms-0 me-0 p-0">
<div id="dec-line-height" class="btn btn-clear btn-sm btn-fixed-width " data-i18n="[title]descr.decline" title="diminuisci l'interlinea">
<i class="fa fa-minus"></i>
</div>
<div id="inc-line-height" class="btn btn-clear btn-sm btn-fixed-width " data-i18n="[title]descr.incline" title="aumenta l'interlinea">
<i class="fa fa-plus"></i>
</div>
</div>
</div>
<!-- font size -->
<div class="text-center ms-2 me-0 p-0">
<span class="small-label" data-i18n="player.fontsize">Dim. testo</span>
<div div class="ms-0 me-0 p-0">
<div id="dec-font-size" class="btn btn-clear btn-sm btn-fixed-width font-sizer " data-i18n="[title]descr.decfont" title="Diminuisci la dimensione dei caratteri">
<i class="fa fa-font"></i><i class="fa-lg"></i>
</div>
<div id="inc-font-size" class="btn btn-clear btn-sm btn-fixed-width font-sizer " data-i18n="[title]descr.incfont" title="Aumenta la dimensione dei caratteri">
<i class="fa fa-font fa-lg"></i><i class="fa-lg"></i>
</div>
</div>
</div>
</div>
<div id="player-body" class="mb-0 mt-0 pb-1 pt-1 ps-2 pe-2 card-body text-body bg-white" >
<div id="sliding-context" class="position-relative">
<!-- indicatore di pausa al centro del blocco di scorrimento -->
<div id="paused-spinner-container" class="w-100 h-100 d-flex flex-column align-items-center bg-white justify-content-center position-absolute bg-transparent text-primary" style="z-index: 100">
<div id="paused-spinner" class="spinner-border" role="status" style="width: 4rem; height: 4rem;">
<span class="visually-hidden">...</span>
<!-- anything here will rotate-->
</div>
<div id="paused-text" class="fs-3 p-0 m-0" style="background-color: rgba(255,255,255,0.75)!important;" data-i18n="player.paused">Paused</div>
</div>
<!-- fine indicatore -->
<div id="sliding-text" class="unselectable"></div>
</div>
</div>
<div id="player-footer" class="card-footer d-flex justify-content-between align-items-center pb-0 pt-0 mb-0 mt-0 ps-2 pe-2">
<div class="d-flex align-items-center me-auto mt-1 unselectable">
<div class="estimated-time-display m-0 p-0 text-center">
<div class="small-label m-0 p-0" data-i18n="player.wpm">parole/min</div>
<div id="current-rate" class="m-0 p-0 fw-bold">0</div>
</div>
<!-- d-none d-md-block: visibile solo su schermi medio-grandi -->
<div class="ms-2 me-2 d-none d-md-block"></div>
<!-- d-none d-md-block: visibile solo su schermi medio-grandi -->
<div class="estimated-time-display m-0 ps-2 text-center border-start border-warning-subtle d-none d-md-block">
<div class="small-label m-0 p-0" data-i18n="player.pps">pixel/s</div>
<div id="true-speed" class="m-0 p-0">0</div>
</div>
<!-- d-none d-md-block: visibile solo su schermi medio-grandi -->
<div class="ms-2 me-2 d-none d-md-block"></div>
<!-- d-none d-md-block: visibile solo su schermi medio-grandi -->
<div class="estimated-time-display m-0 ps-2 text-center border-start border-warning-subtle d-none d-md-block">
<div class="small-label m-0 p-0" data-i18n="player.words">parole</div>
<div id="words-in-text" class="m-0 p-0">0</div>
</div>
<div class="ms-2 me-2"></div>
<div class="estimated-time-display m-0 ps-2 text-center border-start border-warning-subtle">
<div class="small-label m-0 p-0" data-i18n="player.totaltime">durata</div>
<div id="estimated-time" class="m-0 p-0">00:00:00</div>
</div>
<div class="ms-2 me-2"></div>
<div class="elapsed-time-display m-0 ps-2 text-center border-start border-warning-subtle">
<div class="small-label m-0 p-0" data-i18n="player.elapsedtime">t. trascorso</div>
<div id="elapsed-time" class="m-0 p-0 fw-bold">00:00</div>
</div>
<div class="ms-2 me-2"></div>
<div class="remaining-time-display m-0 ps-2 text-center border-start border-warning-subtle">
<div class="small-label m-0 p-0" data-i18n="player.remainingtime">t. mancante</div>
<div id="remaining-time" class="m-0 p-0 fw-bold">00:00</div>
</div>
</div>
<!-- div class="d-flex align-items-center">
<div class="m-0 mt-1 p-0">
<span class="small-label">Riadatta alla pagina</span> <div id="resizeScreenButton" class="btn btn-info"><i class="fa fa-window-restore"></i></div>
</div>
</div -->
</div>
</div>
<!-- end: scroller -->
</div>
<!-- end: player -->
<div class="modal" tabindex="-1" id="about-box">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<img src="images/scroller.svg" style="width: 2rem">
<h5 class="modal-title">Scroller v3.0</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Scroller is a web-based tool for both teachers and students in interpreter training. It is designed for the practice and objective human evaluation of sight translation performance. It simulates real-time speech flow by scrolling text at customizable speeds (measured in Words Per Minute - WPM), offering objective performance tracking and adaptive display settings.</p>
<p>Developed for the <a href="https://dit.unibo.it/" target="_blank">Department of Interpretation and Translation</a> (DIT) at the University of Bologna by Gabriele Carioli.</p>
<p style="text-align:center; font-size: 0.8rem">
<img style="height:1.2rem; margin-bottom:4px" align=center src="images/github.svg">
Get it on GitHub:<br/>
<a href="https://github.com/bilo1967/sight-translation/" target="_blank">github.com/bilo1967/sight-translation</a>
</p>
</div>
</div>
</div>
</div>
</body>
</html>