forked from naitup/CookieViz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser.html
156 lines (138 loc) · 7.02 KB
/
browser.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/all.css" rel="stylesheet">
<link rel="stylesheet" href="css/browser.css" />
<script src="browser.config.js"></script>
<script type="module">
const loading = config.analyses.map((analysis) => {
return new Promise((resolve) => {
import("./analyses/" + analysis + ".mjs").then(module => {
initAnalysis(module.plugins());
resolve();
});
})
})
Promise.all(loading).then(() => initDb());
</script>
</head>
<body ng-app="translate">
<nav id="navigation-bar">
<div id="nav-wrapper">
<div id="nav-controls" class="nav-elements">
<button title="{{'browser.navigation.PREV_PAGE' | translate}}" id='back'
class="fas fa-arrow-left nav-btn"></button>
<button title="{{'browser.navigation.NEXT_PAGE' | translate}}" id='forward'
class="fas fa-arrow-right nav-btn"></button>
<button title="{{'browser.navigation.REFRESH_PAGE' | translate}}" id='refresh'
class="fas fa-redo nav-btn"></button>
</div>
<div id="url-bar" class="nav-elements">
<input type="url" id='address' class='address' />
</div>
<div id="features" class="nav-elements">
<button title="{{'browser.visualizations.VIZ' | translate}}" id="viz"
class="fa fa-eye nav-btn dropbtn"></button>
<div class="dropdown" ng-controller="Ctrl">
<button title="{{'browser.LANGUAGES' | translate}}" id="language"
class="fas fa-globe-africa nav-btn dropbtn"></button>
<div id="dropdown-language" class="dropdown-content">
<div class="link-list" id="language-menus">
</div>
</div>
</div>
<div class="dropdown">
<button title="{{'browser.parameters.TITLE' | translate}}" id="settings"
class="fas fa-cog nav-btn dropbtn"></button>
<div id="dropdown-settings" class="dropdown-content">
<div class="link-list" id="parameter-menus">
</div>
</div>
</div>
</div>
<div>
</nav>
<nav id="visit-bar" class="visit">
<div id="nav-wrapper">
<div class="nav-elements" style="margin:10">
<button title="{{'browser.visit.START_VISIT' | translate}}" id='visit-play-pause'
class="fas fa-play nav-btn"></button>
<button title="{{'browser.visit.REINIT_VISIT' | translate}}" id='visit-init'
class="fas fa-redo nav-btn"></button>
<button title="{{'browser.visit.PREVIOUS_VISIT' | translate}}" id='visit-prev'
class="fas fa-arrow-left nav-btn"></button>
<button title="{{'browser.visit.NEXT_VISIT' | translate}}" id='visit-next'
class="fas fa-arrow-right nav-btn"></button>
</div>
<div class="nav-elements">
<button title="{{'browser.visit.MINIMIZE_VISIT' | translate}}" id='visit-reduce'
class="fas fa-window-minimize nav-btn" style="margin: 0 0px 0 0;"></button>
<button title="{{'browser.visit.CLOSE_VISIT' | translate}}" id='visit-close'
class="fas fa-times nav-btn" style="margin: 0 0px 0 0;"></button>
</div>
<div>
<div name="visitList" id="list-wrapper">
<select size="3" class='visit' id="visit-list">
</select>
</div>
<div class="nav-elements" style="margin:20">
<button title="{{'browser.visit.ADD_VISIT' | translate}}" id='visit-add'
class="fas fa-plus nav-btn"></button>
<button title="{{'browser.visit.REMOVE_VISIT' | translate}}" id='visit-remove'
class="fas fa-minus nav-btn"></button>
</div>
<div class="nav-elements">
<button title="{{'browser.visit.IMPORT_VISIT' | translate}}" id='visit-import'
class="fas fa-file-import nav-btn"></button>
<button title="{{'browser.visit.EXPORT_VISIT' | translate}}" id='visit-export'
class="fas fa-file-export nav-btn"></button>
<button title="{{'browser.visit.DOWNLOAD_VISIT' | translate}}" id='visit-download'
class="fas fa-download nav-btn"></button>
</div>
</nav>
<div id="visit_modal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" onclick="window.alexaModal.style.display = 'none';">×</span>
<h1>{{'browser.visit.alexa.HEAD_ALEXA' | translate}}</h1> <br><br>
<form id="alexa_form">
{{'browser.visit.alexa.API_KEY' | translate}} : <input type="text" id="api_key" value="">
<br><br>
<label>{{'browser.visit.alexa.LIST_SIZE' | translate}} : <input type="text" value="1000"
id="alexa_list_size"></label> <br><br>
<label for="country_select"> {{'browser.visit.alexa.COUNTRY_CODE' | translate}} : </label>
<select id="country_select">
<option value="FR">FR</option>
<option value="EN">EN</option>
<option value="ES">ES</option>
</select>
<br><br>
<input type="submit" value="{{'browser.visit.alexa.STORE_VISIT' | translate}}">
<div id="alexa_response">
</div>
</form>
<br><br>
</div>
</div>
<!–– Dependencies ––>
<script src="js/angular.min.js"></script>
<script src="js/angular-cookies.min.js"></script>
<script src="js/angular-translate.min.js"></script>
<script src="js/angular-translate-storage-cookie.min.js"></script>
<script src="js/angular-translate-storage-local.min.js"></script>
<script src="js/angular-translate-loader-static-files.min.js"></script>
<!–– Core interfaces ––>
<script src="core/error.js"></script>
<script src="core/browser.js"></script>
<script src="core/dropdown.js"></script>
<script src="core/language.js"></script>
<script src="core/database.js"></script>
<script src="core/plugins.js"></script>
<!-- TODO : <script src="core/bookmarks.js"></script>-->
<!–– Browser parameters ––>
<script src="parameters/clean_data.js"></script>
<script src="parameters/visit_path.js"></script>
<!-- <div id="plugins_button" style="display:inline;" class="nav-button"></div> -->
<webview id='browser'/>
</body>
</html>