-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathworkspace.html
313 lines (251 loc) · 9.44 KB
/
workspace.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PairIT</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le styles -->
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="../assets/css/darkstrap.css" rel="stylesheet">
<link href="../assets/css/style.css" rel="stylesheet">
<link rel="stylesheet" href="../assets/lib/codemirror.css">
<link href="../assets/css/monokai.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="../assets/js/jquery.js"></script>
<script src="../assets/js/bootstrap-dropdown.js"></script>
<script src="../assets/js/bootstrap-modal.js"></script>
<script src="../assets/js/bootstrap-alert.js"></script>
<script src="../assets/js/bootstrap-tooltip.js"></script>
<script src="../assets/lib/codemirror.js"></script>
<script src="../assets/mode/python/python.js"></script>
<script src="../assets/mode/javascript/javascript.js"></script>
<script src="../assets/mode/go/go.js"></script>
<script src="../assets/mode/mysql/mysql.js"></script>
<script src="../assets/mode/ruby/ruby.js"></script>
<script src="../assets/js/code.js"></script>
<script src="../assets/js/switch_language.js"></script>
<script src="../assets/js/download_file.js"></script>
<script src="/socket.io/socket.io.js"></script>
</head>
<body>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 id="myModalLabel">Please enter your name</h4>
</div>
<div class="modal-body">
<script type="text/javascript">
$("[rel=tooltip]").tooltip();
</script>
<form id="nameform" action="name_send" method="POST">
<input name="userName" class="well" id="username" placeholder="Your name goes here"/>
<input type="submit" class="btn btn-large btn-primary" value="Start"/>
</form>
</div>
<div class="modal-footer">
</div>
</div>
<div id="upload_gist" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 id="myModalLabel">GIST</h4>
</div>
<div class="modal-body">
<form id="download_gist" action="#" method="POST">
<input name="filename" class="well" id="filename" placeholder="Your filename goes here"/>
</br>
<input name="description" class="well" id="description" placeholder="Your description goes here"/>
<input type="submit" class="btn btn-large btn-primary" value="Get gist Link"/>
</form>
</div>
<div class="modal-footer">
</div>
</div>
<div id="gist_url_div" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 id="myModalLabel">GIST</h4>
</div>
<div class="modal-body">
<p id="gist_url" class="well"></p>
</div>
</div>
<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li>
<a href="../index.html">Home</a>
</li>
<li>
<a href="../about.html">About</a>
</li>
</ul>
<h3 class="muted">Pair<span style="color: #f92672;">IT</span></h3>
</div>
<hr>
<div class="row-fluid">
<!-- jumbotron well editorspace -->
<div class="span8 well" id="editorspace">
<div id="nav">
<ul class="nav nav-pills" style="float: left;">
<li class="dropdown active">
<a class='dropdown-toggle' data-toggle="dropdown" id="current_language"> Language <b class="caret"></b> </a>
<ul class="dropdown-menu" id="language_list">
</ul>
</li>
<li class="active">
<a href="#" id="runlint">Check Syntax</a>
</li>
</ul>
<div id="role" style="float: right;">
<span style="font-variant: small-caps;">Mode</span>: <span id="currentrole"> </span>
</div>
<div class="clear"></div>
</div>
<textarea id="code"></textarea>
</div>
<div class="span4 well" id="chatspace">
<div id="chatarea">
<h5 id="chatTxt" style="text-align:center;">Chat</h5>
<div id="chatmsg" class="breadcrumb"></div>
<br/>
<form id="chatsend" action="chat_send" method="POST">
<input type="text" class="" name="msg" id="msg" placeholder="Enter your message" autocomplete="off"/>
<div style="text-align: right; margin-right: 10px;">
<input type="submit" class="btn btn-medium btn-success" value="Send"/>
</div>
</form>
</div>
<div id="userlist">
<center>
<h5>Users</h5>
</center>
<ul style="text-align:center;" class="unstyled" id="listusers"></ul>
</div>
</div>
</div>
<div id="alertMsg"></div>
<form id="switchpartner" class="pagination-centered" action="switch_partner" method="POST">
<!--<input class="input-xlarge" id="name_input" name="username" type="text" placeholder="Enter your name"/>-->
<br/>
<br/>
<input type="submit" class="btn btn-medium btn-success" value="Switch"/>
</form>
<hr>
<div class="row-fluid">
<div class="span4" style="text-align: center;">
<h4>Import an existing file</h4>
<br/>
<form id="uploadDummyForm" action="upload dummy" method="post">
<input type="submit" id="uploadModalButton" class="btn btn-medium btn-primary" value="Upload"/>
</form>
<div id="uploadModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="uploadModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 id="uploadModalLabel">Upload a file</h4>
</div>
<div class="modal-body">
<form action="" id="uploadForm" enctype="multipart/form-data" method="post">
<input type="file" id="files" name="files[]" multiple />
<input type="submit" class="btn btn-medium btn-primary" value="Upload File" />
</form>
</div>
<div class="modal-footer"></div>
</div>
</div>
<div class="span4" style="text-align: center;">
<h4>Invite someone</h4>
<br/>
<form id="inviteDummyForm" action="invite dummy" method="post">
<input type="submit" id="inviteModalButton" class="btn btn-medium btn-primary" value="Email session link"/>
</form>
<div id="inviteModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="inviteModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 id="inviteModalLabel">Invite a friend</h4>
</div>
<div class="modal-body">
<form target="_blank" action="/emailer" id="inviteForm" method="post">
<div class="control-group">
<div class="controls">
<input id="link" type="hidden" name="Language" value="">
<input name="email" type="text" id="input01" class="input-xlarge">
<input type="submit" class="btn btn-medium btn-primary" value="Send " />
<p class="help-block">
Enter emails seperated by comma's
</p>
</div>
</div>
</form>
</div>
<div class="modal-footer"></div>
</div>
</div>
<div class="span4" style="text-align: center;">
<h4>Share/Export your code</h4>
<br/>
<div class="btn-group">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
Export to
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a id="download_raw" href="#">Raw</a>
</li>
<li>
<a href="#upload_gist" role="button" class="btn" data-toggle="modal">Gist</a>
</li>
</ul>
</div>
</div>
</div>
<!--<div class="row-fluid marketing">
<div class="span6">
<h4>Fast.</h4>
<p>No registration. Create a new session and share the link, we'll bring it live.</p>
<h4>Communicate.</h4>
<p>Live video chat to communicate with your partner.</p>
<h4>Just like an IDE.</h4>
<p>On the fly syntax highlighting; code checker that notifies you of glitches.</p>
</div>
<div class="span6">
<h4>Pair programming</h4>
<p>Switch between the driver and navigator modes anytime.</p>
<h4>Show it.</h4>
<p>Add spectators to the pair session.</p>
<h4>Share.</h4>
<p>When you're done, share the code on gist/github.</p>
</div>
</div>-->
<hr>
<div id="footer">
<div class="container">
<p class="muted credit">
Powered by: <a href="#">ufowam</a>; <a href="#">ayrus</a> and <a href="#">arods</a>.
</p>
</div>
</div>
<div id="hiddenRawForm" style="display: none;">
<form id="rawForm" target="_blank" method="post" action="../download">
<input type="hidden" name="content" id="filecontents"/>
</form>
</div>
</div>
</body>
</html>