-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
202 lines (175 loc) · 6.63 KB
/
index.html
File metadata and controls
202 lines (175 loc) · 6.63 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
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
Fore more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Slisic Application">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="parse_login_tuto">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />
<!-- title web -->
<title>Smart Online</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-app.js"></script>
<!-- <script src="https://www.gstatic.com/firebasejs/8.2.1/firebase-database.js"></script> -->
<!-- If you enabled Analytics in your project, add the Firebase SDK for Analytics -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-analytics.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-firestore.js"></script>
<!-- firebase messaging -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-messaging.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
// firestore ramms
var firebaseConfig = {
apiKey: "AIzaSyDuDa8Jiih7vx5FAdT0B5zsEo3hON8amrs",
authDomain: "ramms-firebase.firebaseapp.com",
databaseURL: "https://ramms-firebase.firebaseio.com",
projectId: "ramms-firebase",
storageBucket: "ramms-firebase.appspot.com",
messagingSenderId: "1065253805711",
appId: "1:1065253805711:web:03c6f40704f79a9ffadafa",
measurementId: "G-5G54B32PF5"
};
//
// firestore flutter quiz app
// var firebaseConfig = {
// apiKey: "AIzaSyC0MO2C2RLr3LvJANLYTCA2agLH7QUude4",
// authDomain: "flutter-quiz-app-a7051.firebaseapp.com",
// databaseURL: "https://flutter-quiz-app-a7051.firebaseio.com",
// projectId: "flutter-quiz-app-a7051",
// storageBucket: "flutter-quiz-app-a7051.appspot.com",
// messagingSenderId: "976038169779",
// appId: "1:976038169779:web:a079887cf69f9034c6f4c6",
// measurementId: "G-NLWZZ184FZ"
// };
//
// var firebaseConfig = {
// apiKey: "AIzaSyDP8Gx5pM0wWhhlxJ_KYzOcVSJ3OReciUI",
// authDomain: "flutter-web-9a8cb.firebaseapp.com",
// databaseURL: "https://flutter-web-9a8cb.firebaseio.com",
// projectId: "flutter-web-9a8cb",
// storageBucket: "flutter-web-9a8cb.appspot.com",
// messagingSenderId: "827663752177",
// appId: "1:827663752177:web:4466d9c2982a9015c80250",
// measurementId: "G-Z1E83FCZRF"
// };
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
// firebase.initializeApp(firebaseConfig);
// firebase.analytics();
// var messaging = firebase.messaging()
// messaging.usePublicVapidKey('Your Key');
// messaging.getToken().then((currentToken) => {
// console.log(currentToken)
// })
// firebase push notification
// const messaging = firebase.messaging();
// messaging.setBackgroundMessageHandler(function (payload) {
// const promiseChain = clients
// .matchAll({
// type: "window",
// includeUncontrolled: true
// })
// .then(windowClients => {
// for (let i = 0; i < windowClients.length; i++) {
// const windowClient = windowClients[i];
// windowClient.postMessage(payload);
// }
// })
// .then(() => {
// return registration.showNotification("New Message");
// });
// return promiseChain;
// });
// self.addEventListener('notificationclick', function (event) {
// console.log('notification received: ', event)
// });
</script>
<!-- disable screenshot javascript functions -->
<!-- tekan tombol printscreen pada keyboard, printscreen tidak berfungsi -->
<script>
document.addEventListener("keyup", function (e) {
var keyCode = e.keyCode ? e.keyCode : e.which;
if (keyCode == 44) {
stopPrntScr();
}
});
function stopPrntScr() {
var inpFld = document.createElement("input");
inpFld.setAttribute("value", ".");
inpFld.setAttribute("width", "0");
inpFld.style.height = "0px";
inpFld.style.width = "0px";
inpFld.style.border = "0px";
document.body.appendChild(inpFld);
inpFld.select();
document.execCommand("copy");
inpFld.remove(inpFld);
}
function AccessClipboardData() {
try {
window.clipboardData.setData('text', "Access Restricted");
} catch (err) {
}
}
setInterval("AccessClipboardData()", 300);
</script>
<!-- <script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function () {
//
navigator.serviceWorker.register('flutter_service_worker.js?v=2434973122');
// navigator.serviceWorker.register("/firebase-messaging-sw.js");
});
}
</script> -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register("/firebase-messaging-sw.js");
});
}
</script>
<script>
document.onkeydown = function () {
switch (event.keyCode) {
case 116: //F5 button
event.returnValue = false;
event.keyCode = 0;
return false;
case 82: //R button
if (event.ctrlKey) {
event.returnValue = false;
event.keyCode = 0;
return false;
}
}
}
</script>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>