-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
108 lines (95 loc) · 3.46 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
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>UnderZ library</title>
<script type="text/javascript" src="_z.js" underZ>
_z&&
( _z.$Langs = {
ok: "OK",
styledir: './theme/',
varName: "varValue"
});
// if you have jQuery comment this line
$ = _z;
//_z.getScript('./addons/jq.js');
</script>
<script type="text/javascript">
// when document ready
_z.ready(()=>{
// jquery methods * addon
_z
.declare('jq')
.require({ js: [ './addons/jq.js' ] });
// load plugin: toggle blocks by click
_z
.declare('toggleByClick', _z.$)
.require({ js: [ './plugins/togglebyclick.jPlugin.js' ] })
.hook( _z )
.init(fns.true);
// worker
_z
.declare('worker')
.require({ js: [ './plugins/worker.jPlugin.js' ] })
.init(()=>{return !!(document.querySelectorAll("script[type^='text\/_z-\']").length); });
// issetAnd
_z
.declare('issetAnd')
.require({ js: [ './plugins/issetAnd.jPlugin.js' ] })
.init(fns.false);
// sizeFormat * addon
_z
.declare('sizeFormat')
.require({ js: [ './addons/sizeFormat.js' ] });
// label2
_z
.declare('label2')
.require({ js: [ './plugins/label2.jPlugin.js' ] })
.global()
.init(function () {
var MObj = _z( ".moveAble" );
MObj.for(function( i, e ) {
new label2({ 'element': e });
});
return !!MObj.length;
});
// wrapWith
_z
.declare('wrapWith', _z.$ )
.require({ js: [ './plugins/wrapWith.jPlugin.js' ] })
.init(function () {
return !!( !!_z( "[wrapWith]" ).length && _z( '[wrapWith]' ).wrapWith() );
});
// backtotop
_z
.declare('backtotop')
.require({ js: './plugins/backtotop/backtotop.js' })
.require({ css: './plugins/backtotop/backtotop.css' })
.init(function declarebTTInit() {
var initModule = _z(document).height() > (2 * _z(window).height());
if( initModule && _z.isset(window['backtotop']) && _z.isset(window['backtotop']['onload']) )
_z.ready(window['backtotop']['onload']);
return initModule;
});
fns.arg( _z.is_z($), _z.isCore($) );
});
</script>
</head>
<body>
<button onclick="notify()">Notify</button>
<script type="text/javascript">
function notify() {
// notification example
var notify = new _z.notification({
tag: "mainNot",
title: 'UnderZ',
body: 'UnderZ Running\nClick To Open GitHub.',
image: undefined,
dir: 'auto',
onclick: ()=>window.open("https://github.com/mPhpMaster/UnderZ")&¬ify[notify.length-1].close()
}).open();
}
</script>
</body>
</html>