-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
45 lines (39 loc) · 808 Bytes
/
test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Arise Test</title>
<link rel="stylesheet" href="lib/arise.css">
<style type="text/css">
body {
height: 2000px;
}
</style>
</head>
<body>
<a href="#" id="test">Reopen</a>
<div style="height: 2000px"></div>
<script src="lib/testing.js"></script>
<script>
var _show = true;
function close() {
_show = false;
render();
}
function render() {
arise({
html: "<img src='./bubbles.jpg' alt='' />",
show: _show,
modal: true,
onClose: close
});
}
render();
document.getElementById('test').addEventListener('click', function(e) {
e.preventDefault();
_show = true;
render();
});
</script>
</body>
</html>