-
Notifications
You must be signed in to change notification settings - Fork 0
/
notification.html
56 lines (49 loc) · 1.12 KB
/
notification.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Notification</title>
<link rel="stylesheet" href="assets/dist/XigenTimer.min.css">
<style type="text/css">
body { background: 333333; }
</style>
<script src="assets/js/lib/jquery.js"></script>
<script type="text/javascript">
$(function () {
"use strict";
var qs = (function(a) {
if (a === "") {
return {};
}
var b = {};
for (var i = 0; i < a.length; i+=1) {
var p=a[i].split('=');
if (p.length !== 2) {
continue;
}
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
}
return b;
})(window.location.search.substr(1).split('&')),
gui = require('nw.gui'),
win = gui.Window.get();
$("h2").text(qs.title);
$("p").text(qs.message);
$("h2, p, img").fadeIn(500);
setTimeout(function () {
$("h2, p, img").fadeOut(500);
}, 4300);
setTimeout(function () {
win.close();
}, 5000);
});
</script>
</head>
<body class="notification">
<div class="is-notification">
<img src="assets/svg/xigen_logo.svg" />
<h2>Example Title</h2>
<p>This is a notification</p>
</div>
</body>
</html>