-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
44 lines (30 loc) · 956 Bytes
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
@import url("css/CoolBox.css");
</style>
<script src="js/CoolBox.js?v=1"></script>
</head>
<body>
<script>
var coolbox = new CoolBox({width: "400", height: "250"});
var content = document.createElement('div');
content.innerHTML = '<h1>hello world</h1>';
coolbox.addContent(content);
coolbox.addButton('Continue', function(){
alert('hi');
});
coolbox.addButton('Cancel', function(){
coolbox.hide();
}, true);
coolbox.setTitle('Your Daily Horoscope');
coolbox.show();
coolbox.loading(true);
setTimeout(function(){
coolbox.loading(false);
}, 1000);
</script>
</body>
</html>