-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
295 lines (269 loc) · 11.4 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
<!--
***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is Bespin.
The Initial Developer of the Original Code is Mozilla.
Portions created by the Initial Developer are Copyright (C) 2009
the Initial Developer. All Rights Reserved.
Contributor(s):
Bespin Team (bespin@mozilla.com)
***** END LICENSE BLOCK *****
-->
<!doctype html>
<html>
<head>
<title>Bespin » Code in the Cloud</title>
<link type="text/css" rel="stylesheet" href="css/index.css"/>
<!-- begin script tags -->
<script type="text/javascript">
var djConfig = { parseOnLoad: false, isDebug: false, debugAtAllCosts: false };
</script>
<script type="text/javascript" src="js/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("bespin.page.index.dependencies");
</script>
<!-- end script tags -->
</head>
<body>
<div id="loginpane">
<div id="version"></div>
<div id="not_logged_in" style="display: none;">
<form onsubmit="bespin.user.login(); return false;">
<input id="loginbutton" type="image" src="images/splash_btn_login.gif" tabindex="3">
<div id="login-holder"><span id="login_label"><a href="#" onclick="bespin.user.register.showForm();">Sign up</a>
or log in (lost <a href="#" onclick="bespin.user.register.showLostPassword();">password</a> or
<a href="#" onclick="bespin.user.register.showLostUsername();">username</a>?):</span>
<label for="username">Username: </label><input id="username" type="text" tabindex="1"> <label id="psw-label" for="password">Password: </label><input id="password" type="password" maxlength="20" tabindex="2"> <div id="status" style="display: none;"></div>
</div>
</form>
</div>
<div id="logged_in" style="display: none;">
<div>
Welcome back, <span id="display_username"></span>!
Go to the <a href="editor.html">editor</a> to start coding.
You can also <a href="#" onclick="bespin.user.logout()">logout</a>.
</div>
</div>
</div>
<div id="browser_not_compat" style="display: none;">
<div id="inner_browser_not_compat">
<h3>Browser compatibility</h3>
<div id="sorry_browser_text">
<img src="images/splash_browser_compat.png" style="float: left; padding: 6px; margin-top: 4px">
<p><em>We would love to have you try Bespin</em></p>
<p>Unfortunately, we are using exciting new technology in HTML 5 that only leading browsers have implemented.</p>
<p>This message is not shown to you because we flag a particular browser.</p>
<p>We are specifically testing for Canvas and the ability to draw text in Canvas. As soon as your current browser supports these technologies, Bespin will work.</p>
<p>We have successfully tested Bespin on <a href="http://apple.com/safari/">Safari 4</a> and <a href="http://getfirefox.com/">Firefox 3</a>, so try one of them!</p>
<center><img src="images/splash_browser_cancel.png" id="sorry_browser_cancel" onclick="bespin.user.utils.hideCenterPopup('browser_not_compat')"></center>
</div>
</div>
</div>
<div id="centerpopup" style="display:none;">
<div id="lost_password_form" class="register_form">
<div id="lost_title" class="register_title">
<p>Lost your password?</p>
</div>
<table>
<tbody>
<tr>
<td colspan="2" class="instructions">
An email with a password change link will be sent
to your registered email address.
</td>
<tr>
<th>Username:</th>
<td><input type="text" id="lost_password_username" onchange="bespin.user.register.checkUsername('lost_password');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="lost_password_username_error"></div>
</td>
</tr>
<tr>
<th> </th>
<th>
<input type="button" class="darkButton" value="< Cancel" onclick="bespin.user.register.hideLostPassword();"/>
<input type="button" class="darkButton" value="Get Email >" onclick="bespin.user.register.sendLostPassword();"/>
</th>
</tr>
<tr>
<td colspan="2"><div id="lost_password_register_error"></div></td>
</tr>
</tbody>
</table>
</div>
<div id="lost_username_form" class="register_form">
<div id="lost_title" class="register_title">
<p>Lost your username?</p>
</div>
<table>
<tbody>
<tr>
<td colspan="2" class="instructions">
An email with your username will be sent
to your email address.
</td>
<tr>
<th>Email:</th>
<td><input type="text" id="lost_username_email" onchange="bespin.user.register.checkEmail('lost_username');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="lost_username_email_error"></div>
</td>
</tr>
<tr>
<th> </th>
<th>
<input type="button" class="darkButton" value="< Cancel" onclick="bespin.user.register.hideLostUsername();"/>
<input type="button" class="darkButton" value="Get Username >" onclick="bespin.user.register.sendLostUsername();"/>
</th>
</tr>
<tr>
<td colspan="2"><div id="lost_username_register_error"></div></td>
</tr>
</tbody>
</table>
</div>
<div id="change_password_form" class="register_form">
<div class="register_title">
<p>Change Your Password</p>
</div>
<table>
<tbody>
<tr>
<th>Password:</th>
<td><input type="password" id="change_password_password" onchange="bespin.user.register.checkPassword('change_password');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="change_password_password_error"></div>
</td>
</tr>
<tr>
<th>Confirm Password:</th>
<td><input type="password" id="change_password_confirm" onchange="bespin.user.register.checkConfirm('change_password');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="change_password_confirm_error"></div>
</td>
</tr>
<tr>
<th> </th>
<th>
<input type="button" class="darkButton" value="< Cancel" onclick="bespin.user.register.hideChangePassword();"/>
<input type="button" class="darkButton" value="Save and Login >" onclick="bespin.user.register.sendChangePassword();"/>
</th>
</tr>
<tr>
<td colspan="2"><div id="change_password_register_error"></div></td>
</tr>
</tbody>
</table>
</div>
<div id="register_form" class="register_form">
<div id="register_title" class="register_title">
<p>Register for Bespin</p>
</div>
<table>
<tbody>
<tr>
<th>Username:</th>
<td><input type="text" id="register_username" onchange="bespin.user.register.checkUsername('register');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="register_username_error"></div>
</td>
</tr>
<tr>
<th>Password:</th>
<td><input type="password" id="register_password" onchange="bespin.user.register.checkPassword('register');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="register_password_error"></div>
</td>
</tr>
<tr>
<th>Confirm Password:</th>
<td><input type="password" id="register_confirm" onchange="bespin.user.register.checkConfirm('register');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="register_confirm_error"></div>
</td>
</tr>
<tr>
<th>Email:</th>
<td><input type="text" id="register_email" onchange="bespin.user.register.checkEmail('register');"/></td>
</tr>
<tr>
<td class="register_error" colspan="2">
<div id="register_email_error"></div>
</td>
</tr>
<tr>
<th> </th>
<th>
<input type="button" class="darkButton" value="< Cancel" onclick="bespin.user.register.cancel();"/>
<input type="button" class="darkButton" value="Register >" onclick="bespin.user.register.send();"/>
</th>
<td><div id="register_register_error"></div></td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="welcome" align="center">
<div id="logo"></div>
</div>
<div id="toolbar" align="center">Log in above to work on your projects, or select an option below.</div>
<div id="main" align="center">
<div id="usebespin">
<h2>Use Bespin</h2>
<img src="images/splash_icn_editnow.png" style="float: left; padding: 4px;">
<h3>Edit Open Source</h3>
<p>
Give us an open-source project name or a publicly accessible repository URL and we'll create a project for you.
</p>
<p>
<input type="text" size="10" id="vcsurl" style="width: 220px;" value="coming soon!" disabled>
<br>
<!-- <img src="images/splash_btn_editnow.png" align="right" style="padding-right: 16px"> -->
<br clear="all">
</p>
<img src="images/splash_icn_register.png" style="float: left; padding: 4px;">
<h3 style="padding-top: 12px;">Register for Bespin</h3>
<p>
No account? No problem! Click below to create an account. Registration is free.
<img src="images/splash_btn_register.png" align="right" onclick="bespin.user.register.showForm();" style="padding-right: 20px">
</p>
</div>
<div id="learnbespin">
<h2>Learn about Bespin</h2>
<h3>What is Bespin?</h3>
<p>Bespin is a Mozilla Labs experiment on how to build an extensible Web code editor using HTML 5 technology.</p>
<a href="http://vimeo.com/3195079"><img src="images/splash_video.png" border="0"></a>
<p>
<a href="http://labs.mozilla.com/projects/bespin/" style="padding-right: 10px;">Read more ></a>
<a href="http://groups.google.com/group/bespin">Participate ></a>
</p>
</div>
</div>
<br clear="all"/>
<div id="footer" align="center">© 2009 Mozilla. All rights reserved.</div>
<div id="overlay" style="display: none;"></div>
<canvas id="testcanvas" style="display: none"></canvas>
</body>
</html>