-
Notifications
You must be signed in to change notification settings - Fork 2
/
editor.html
238 lines (227 loc) · 7.94 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tutorializr · Editor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">
<meta name="description" content="Make your own HTML+CSS tutorial!">
<meta name="author" content="Maria Grazia Alastra">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="css/editor.css" rel="stylesheet" media="screen">
<link href="css/mediaqueries.css" rel="stylesheet" media="screen">
<link rel="shortcut icon" href="img/favicon.ico" />
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span4">
<!--Sidebar content-->
<h1 class="text-center">Title</h1>
<p class="text-center" id="progressbar">
<strong></strong>
</p>
<div class="progress progress-striped">
<div class="bar" style="width: 0%;"></div>
</div>
<div class="pagination pagination-centered">
<div class="btn-toolbar">
<div class="btn-group">
<button id="prev" class="btn btn-warning disabled">
<i class="icon-arrow-left icon-white icon-align-center"> </i>
</button>
<button id="next" class="btn btn-primary disabled">
<i class="icon-arrow-right icon-white"></i>
</button>
</div>
</div>
</div>
<p id="required">
Both fields are required.
</p>
<div id="donetext" class="alert alert-success">
<strong>Well done! Now insert the remaining code for this lesson.</strong>
</div>
<div id="doneall" class="alert alert-success">
<strong>Well done! Now you can move on <a href="#" class="next">to the next lesson!</a></strong>
</div>
<div id="alltutorialdone2" class="alert alert-success">
<strong>Well done! You have completed the tutorial!</strong>
</div>
<p class="text-center">
<strong>Insert the text for this lesson below:</strong>
</p>
<textarea id="lessontext"></textarea>
<p class="text-center">
<strong>Insert instructions about the assignment below:</strong>
</p>
<textarea id="assigntext"></textarea>
<div class="pagination pagination-centered">
<button id="savelesson" class="btn btn-primary">
Save lesson
</button>
</div>
</div>
<div class="span8" id="terminal">
<!--Body content-->
<ul class="nav nav-pills">
<li id="html" class="active">
<a href="#"><strong>HTML</strong></a>
</li>
<li id="css">
<a href="#"><strong>CSS</strong></a>
</li>
<li id="preview">
<a href="#"><strong>Preview</strong></a>
</li>
</ul>
<div id="code" contenteditable="true"></div>
<div id="start">
<div id="drop" class="text-center lead">
Drag your HTML file from desktop and drop it here, or click
inside this box to write code from scratch!
</div>
</div>
<iframe></iframe>
<div>
<button id="submit" class="btn btn-primary">
Save the solution
</button>
<button id="submit2" class="btn btn-primary">
Save the exercise
</button>
<button id="reset" class="btn btn-warning">
Reset
</button>
</div>
<div id="console">
<p>
First, insert the solution of the exercise, and then save.
You can preview the result by switching to the "Preview" tab!
</p>
<div id="done1" class="alert alert-success">
<strong>Well done! Now remove the code parts that students are supposed to add, and save again.</strong>
</div>
<div id="done2" class="alert alert-success">
<strong>Well done! All the code part is complete for this lesson!</strong>
</div>
<div id="finish" class="alert alert-success">
<strong>Well done! Now you can move on <a href="#" class="next">to the next lesson!</a></strong>
</div>
<div id="bad" class="alert alert-error">
<strong>Please insert some code</strong>
</div>
<div id="alltutorialdone" class="alert alert-success">
<strong>Well done! You have completed the tutorial!</strong>
</div>
</div>
</div>
<p class="text-right" style="margin-right:10px;">
<small>Created by Maria Grazia Alastra · <a href="https://github.com/MariagraziaAlastra/Tutorializr">GitHub</a>· 2013</small>
</p>
</div>
</div>
<!------------------------- Welcome Dialog --------------------------->
<div id="welcome" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<h2 id="myModalLabel" class="text-center">Welcome!</h2>
</div>
<div class="modal-body">
<p class="lead">
Are you ready to make your own HTML+CSS tutorial?
First, choose a cool title and the number of lessons:
</p>
<div id="notitle" class="alert alert-error">
<strong>Please insert a valid title</strong>
</div>
<div id="nonumber" class="alert alert-error">
<strong>Please insert a valid number of lessons</strong>
</div>
<div id="choosetitle">
<p class="lead">
Title:
</p>
<textarea id="title" class="lead"></textarea>
</div>
<div id="choosenumber">
<p class="lead">
Number of lessons:
</p>
<textarea id="number" class="lead"></textarea>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-large btn-success" id="titleset">
Done
</button>
</div>
</div>
<!------------------------- Completion Dialog -------------------------------->
<div id="finaldialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<h2 id="hooray" class="text-center">Hooray!</h2>
</div>
<div class="modal-body">
<p class="lead">
The source code of your tutorial is ready to be downloaded!
</p>
<p class="lead">
To test it, include the files in your website and access the page <strong>template.html</strong>.
</p>
<p class="lead">
Thank you for choosing Tutorializr!
</p>
<div class="modal-footer">
<a href="#" id="blob">
<button class="btn btn-large btn-success" id="download" href="#">
Download
</button> </a>
</div>
</div>
</div>
<!-------------------------------- Explanation Dialog ----------------------------->
<div id="seconddialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<h2 id="welldone" class="text-center">Well done!</h2>
</div>
<div class="modal-body">
<p class="lead">
Now follow these steps for each lesson:
</p>
<ul>
<li>
<h5>Insert the complete code (the solution) and click on "Save the solution"</h5>
</li>
<li>
<h5>Remove the code that students are supposed to add and click on "Save the exercise"</h5>
</li>
<li>
<h5>Insert the explanation and the instructions for the assignment, then click on "Save"</h5>
</li>
<li>
<h5>Click on the "next" button (or on the links) to set up the next lesson</h5>
</li>
<li>
<h5>Repeat until the tutorial is complete!</h5>
</li>
</ul>
<p class="lead">
Finally you will be able to download the source code. Have fun!
</p>
<div class="modal-footer">
<button class="btn btn-large btn-success" data-dismiss="modal" id="ok" href="#">
Ok
</button>
</div>
</div>
</div>
<script src="js/jszip.js"></script>
<script src="js/jszip-deflate.js"></script>
<script src="js/jszip-inflate.js"></script>
<script src="js/jszip-load.js"></script>
<script src="js/jquery.1.9.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/highlight.js"></script>
<script src="js/editor.js"></script>
</body>
</html>