-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (42 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Guda.js demo site</title>
<script src="guda.loader.js" type="text/ecmascript" id="guda-loader"></script>
<!-- <script src="guda.js" type="text/ecmascript" id="guda"></script>-->
</head>
<body>
<div id="list">
</div>
<div id="formi">
</div>
<div id="posts">
</div>
<script type="text/ecmascript">
var list, formi, posts;
var start = function start() {
list = new Guda(),
formi = new Guda(),
posts = new Guda();
list.set({
target: "list",
template: GudaLoader["list.html"],
components: JSON.parse(GudaLoader["list.json"])
});
formi.set({
target: "formi",
template: GudaLoader["form.html"],
components: JSON.parse(GudaLoader["form.json"])
});
posts.set({
target: "posts",
template: GudaLoader["posts.html"],
components: JSON.parse(GudaLoader["posts.json"])
});
};
GudaLoader.done = start;
GudaLoader.load("guda.js", "list.html", "list.json", "form.html", "form.json", "posts.html", "posts.json");
</script>
</body>
</html>