-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
406 lines (387 loc) · 21.3 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<!DOCTYPE html>
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
<title>Responsive Wireframes</title>
<meta name="description" content="RWD Wireframes helps you design your responsive website">
<meta name="keywords" content="Responsive Web Design, RWD, wireframes, design, web development">
<meta name="ttw" content="4dee6p0" />
<meta property="og:title" content="RWD Wireframes" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.lifeishao.com/rwdwire" />
<meta property="og:image" content="http://lifeishao.com/rwdwire/public/img/step0.png" />
<meta property="og:site_name" content="Responsive Wireframes" />
<meta property="fb:admins" content="4713134" />
<link rel="stylesheet" href="public/assets/jquery.ui/dist/jquery-ui.min.css"/>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="public/assets/highlightjs/styles/github.css">
<link rel="stylesheet" href="public/css/facebook.css"/>
<link rel="stylesheet" href="public/css/default.css"/>
<script src="//google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script data-main="public/js/main" src="public/assets/requirejs/require.js"></script>
</head>
<body>
<div class="overlay loading">
<div class="loading-content">
Loading...
</div>
</div>
<nav id="main-nav">
<h1 class="title">
RWD Wireframes <span id="version"> (v. 0.1.1) </span>
</h1>
<div class="main-menu">
<div class="top-tooltip hidden"></div>
<button class="tool-view" data-trigger="InstructionsButton:click" data-title="Tutorial"><i class="fa fa-question-circle"></i> </button>
<button class="tool-view user" data-trigger="LoginButton:click" data-title="Login"><i class="fa fa-user"></i> </button>
<button class="tool-view" data-trigger="SocialButton:click" data-title="Social"><i class="fa fa-thumbs-up"></i></button>
<a class="tool-view btn" target="_blank" data-title="Feedback <i class='fa fa-external-link'></i>" href="mailto:[email protected]"><i class="fa fa-comments"></i></a>
</div>
</nav>
<aside class="side-bar">
<div class="side-tooltip hidden"></div>
<button class="tool-view" data-trigger="EditWidthButton:click" data-title="Edit Viewports"><i class="fa fa-desktop"></i> </button>
<button class="tool-view" data-trigger="NewElementButton:click" data-title="New Element"><i class="fa fa-plus"></i> </button>
<button class="tool-view" data-trigger="ElementsOverviewButton:click" data-title="Sort Elements"><i class="fa fa-sort-amount-desc"></i></button>
<button class="tool-view" data-trigger="ExportCodeButton:click" data-title="Export To HTML/CSS"><i class="fa fa-code"></i></button>
<button class="tool-view" data-trigger="SaveLayoutButton:click" data-title="Save Layout"><i class="fa fa-cloud"></i> </button>
</aside>
<div class="container no-select">
<div id="sizes">
</div>
<div class="main-view">
</div>
</div>
<div class="elements-overview no-select hidden">
<div class="handle">
<button class="close"><i class="fa fa-times"></i></button>
<h3> Order or Disable Elements </h3>
</div>
<div class="overview-content">
<p class="help hidden"> Here you can order the element layers (think like PS layer order) for a particular view. <br/>
<strong> Also, you can disable elements for a particular view, simply drag the element to the disabled section</strong> </p>
<h4>Visible</h4>
<ul id="overviewVisible" class="overview-list">
<!-- Visible Element Overview goes in here -->
</ul>
<h4>Disabled</h4>
<ul id="overviewDisable" class="overview-list">
</ul>
</div>
</div>
<div class="notification">
</div>
<!-- Overlays -->
<div class="element-overlay hidden overlay">
<button class="close no-select">Cancel (or Click Anywhere)</button>
<span class="instructions"> Draw Anywhere to Create Element </span>
<div class="hidden shadow-element" style="position: absolute; width: 1px; height: 1px;"></div>
</div>
<div class="instruction-overlay hidden overlay">
<div class="window">
<button class="close"><i class="fa fa-times"></i></button>
<div class="content">
<div class="pane pane-0 hidden">
<h3 class="instruction-title">Welcome!</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step0.png" alt="different types of views"/></div>
<div class="instruction-message">Thank you for using RWD Wireframe. <br><br> This tool is made so designers can more easily design for responsive web pages. It's completely free and <a target="_blank" href="https://github.com/howlowck/rwdwire">open source</a>. <br><br> This tutorial will give you a walkthrough how to use this app.</div>
</div>
</div>
<div class="pane pane-1 hidden">
<h3 class="instruction-title">Edit viewports</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step1.png" alt="different devices equals different dimensions"/></div>
<div class="instruction-message">Viewports are the different dimensions to your web page. They simulate the devices you want to design for. <br><br> To edit the viewports, click on "Edit Viewports" in the menu. There you can edit the dimensions of the devices you want to simulate.</div>
</div>
</div>
<div class="pane pane-2 hidden">
<h3 class="instruction-title">Edit Elements</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step2.png" alt="Elements"/></div>
<div class="instruction-message">The Elements are "regions" in your viewports. <br><br>You can drag to move the elements, and you can resize the elements by moving the edges. When you <strong>Double Click</strong> on any of the elements, you can edit the content and other attributes.</div>
</div>
</div>
<div class="pane pane-3 hidden">
<h3 class="instruction-title">Add New Elements</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step3.png" alt="Creating an element"/></div>
<div class="instruction-message">To add a new elements, simply click "New Element" and draw on the screen from the upper left to the lower right. You'll be immediately prompted to input the element information.</div>
</div>
</div>
<div class="pane pane-4 hidden">
<h3 class="instruction-title">Order or Disable Elements</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step4.png" alt="Element layers"/></div>
<div class="instruction-message">For more complex designs, you might need to order the element in layers or disable elements in certain views. <br><br> In the sidebar on the left, you'll find this <i class="fa fa-sort-by-attributes-alt"></i> icon. From the dialogue box, you can simply drag and drop the elements to order or disable. (For developers, it's simply done using zindex.)</div>
</div>
</div>
<div class="pane pane-5 hidden">
<h3 class="instruction-title">Change View</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step5.png" alt="Change Views"/></div>
<div class="instruction-message">After you are done designing a view, you can click on the viewport bar to resize the viewport, and design the elements on that view.<br/><br> Everytime you change the view, it will save the element settings you have made for that view. Simply click back to see the elements move back to its proper positions.</div>
</div>
</div>
<div class="pane pane-6 hidden">
<h3 class="instruction-title">Save Your Layout</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step6.png" alt="Saving layout"/></div>
<div class="instruction-message">After you are done, simply login or register, and save your layout. You can view all your projects when you click "User Info"</div>
</div>
</div>
<div class="pane pane-7 hidden">
<h3 class="instruction-title">Share Your Layout</h3>
<div class="instruction-content">
<div class="instruction-image"><img src="public/img/step7.png" alt="Sharing layout"/></div>
<div class="instruction-message">Once your layout is saved, you can pass the url around for other people to see. </div>
</div>
</div>
</div>
<button class="btn-large next"><i class="fa fa-arrow-right"></i> Next</button>
</div>
</div>
<div class="user-overlay hidden overlay">
</div>
<div class="width-overlay hidden overlay"></div>
<div class="edit-overlay hidden overlay"></div>
<div class="export-overlay hidden overlay">
<div class="window">
<h3>HTML/CSS</h3>
<button class="close" title="close window"><i class="fa fa-times"></i></button>
<div class="notes">This is just a code skeleton meant to make web developers happy. </div>
<div class="html">
<h4>HTML</h4>
<a id="raw-html" target="_blank" class="btn btn-small raw">View/Edit Raw</a>
<pre id="html-export" class="language-html">
<code>
</code>
</pre>
</div>
<div class="css">
<h4>CSS</h4>
<a id="raw-css" target="_blank" class="btn btn-small raw">View/Edit Raw</a>
<pre id="css-export" class="language-css">
<code>
</code>
</pre>
</div>
</div>
</div>
<div class="social-overlay hidden overlay">
<div class="window">
<button class="close"><i class="fa fa-times"></i></button>
<h3> Be Social!</h3><br>
<h4> Show Some Love <i class="fa fa-heart-empty"></i></h4>
<!-- Facebook like button -->
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.lifeishao.com/rwdwire">Tweet</a>
<br><a href="https://twitter.com/howlowck" class="twitter-follow-button" data-show-count="false">Follow Me</a>
<br><a data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.lifeishao.com%2Frwdwire&media=http%3A%2F%2Fwww.lifeishao.com%2Frwdwire%2Fpublic%2Fimg%2Fstep1.png&description=RWD%20Wireframes" data-pin-do="buttonPin" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a>
<br>
<div class="fb-like" data-send="false" data-width="100" data-show-faces="false"></div>
<br>
<h4> (Not really social, but...) </h4>
Help me get a SSL for the site...
<br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLj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6ietMwDQYJKoZIhvcNAQEBBQAEgYAv+uptHlPGuCoS5RRTZ2X0l7yzUI0sStQOKxQ55tRz0lRyN5FPoKOWKYJ+EIu/GaLFzwzjSSsJCtch5g62xYFpbjOFkKrn2QUTtlvHSfQMChYsKG/+vbqu3T/1vQKaGMUQi65AdwNlUtjozhmDrWkiPMGYoYgj9t5ODYp09sbvEQ==-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
<div>
<!-- Templates -->
<script id="widthViewTemp" type="text/template">
<span class="min"><%= xmin %>px </span>
<span class="max"><%= xmax %>px </span>
</script>
<script id="toolViewTemp" type="text/template">
<i title="<%=name%>" class="<%= iconClass %>"></i>
</script>
<script id="elementViewTemp" type="text/template">
<div class="content">
<%= content %>
</div>
</script>
<script id="loginOverlayTemp" type="text/template">
<div class="login-window window">
<button class="close"><i class="fa fa-times"></i></button>
<h3>Login</h3><br/>
<div id="loginError" class="error hidden"></div>
<form id="loginForm">
<label> Email: </label>
<input type="email" class="input input-large" name="email" id="inputEmail"><br/>
<label> Password: </label>
<input type="password" class="input input-large" name="password" id="inputPass"><br/>
<br/>
<button type="submit" id="loginSubmit" class="btn-large btn success"><i class="fa fa-check"></i> Login</button>
</form>
Or
<button id="registerButton" class="btn"><i class="fa fa-key"></i> Register </button>
<br/>
</div>
</script>
<script id="registerOverlayTemp" type="text/template">
<div class="register-window window">
<button class="close"><i class="fa fa-times"></i></button>
<h3>Register</h3><br/>
<div id="registerError" class="error hidden"></div>
<form id="registerForm">
<label> Email: </label>
<input type="email" class="input input-large" name="email" id="inputRegisterEmail"><br/>
<label> Password: </label>
<input type="password" class="input input-large" name="password" id="inputRegisterPass"><br/>
<label> Confirm Password: </label>
<input type="password" class="input input-large" name="vpassword" id="vinputRegisterPass"><br/><br/>
<button type="submit" class="btn-large"><i class="fa fa-check"></i> Submit </button>
</form>
</div>
</script>
<script id="userOverlayTemp" type="text/template">
<div class="window">
<button class="close"><i class="fa fa-times"></i></button>
<div class="error hidden"><i class="fa fa-times"></i></div>
<h3> Your Projects </h3>
<div class="projects">
It seems you have no saved projects yet.
</div>
<br/><br/>
<h3> To Sign off... </h3>
<p> Simply close this tab to sign off. It is that easy :) </p>
</div>
</script>
<script id="widthOverlayTemp" type="text/template">
<div class="window">
<h3>Edit Viewport Settings </h3>
<button class="close" title="close window"><i class="fa fa-times"></i></button>
<div class="notes"> Everything updates instanteously. So just change and close :) </div>
<div class="error hidden"><i class="fa fa-times"></i></div>
<div class="width-form-items">
<!-- The width items will be inserted here (see below) -->
</div>
<button class="add-width"><i class="fa fa-plus"></i> Add New Width</button>
</div>
</script>
<script id="widthFormItemTemp" type="text/template">
<div class="width-form-item" data-cid="<%= cid %>">
Width: <input type="text" value="<%= xmax %>" class="edit-width input" />
Height: <input type="text" value="<%=y%>" class="edit-height input"/> <br/>
Title: <input type="text" value="<%=title%>" class="edit-title input"/>
Color: <input type="color" value="<%=viewportColor%>" class="edit-vcolor"/> <br/>
<button class="remove-width danger" title="Remove This Width">Remove</button>
</div>
</script>
<script id="editElementItemTemp" type="text/template">
<div class="window">
<button class="close"><i class="fa fa-times"></i></button>
<h3>Edit Element</h3>
<p class="notes"> All the setting here, except for opacity, are persistent across all viewports.
<br/>
(In other words, once you change it, it will change in all viewports. But when you change opacity, it will only change for the current viewport.)
</p>
<br/>
<form id="editElementForm">
Label: <input type="text" class="input-name input" value="<%=name%>"/><br/>
<span class="top">Content: </span><br/>
<textarea name="element-content" class="input-content" ><%=content%></textarea>
<br/>
Background Color: <input class="input-bcolor" type="color" size="7" value="<%= bcolor %>">
Opacity: <input class="input-opacity input" type="text" value="<%= opacity %>" size="4"/>
<button class="remove-element danger" type="button"> <i class="fa fa-exclamation-sign"></i> Remove Element</button>
<br/>
<button class="cancel btn-large" type="button"> <i class="fa fa-arrow-circle-left"></i> Cancel </button>
<button class="save btn-large" type="submit"><i class="fa fa-save"></i> Save</button>
</form>
</div>
</script>
<script id="overviewElementItemTemp" type="text/template">
<li class="overview-element-item" id="<%=cid%>"><%= name %></li>
</script>
<script id="notificationItemTemp" type="text/template">
<div class="notification-item <%=className%>" title="Click to dismiss">
<div class="inner">
<h3><%=type%> </h3>
<%=message%>
</div>
</div>
</script>
<script id="resizableMarkers" type="text/template">
<div class="handle handle-drag"><i class="fa fa-move"></i></div>
<div class="handle handle-w">
<div class="marker marker-w"></div>
</div>
<div class="handle handle-e">
<div class="marker marker-e"></div>
</div>
<div class="handle handle-s">
<div class="marker marker-se"></div>
<div class="marker marker-s"></div>
</div>
<div class="element-resize-ghost hidden"></div>
</script>
<!--Social Plugins -->
<script>
function postToFeedApp(){
FB.ui(
{
method: 'feed',
name: 'RWD Wireframes',
link: 'http://www.lifeishao.com/rwdwire',
picture: 'http://www.lifeishao.com/rwdwire/public/img/step' + Math.round(Math.random()*7) + '.png',
caption: 'Checkout this app!',
description: 'An app that makes responsive design easy for designers'
},
function(response) {
if (response && response.post_id) {
$("#AppShare").html("(Posted)").addClass("disable").attr("disabled","");
} else {
alert('Post was not published.');
}
}
);
}
function postToFeedLayout(){
FB.ui(
{
method: 'feed',
name: 'My RWD Wireframes',
link: (function(){
return document.URL;
}()),
picture: 'http://www.lifeishao.com/rwdwire/public/img/step' + Math.round(Math.random()*7) + '.png',
caption: 'Look what I made!',
description: 'I made a responsive wireframe!'
},
function(response) {
if (response && response.post_id) {
$("#LayoutShare").html("(Posted)").addClass("disable").attr("disabled","");
} else {
alert('Post was not published.');
}
}
);
}
</script>
<!-- Facebook SDK Initialization -->
<div id="fb-root"></div>
<script src="public/js/facebook-init.js"></script>
<!-- End of facebook SDK -->
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!--Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32998844-1']);
_gaq.push(['_setDomainName', 'lifeishao.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>