This repository was archived by the owner on Dec 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
192 lines (168 loc) · 7.39 KB
/
index.html
File metadata and controls
192 lines (168 loc) · 7.39 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Canvas Drawing App with HTML5 features & built with BackboneJS.">
<link href="css/foundation.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
<link href="css/farbtastic.css" rel="stylesheet"/>
<script src="http://cloud.github.com/downloads/kangax/fabric.js/all.min.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Quake_Cyr.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Vampire95.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Times_New_Roman.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Terminator_Cyr.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Modernist_One_400.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Encient_German_Gothic_400.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/DejaVu_Serif_400.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/CA_BND_Web_Bold_700.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/Delicious_500.font.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/lib/fonts/CrashCTT_400.font.js"></script>
<script src="fonts/Gruenewald_VA_400.font.js"></script>
<script src="fonts/Little_Daisy_400-Little_Days_Alt_400-Little_Days_400.font.js"></script>
<script>
Cufon("h1");
Cufon.replace('h1', { fontFamily: 'CrashCTT_400' });
</script>
<title>App</title>
</head>
<body id="main">
<header class="row">
<h1 class="twelve columns"><img src=""/> AppDraw</h1>
</header>
<section id="main-view" class="row"></section>
<div id="popup"></div>
<footer class="row">
<hr/>
<p class="right">by <a href="mailto:tirabc@gmail.com">Christian Barras</a></p>
</footer>
<!-- Templates -->
<script type="text/template" id="tpl-app">
<div class="one columns">
<ul id="tools" class="side-nav vertical">
<li><a id="new"><img alt="New" src="img/black/png/doc_empty_icon&24.png"/></a></li>
<li><a id="save"><img alt="Save" src="img/black/png/save_icon&24.png"/></a></li>
<li><a id="load"><img alt="Load" src="img/black/png/folder_open_icon&24.png"/></a></li>
<li><a id="preview"><img alt="Preview" src="img/black/png/eye_icon&24.png"/></a></li>
<li><a id="print"><img alt="Print" src="img/black/png/print_icon&24.png"/></a></li>
<li><hr/></li>
<li><a id="rectangle"><img alt="Rectangle" src="img/black/png/square_shape_icon&24.png"/></a></li>
<li><a id="circle"><img alt="Circle" src="img/black/png/round_icon&24.png"/></a></li>
<li><a id="text"><img alt="Text" src="img/black/png/text_letter_t_icon&24.png"/></a></li>
<li><a id="clipart"><img alt="Clipart" src="img/black/png/picture_icon&24.png"/></a></li>
<li><hr/></li>
<li><a id="sendToTrash"><img alt="sendToTrash" src="img/black/png/trash_icon&24.png"/></a></li>
<li><a id="bringToFront"><img alt="bringToFront" src="img/black/png/arrow_top_icon&24.png"/></a></li>
<li><a id="bringForward"><img alt="bringForward" src="img/black/png/br_up_icon&24.png"/></a></li>
<li><a id="sendBackwards"><img alt="sendBackwards" src="img/black/png/br_down_icon&24.png"/></a></li>
<li><a id="sendToBack"><img alt="sendToBack" src="img/black/png/arrow_bottom_icon&24.png"/></a></li>
</ul>
</div>
<div class="eleven columns">
<canvas id="c" width="500" height="800"></canvas>
</div>
</script>
<script type="text/template" id="tpl-popup">
<div id="myModal" class="reveal-modal {{size}}">
<h2>{{title}}</h2>
<p class="lead">{{baseline}}</p>
<p class="row">{{{body}}}</p>
<a class="close close-reveal-modal">×</a>
</div>
</script>
<script type="text/template" id="tpl-tool-circle">
<div>
<div id="colorpicker"></div>
<input type="text" id="color"/>
<button id="createcircle" class="validate">Validate</button>
</div>
</script>
<script type="text/template" id="tpl-tool-rectangle">
<div>
<div id="colorpicker"></div>
<input type="text" id="color"/>
<button id="createrectangle">Validate</button>
</div>
</script>
<script type="text/template" id="tpl-tool-text">
<div>
<h4>Exemples</h4>
{{#fonts}}
<p style="font-family: {{font_label}}">{{font_label}}</p>
{{/fonts}}
<hr/>
<select id="myfont" name="myfont">
{{#fonts}}
<option value="{{font_value}}">{{font_label}}</option>
{{/fonts}}
</select>
<input type="text" id="mytext" placeholder="Type your text here ..."/>
<div id="colorpicker"></div>
<input type="text" id="color"/>
<button id="createtext">Validate</button>
</div>
</script>
<script type="text/template" id="tpl-tool-clipart">
<div id="firstScene">
<div class="panel radius">
<input type="file" name="own_img[]" multiple id="own_img" />
<button class="radius button small secondary" id="add_own_images">Add my own images</button>
<div id="list"></div>
</div>
{{#images}}
<div class="left img_item"><img alt="{{name}}" title="{{name}}" class="image" id="image{{id}}" src="{{url}}" data-url="{{url}}"/></div>
{{/images}}
<div class="twelve columns" id="action">
<button id="createclipart">Validate</button>
</div>
</div>
<div id="secondScene">
</div>
</script>
<script type="text/template" id="tpl-tool-edit-image">
<canvas id="e" width="300" height="300"></canvas>
hello world
</script>
<script type="text/template" id="tpl-tool-load">
{{#previous}}
<p><strong>{{date}}</strong> - {{title}}<button class="button radius load" data-date="{{date}}">Load</button></p>
{{/previous}}
</script>
<script type="text/template" id="tpl-tool-new">
<div>
<input type="text" id="title"/>
<div id="colorpicker"></div>
<input type="text" id="color"/>
<button id="createcanvas">Validate</button>
</div>
</script>
<!-- Scripts -->
<script src="js/libs/jquery.min.js"></script>
<!--<script src="js/libs/jquery.drop.js"></script>
<script src="js/libs/fabricjs.all.min.js"></script>
<script src="https://raw.github.com/kangax/fabric.js/master/dist/all.js"></script>-->
<script src="js/libs/foundation.min.js"></script>
<script src="js/libs/mustache.js"></script>
<script src="js/libs/underscore.min.js"></script>
<script src="js/libs/backbone.min.js"></script>
<script src="js/libs/moment.js"></script>
<script src="js/models/tool.js"></script>
<script src="js/views/popup.js"></script>
<script src="js/views/rectangle.js"></script>
<script src="js/views/edit_image.js"></script>
<script src="js/views/circle.js"></script>
<script src="js/views/clipart.js"></script>
<script src="js/views/new.js"></script>
<script src="js/views/load.js"></script>
<script src="js/views/text.js"></script>
<script src="js/views/app.js"></script>
<script src="js/router.js"></script>
<script src="js/appdraw.js"></script>
<script src="js/libs/farbtastic.js"></script>
<script>
$(document).ready(function () {
// On lance l'application une fois que notre HTML est chargé
appdraw.init();
}) ;
</script>
</body>
</html>