-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (44 loc) · 1.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Ehcor Gallery</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div id="ehcor">
<h1>Ehcor Gallery<span></span></h1>
<div id="upload" class="box-item">
<span>Upload</span>
<input type="file" multiple="" />
</div>
</div>
<script type="javascript/tpl" id="ehcor-view-item">
<div class="box-item box-img" data-cmd="#/show/{id}" id="{uid}">
<a class="remove" href="#" data-cmd="#/remove/{id}">remove</a>
</div>
</script>
<script type="text/javascript" src="js/ehcor/core/main.js"></script>
<script type="text/javascript" src="js/ehcor/core/dom.js"></script>
<script type="text/javascript" src="js/ehcor/core/events.js"></script>
<script type="text/javascript" src="js/ehcor/core/storage.js"></script>
<script type="text/javascript" src="js/ehcor/core/upload.js"></script>
<script type="text/javascript" src="js/ehcor/gallery/app.js"></script>
<script type="text/javascript" src="js/ehcor/gallery/model.js"></script>
<script type="text/javascript" src="js/ehcor/gallery/storage.js"></script>
<script type="text/javascript" src="js/ehcor/gallery/view.js"></script>
<script type="text/javascript" >
(function(){
$ehcor = ehcor.dom.query('#ehcor');
var upload = new ehcor.Upload(ehcor.dom.query('#upload'));
var gallery = new ehcor.gallery.App(
ehcor.gallery.view.factory($ehcor),
ehcor.gallery.storage.factory()
);
upload.on('files', gallery.upload, gallery);
gallery.run();
})();
</script>
</body>
</html>