-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (56 loc) · 1.51 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
<!DOCTYPE html>
<html>
<head>
<!--
Libs
-->
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<link href="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet" />
<script src="http://knockoutjs.com/downloads/knockout-3.1.0.debug.js"></script>
<!--
ModuloJS
-->
<script src="./modulo.js"></script>
</head>
<body>
<!--
Register Libs and Extensions
-->
<script>
app.registerLib('ko', ko);
app.registerLib('toastr', toastr);
app.registerLib('$', $ || JQuery);
app.registerExtension('log', function (libs) {
var log = {};
log.info = function (msg) {
console.info(msg);
libs.toastr.info(msg);
};
log.error = function (msg) {
console.error(msg);
libs.toastr.info(msg);
};
return log;
});
</script>
<script src="./extensions/pubsub.js"></script>
<script src="./extensions/http.js"></script>
<hr>
Start Modules
<hr>
<!--
Declare Module Tags
-->
<div id="mod"></div>
<div id="moduloA"> </div>
<hr>
End Modules
<hr>
<!--
Load modules
-->
<script src="./imports/mod.js"></script>
<script src="./imports/moduloA.js"></script>
</body>
</html>