-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
454 lines (432 loc) · 18.3 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
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
<!DOCTYPE HTML>
<html class="no-js">
<head>
<!-- <meta charset="utf-8"> -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<title>EVT Viewer</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="styles/vendor.43a5e9b6.css">
<link rel="stylesheet" href="styles/main.acbe2d2e.css">
<!-- TODO: temp -->
<!--<link rel="stylesheet" type="text/css" href="css/main.css"></link>-->
<!-- <link rel="stylesheet" type="text/css" href="css/page_data-include.css"></link> -->
<!-- <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.9.0.custom.css"></link> -->
<!-- <link rel="stylesheet" type="text/css" href="css/ImageTextLink.css"></link> -->
<!-- <link rel="stylesheet" type="text/css" href="css/jquery.jqzoom.css"></link> -->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome.min.css">
<!-- endbuild -->
</head>
<body ng-app="evtviewer"
ng-controller="InterfaceCtrl"
ng-keydown="handleKeydownEvent($event)"
ng-click="handleGenericClick($event)">
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<header>
<img class="logo" ng-if="getProperty('logoUrl') !== ''" ng-src="{{getProperty('logoUrl')}}" />
{{ getProperty('indexTitle') }}
<a class="webSiteLink"
ng-if="getProperty('webSite') !== ''"
href="{{getWebSite()}}" target="_blank">
<i class="fa fa-external-link"></i>
</a>
<div class="globalMenu">
<button-switch
title="TOC.HEADER"
data-icon="list-alt"
data-type="openToc">
</button-switch>
<div class="viewModeMenu">
<button-switch
title="VIEW_MODES.{{::mode.label}}"
class="mode-view"
data-label=""
data-icon="{{::mode.icon}}"
data-value="{{::mode.viewMode}}"
data-type="changeViewMode"
ng-repeat="mode in getAvailableViewModes() track by $index"
ng-if="mode.visible">
</button-switch>
</div>
<!-- <button-switch
title="Witnesses"
data-icon="witnesses"
data-type="openGlobalDialogWitnesses">
</button-switch>
<button-switch
title="BUTTONS.LIST"
ng-if="getProperty('namedEntitiesLists')"
data-icon="list"
data-type="openGlobalDialogLists">
</button-switch>
<button-switch
class="smaller"
title="BUTTONS.INFO"
data-icon="info"
data-type="openGlobalDialogInfo">
</button-switch>
<button-switch
title="BUTTONS.BOOKMARK"
data-icon="bookmark"
data-type="bookmark">
</button-switch>
<button-switch
ng-if="getProperty('enableXMLdownload')"
title="BUTTONS.DOWNLOAD_XML"
data-icon="download"
data-type="download-xml">
</button-switch> -->
<button-switch
title="Search"
data-icon="search"
data-type="searchAdvanced">
</button-switch>
<button-switch
title="BUTTONS.MENU"
data-icon="menu"
data-type="mainMenu">
</button-switch>
<div class="mainMenu" ng-if="getState('mainMenu') === true">
<ul>
<li>
<span ng-click="openGlobalDialogInfo()">
<i class="icon icon-evt_info-alt"></i>
{{'MAIN_MENU.PROJECT_INFO' | translate}}</span>
</li>
<li ng-if="getProperty('namedEntitiesLists')">
<span ng-click="openGlobalDialogLists()">
<i class="icon icon-evt_list"></i>
{{'MAIN_MENU.OPEN_LISTS' | translate}}</span>
</li>
<li>
<span ng-click="generateBookmark()">
<i class="icon icon-evt_bookmark"></i>
{{'MAIN_MENU.GENERATE_BOOKMARK' | translate}}</span>
</li>
<li ng-if="getProperty('enableXMLdownload')">
<span ng-click="downloadXML()">
<i class="icon fa fa-download"></i>
{{'MAIN_MENU.DOWNLOAD_XML' | translate}}</span>
</li>
</ul>
<hr/>
<ul>
<li>
<span>
<i class="icon fa fa-language"></i>
{{'MAIN_MENU.LANGUAGES' | translate}}
<img ng-repeat="langKey in getAvailableLanguages()"
ng-if="langKey && langKey !== ''"
ng-src="images/{{langKey}}.png"
ng-class="{ 'active': langKey === getCurrentLanguage() }"
class="flag"
ng-click="setLanguage(langKey)"
title="{{ 'LANGUAGES.'+langKey | uppercase | translate }}" alt="{{ ::langKey | uppercase}}">
</span>
</li>
<li class="inactive">
<span>
<i class="icon fa fa-keyboard-o"></i>
{{ 'MAIN_MENU.KEYBOARD_SHORT_CUTS' | translate }}</span>
</li>
<li>
<span><!-- TODO: ng-click="aboutEVT()" -->
<a href="http://evt.labcd.unipi.it/" target="_blank" title="{{ 'MAIN_MENU.GO_TO_EVT_WEB_PAGE' | translate }}">
<i class="icon fa fa-copyright"></i>
{{ 'MAIN_MENU.ABOUT_EVT' | translate }}
</a>
</span>
</li>
</ul>
</div>
<!-- <button-switch
class="noPadding"
title="Menu"
data-icon="menu-vert"
data-type="openMenu">
</button-switch> -->
</div>
</header>
<div id="global-container-ext" ng-show="!isLoading()" ng-class="{'navbar-opened': isNavBarOpened()}">
<section
class="secondary-container"
ng-show="getSecondaryContentOpened() !== ''">
<evt-dialog data-type="toc" data-title="TOC.HEADER">
<evt-tabs-container ng-if="getSecondaryContentOpened() === 'toc'"
data-type="toc"
data-orientation="vertical">
</evt-tabs-container>
</evt-dialog>
<evt-dialog data-type="entitiesList" data-title="DIALOGS.NAMED_ENTITIES"
ng-if="getProperty('namedEntitiesLists')">
<evt-tabs-container ng-if="getSecondaryContentOpened() === 'entitiesList'"
data-type="entitiesList"
data-orientation="vertical">
</evt-tabs-container>
</evt-dialog>
<evt-dialog data-type="globalInfo" data-title="DIALOGS.PROJECT_INFO">
<evt-tabs-container ng-if="getSecondaryContentOpened() === 'globalInfo'"
data-type="projectInfo"
data-orientation="vertical">
</evt-tabs-container>
</evt-dialog>
<evt-dialog data-type="witnessesList" data-title="DIALOGS.WITNESSES">
<div compile="getWitnessesListFormatted()"></div>
</evt-dialog>
<evt-dialog data-type="bookmark" data-title="DIALOGS.BOOKMARK">
<div compile="getBookmark()"></div>
</evt-dialog>
</section>
<section id="global-container" ng-switch="getCurrentViewMode()" ng-if="!isLoading()">
<!-- <div id="left-nav"><span><i class="fa fa-chevron-circle-left"></i></span></div> -->
<!-- 3DHOP -->
<section id="main-container" class="viewMode" ng-switch-when="tdhop">
<box data-type="tdhop"
id="mainTdhop">
<!--div tdhop data-canvas="draw-canvas" style="height: 100%"></div-->
</box>
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText">
</box>
<!--
<box data-type="generic" id="generic">
<div>Eventuale testo affiancato</div>
</box>-->
</section>
<!-- READING TEXT -->
<section id="main-container" class="viewMode" ng-switch-when="readingTxt">
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText"
ng-class="{'centered': !isPinnedAppBoardOpened(),
'half-centered': isPinnedAppBoardOpened(),
'half-left': isApparatusBoxOpen(),
'smaller-left': isApparatusBoxOpen() && isPinnedAppBoardOpened() }"></box>
<button-switch
title="BUTTONS.SHOW_PINNED_ENTRIES"
data-label=""
data-icon="pin"
data-type="togglePinned"
ng-if="::isToolAvailable('toolPinAppEntries')"
class="togglePinned_btn"
ng-class="{'centered': !isPinnedAppBoardOpened() && !isApparatusBoxOpen(),
'half-centered': isPinnedAppBoardOpened() && !isApparatusBoxOpen(),
'left': isPinnedAppBoardOpened() && isApparatusBoxOpen(),
'half-left': !isPinnedAppBoardOpened() && isApparatusBoxOpen()}">
</button-switch>
<box data-type="pinnedBoard"
ng-if="!isLoading() && isPinnedAppBoardOpened()"
ng-class="{ 'pin-centered': isPinnedAppBoardOpened() && isApparatusBoxOpen()}">
<span ng-if="evtPinnedElements.getPinned().length <= 0" class="italic">
{{ 'MESSAGES.PINNED_ELEMENTS_SHOWN_HERE' | translate }}
</span>
<div ng-if="evtPinnedElements.getVisibleTypes().length <= 0 && evtPinnedElements.getPinned().length > 0 && entry !== ''"
ng-repeat="entry in evtPinnedElements.getPinned()">
<evt-critical-apparatus-entry
ng-if="::evtPinnedElements.getPinnedElementType(entry) === 'criticalApparatusEntry'"
class="in_critical_apparatus active"
ng-click="updateCurrentAppEntry(entry);"
data-type="pinned"
data-app-id="{{::entry}}"></evt-critical-apparatus-entry>
<evt-named-entity
ng-if="::evtPinnedElements.getPinnedElementType(entry).indexOf('namedEntity') >= 0"
data-location="pinned"
data-entity-id="{{::entry}}"></evt-named-entity>
</div>
<div ng-if="evtPinnedElements.getVisibleTypes().length > 0"
ng-repeat="type in evtPinnedElements.getVisibleTypes()">
<span class="pinnedTypeTitle">{{ ::type | camelToSpaces | underscoresToSpaces | capitalize }}</span><!-- TODO: Add translation -->
<div ng-repeat="entry in evtPinnedElements.getPinnedByType(type)">
<evt-critical-apparatus-entry
ng-if="::type === 'criticalApparatusEntry'"
class="in_critical_apparatus"
ng-class="{'active': getCurrentAppEntry() === entry}"
ng-click="updateCurrentAppEntry(entry);"
data-type="pinned"
data-app-id="{{::entry}}"></evt-critical-apparatus-entry>
<evt-named-entity
ng-if="::type.indexOf('namedEntity') >= 0"
data-location="pinned"
data-entity-id="{{::entry}}"></evt-named-entity>
</div>
</div>
</box>
<box
ng-if="isApparatusBoxOpen()"
data-type="empty" id="empty"
ng-class="{ 'smaller' : isPinnedAppBoardOpened() && isApparatusBoxOpen() }">
<evt-apparatuses data-current-apparatus="{{vm.getCurrentApparatus()}}"></evt-apparatuses>
</box>
</section>
<!-- VERSIONS -->
<section id="main-container" class="viewMode" ng-switch-when="versions">
<box data-type="text"
id="mainText"
ng-if="existCriticalText() && (getCurrentEdition() === 'critical')"
data-edition="{{getCurrentEdition()}}"></box>
<div class="compareVer_box" id="compareVer_box"
ng-class="{'span9of18': (existCriticalText() && getCurrentVersions().length <= 1),
'span18of18': !existCriticalText()}">
<box data-type="version"
data-version="{{version}}"
ng-repeat="version in getCurrentVersions()"></box>
</div>
<button-switch
ng-if="getAllVersionsNumber() > 2"
title="BUTTONS.ADD_VERSION"
data-label="Add Version"
data-icon="add"
data-type="addVer"
class="compareVer_box--buttonAddVer inverted-color verSelector"
ng-class="{'left75': (!existCriticalText() && getCurrentVersions().length == 1) || (existCriticalText() && getCurrentVersions().length == 0),
'floatRight': (!existCriticalText() && getCurrentVersions().length > 1) || (existCriticalText() && getCurrentVersions().length > 0)}">
</button-switch>
<div
ng-if="isVersionSelectorActive()"
class="availableVersions-selector versionSelector"
ng-class="{'left75': (!existCriticalText() && getCurrentVersions().length == 1) || (existCriticalText() && getCurrentVersions().length == 0)}">
<span
ng-click="addVersion(version)"
ng-repeat="version in getAvailableVersions()"
compile="getVersion(version)"></span>
</div>
</section>
<!-- COLLAZIONE -->
<section id="main-container" class="viewMode" ng-switch-when="collation">
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText"
ng-if="existCriticalText()"></box>
<!-- <div
compile="printCriticalApparatus()"
style="position: absolute; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"> -->
<div class="compareWits_box" id="compareWits_box"
ng-class="{'span9of18': (existCriticalText() && getCurrentWitnesses().length <= 1),
'span18of18': !existCriticalText()}">
<box data-type="witness"
data-witness="{{witness}}"
ng-if="witness"
data-witpage="{{getCurrentWitnessPage(witness)}}"
ng-repeat="witness in getCurrentWitnesses()" ></box>
</div>
<button-switch
title="BUTTONS.ADD_WITNESS"
data-label="BUTTONS.ADD_WITNESS"
data-icon="add"
data-type="addWit"
class="compareWits_box--buttonAddWit inverted-color witnessSelector"
ng-class="{'left75': (!existCriticalText() && getCurrentWitnesses().length == 1) || (existCriticalText() && getCurrentWitnesses().length == 0),
'floatRight': (!existCriticalText() && getCurrentWitnesses().length > 1) || (existCriticalText() && getCurrentWitnesses().length > 0)}">
</button-switch>
<div
ng-if="isWitnessSelectorActive()"
class="availableWitnesses-selector witnessSelector"
ng-class="{'left75': (!existCriticalText() && getCurrentWitnesses().length == 1) || (existCriticalText() && getCurrentWitnesses().length == 0)}">
<span
ng-click="addWitness(witness)"
ng-if="::witness"
ng-repeat="witness in getAvailableWitnesses() track by $index">{{::getWitness(witness)}}</span>
</div>
</section>
<!-- TXT TXT -->
<section id="main-container" class="viewMode" ng-switch-when="txtTxt">
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText1"></box>
<box data-type="text" data-subtype="comparing" ng-show="getCurrentComparingEdition() !== undefined"
data-edition="{{getCurrentComparingEdition()}}"
id="mainText2"></box>
</section>
<!-- IMG TXT -->
<section id="main-container" class="viewMode" ng-switch-when="imgTxt">
<box data-type="image"
id="mainImage"></box>
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText"></box>
</section>
<!-- SRC TXT -->
<section id="main-container" class="viewMode" ng-switch-when="srcTxt">
<box data-type="text"
data-edition="{{getCurrentEdition()}}"
id="mainText"
ng-show="existCriticalText()"></box>
<box data-type="source"
ng-if="getCurrentSourceText()"
data-source={{getCurrentSourceText()}}
id="srcText"></box>
</section>
<!-- LOADING... -->
<section id="main-container" class="viewMode" ng-switch-default>
<div class="loading"><i class="fa fa-spinner fa-pulse loader"></i></div>
</section>
<!-- <div id="right-nav"><span><i class="fa fa-chevron-circle-right"></i></span></div> -->
<!-- INDEXING IN PROGRESS -->
<section id="main-container"
class="viewMode indexingInProgress"
ng-show="getState('indexingInProgress')">
<div class="loading"><i class="fa fa-spinner fa-pulse loader"></i></div>
</section>
</section>
<section class="global-msg-container"
ng-if="getErrorMsg() !== undefined && getErrorMsg().code === '404' && !isLoading()">
<div class="global-msg">
<h1>EVT Viewer</h1>
<h2>{{ 'ERROR' | translate }} {{getErrorMsg().code}} - {{getErrorMsg().title | translate }}</h2>
<p>{{ getErrorMsg().msg | translate }}</p>
<p>{{ getErrorMsg().info | translate }}</p>
</div>
</section>
<section class="popup-container thumb_cont" ng-if="isThumbNailsOpened()">
<figure class="thumbnail thumb_single" data-value="{{ thumb.value }}" data-src="{{ thumb.image }}" ng-click="goToPageFromThumb(thumb)"
ng-repeat="thumb in getThumbnails() track by $index" ng-class="{'active': getCurrentPage() === thumb.value}"> <!-- TEMP -->
<img class="thumb_single_img" ng-src="{{ thumb.image }}" onerror="this.setAttribute('src', 'images/empty-image.jpg')"/>
<figcaption>{{ thumb.label }}</figcaption>
</figure>
</section>
<section class="popup-container" ng-hide="!isVisCollOpened()">
<div>
<evt-viscoll></evt-viscoll>
</div>
</section>
<button-switch ng-if="getProperty('enableNavBar') && !isThumbNailsOpened() && !isVisCollOpened()"
ng-class="{'navBar-opener': isNavBarOpened(), 'navBar-closer': !isNavBarOpened()}"
title="BUTTONS.TOGGLE_NAVBAR"
data-icon="{{isNavBarOpened() ? 'hide-bar' : 'show-bar'}}"
data-type="toggler" on-btn-clicked="toggleNavBar()"></button-switch>
<evt-navbar ng-hide="!isNavBarOpened()"></evt-navbar>
</div>
<section class="global-loading-container" ng-show="isLoading()">
<!-- LOADING... -->
<div class="loading"><i class="fa fa-spinner fa-pulse loader"></i></div>
</section>
<evt-dialog
data-id="errorMsg"
data-type="error"
data-title="ERROR"></evt-dialog>
<footer>Footer</footer>
<!-- TODO: change route system -->
<!-- <div ng-view=""></div> -->
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<!--
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-X');
ga('send', 'pageview');
</script>
-->
<!--[if lt IE 9]>
<script src="scripts/oldieshim.023e8678.js"></script>
<![endif]-->
<script src="scripts/lib.307bc6f6.js"></script>
<script src="scripts/evtviewer.ea619abc.js"></script>
</body>
</html>