-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
241 lines (218 loc) · 11 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
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html>
<head>
<title>pattapp</title>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- font awesome -->
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="css/materialize.min.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- colorpicker -->
<!-- <link rel="stylesheet" type="text/css" href="css/colorpicker.css"> -->
<link href='https://fonts.googleapis.com/css?family=Josefin+Sans:400,300italic,400italic,600italic,600,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/jcolor.css">
<!-- Custom css -->
<link rel="stylesheet" type="text/css" href="css/custom.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/spectrum/1.7.1/spectrum.min.css">
</head>
<body>
<div class="contWrapper">
<div class="bgImage">
</div>
<div class="mainCont">
<h1 id="pattlyid">pattly</h1>
<!--<a href="#" data-activates="nav-mobile" class="button-collapse "><i class="mdi-navigation-menu"></i></a>-->
<div class="container" id = "main-container">
<ul style="width: 240px;" id="nav-mobile" class="side-nav fixed collapsible" data-collapsible="accordion">
<li class="no-padding">
<div class="collapsible-header"><img src="img/dashboard.png" alt="" class="dash"><span >pattly</span></div>
</li>
<li class="no-padding">
<div class="collapsible-header active"><img src="img/canvas.png" alt=""><span class="canvas">Canvas Settings</span></div>
<div class="collapsible-body">
<div class="input-field">
<input id="width" type="text" class="ml8" value="400">
<label class="active" for="width">Width</label>
</div>
<div class="input-field">
<input id="height" type="text" value="400">
<label class="active" for="height">Height</label>
</div>
<label>Gridsize</label>
<select class="browser-default" id="GridSize" style="background-color:lightgrey;color:black;" >
<option value="0.5">0.5</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
<div class="input-field">
<input type="checkbox" id="GridRT" class="chkbx" value="Ratio">
<label for="GridRT">SnaptoGrid</label>
</div>
<div class="input-field">
<input type="checkbox" id="ratio" class="chkbx" value="Car">
<label for="ratio">Ratio</label>
</div>
<!--<p class="left-align mrgb">
<label>bg Color</label>
<div class="colorpickerHolderdiv my-color-picker"></div>
<input id="colorpickerHolder" type="text" class="inps">
</p>-->
<input id = "backgroundColorPicker" type='text' class="insp custom">
<input id="canvascolor" type="text" value="#0000ff">
<center>
<div class="input-field">
<div class="waves-effect waves-light btn" id="Gridbtn" style="background-color:lightgrey;color:black;">Enter Grid</div>
</div>
</center>
</div>
</li>
<li class="no-padding">
<div class="collapsible-header"><img src="img/add.png" alt="" class="add"><span>Graphics</span></div>
<div class="collapsible-body">
<a id="browse" class="waves-effect waves-light btn btnBrowse">Upload icon</a>
<input type="file" id="hidden-input" multiple style="display:none;">
<a id="browse1" class="waves-effect waves-light btn" style="display:none;margin-top:5px;">Browse Svg</a>
<input type="file" id="hidden-input1" style="display:none;">
<form action="#" class="formGraphics">
<div class="range-field">
<label for="test5a">Opacity</label>
<input type="range" id="test5a" min="0" max="100" />
</div>
</form>
<a class="waves-effect waves-light btn" id="duplicate">Duplicate</a>
<a class="waves-effect waves-light btn" id="remove">Remove</a><br>
<input id = "imageColorPicker" type='text' class="insp custom">
<br/>
<label class="active" for="ImgColorVal" size="50%">Color</label>
<input id="ImgColorVal" type="text" value="#002aff">
</div>
</li>
<li class="no-padding">
<div class="collapsible-header active"><img src="img/add.png" alt="" class="add"><span>Text</span></div>
<div class="collapsible-body">
<a id="addtext" class="waves-effect waves-light btn btnBrowse">Add Text</a>
<form action="#" class="formText">
<div class="input-field col s12">
<label class="active" for="font" >Font</label>
<select id="txtfont" class="browser-default">
</select>
</div>
<br>
<a class="waves-effect waves-light btn" id="bold"> <i class="fa fa-bold "></i></a>
<a class="waves-effect waves-light btn" id="underline"><i class="fa fa-underline "></i></a>
<a class="waves-effect waves-light btn" id="italic"><i class="fa fa-italic "></i></a>
<a class="waves-effect waves-light btn" id="alignright"><i class="fa fa-align-right"></i></a>
<a class="waves-effect waves-light btn" id="alignleft"><i class="fa fa-align-left"></i></a>
<a class="waves-effect waves-light btn" id="aligncenter"><i class="fa fa-align-center"></i></a>
<br>
<div class="range-field">
<label for="test5b">Opacity</label>
<input type="range" id="test5b" min="0" max="100">
</div><br/>
</form>
<a class="waves-effect waves-light btn" id="duplicateText">Duplicate</a>
<a class="waves-effect waves-light btn" id="removeText">Remove</a><br>
<span style="text-align: left;">
<input id ="textColorPicker" type='text' class="insp custom" >
<br/>
<label class="active" for="ColorVal" size="50%">Color</label>
<input id="ColorVal" type="text" value="#002aff">
</span>
</div>
</li>
<li class="no-padding">
<div class="collapsible-header"><img src="img/export.png" alt="" class="export"><span>Export</span></div>
<div class="collapsible-body">
<div class="input-field">
<input id="NewWidthEx" type="text" value="500">
<label class="active" for="NewWidthEx">Export Width</label>
</div>
<div class="input-field">
<input id="NewHeightEx" type="text" value="500">
<label class="active" for="NewHeightEx">Export Height</label>
</div>
<center>
<div class="input-field">
<div class="waves-effect waves-light btn" id="Exportbtn">Export</div>
</div>
</center>
</div>
</li>
</ul>
<div class="canvasBig">
<canvas id="myCanvas"></canvas>
</div>
</div>
</div>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="js/materialize.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<!-- colorpicker -->
<script type="text/javascript" src="js/jcolor.js"></script>
<!-- fabric js -->
<script type="text/javascript" src="js/fabric.min.js"></script>
<script>
function fbs_click(TheImg) {
u=TheImg.src;
// t=document.title;
t=TheImg.getAttribute('alt');
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;
}
</script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/custom-fabric.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spectrum/1.7.1/spectrum.min.js"></script>
<script>
$("#textColorPicker").spectrum({
color: "#blue",
allowEmpty:true,
move: function(color) {
prototypefabric.setcolor(color.toHexString());
}
});
$("#backgroundColorPicker").spectrum({
color: "#0D1E2C",
allowEmpty:true,
move: function(color) {
prototypefabric.changeBackground(color.toHexString());
}
});
</script>
<script src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['Open Sans',
'Roboto',
'Lato',
'Oswald',
'Lora',
'Source Sans Pro',
'Montserrat',
'Raleway',
'Ubuntu',
'Droid Serif',
'Merriweather',
'Indie Flower',
'Titillium Web',
'Poiret One',
'Oxygen',
'Yanone Kaffeesatz',
'Lobster',
'Playfair Display',
'Fjalla One',
'Inconsolata',
'Droid Sans',
'Droid Serif']
}
});
</script>
</body>
</html>