-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (93 loc) · 4.04 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Glacier Desktop Beta</title>
<link rel="stylesheet" type="text/css" media="screen" href="node_modules/open-iconic/font/css/open-iconic.css">
<link rel="stylesheet" type="text/css" media="screen" href="libs/vendor/converse.js/dist/converse.min.css">
<link rel="stylesheet" type="text/css" href="resources/css/app.css">
<link rel="stylesheet" type="text/css" href="resources/css/_footer.css">
<link rel="stylesheet" type="text/css" href="resources/css/page-about.css">
<link rel="stylesheet" type="text/css" href="resources/css/page-default.css">
<link rel="stylesheet" type="text/css" href="resources/css/page-login.css">
<link rel="stylesheet" type="text/css" href="resources/css/page-settings.css">
<link rel="stylesheet" type="text/css" href="node_modules/@fortawesome/fontawesome-free/css/all.css">
</head>
<base href="./">
<body ng-app="app">
<div class="main-background"></div>
<div class="main-window" ng-controller="AppController" ng-cloak>
<div ng-show="state == 'default'">
<ng-include src="'./app/views/default/page.html'"></ng-include>
</div>
<div ng-show="state == 'login'">
<ng-include src="'./app/views/login/page.html'"></ng-include>
</div>
<div ng-show="state == 'set-password'">
<ng-include src="'./app/views/set-password/page.html'"></ng-include>
</div>
<div ng-show="state == 'about'">
<ng-include src="'./app/views/about/page.html'"></ng-include>
</div>
<div ng-show="state == 'settings'">
<ng-include src="'./app/views/settings/page.html'"></ng-include>
</div>
<div id="notification" class="hidden">
<p id="message"></p>
<button id="close-button" ng-click="closeNotification()">
Close
</button>
<button id="restart-button" ng-click="restartAppAndInstall()" class="hidden">
Restart
</button>
</div>
</div>
<script src="./node_modules/spinners-angular/elements/polyfills-es5.js"></script>
<script src="./node_modules/spinners-angular/elements/runtime-es5.js"></script>
<script src="./node_modules/spinners-angular/elements/spinner-circular-fixed-es5.js"></script>
<!--
@see comment https://github.com/signalapp/libsignal-protocol-javascript/issues/6#issuecomment-247208665
-->
<script>
window.nodeRequire = require
delete window.require
</script>
<!-- Place libsignal at libs dir as it's no more distributed with converse.js -->
<script src="libs/converse.js/3rdparty/libsignal-protocol.js"></script>
<script>
window.require = window.nodeRequire
delete window.nodeRequire
</script>
<script>
// You can also require other files to run in this process
require('./libs/vendor/converse.js/dist/emojis.js')
require('./libs/vendor/converse.js/dist/converse.js')
require('./renderer.js')
</script>
<script>
function loadJs(url) {
var script = document.createElement('script')
script.src = url
script.setAttribute('async', 'true')
document.documentElement.firstChild.appendChild(script)
}
setTimeout(function () {
loadJs("./node_modules/github-buttons/dist/buttons.min.js")
}, 500)
</script>
<div class="connection-status-banner" id="connection-status-banner">
<footer>
<p>No internet connection. Please check your network settings.</p>
</footer>
</div>
<script>
// This code displays and hides the banner based on the online/offline state.
function updateOnlineStatus () {
document.getElementById('connection-status-banner').style.display = navigator.onLine ? 'none' : 'block'
}
window.addEventListener('online', updateOnlineStatus)
window.addEventListener('offline', updateOnlineStatus)
updateOnlineStatus()
</script>
</body>
</html>