-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
210 lines (184 loc) · 10.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!-- " NOT WANT " to be search engine optimized-->
<title>Codebase</title>
<link rel='icon' href='img/me.gif'>
<meta name="author" content="Nikhil Nayyar">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="main.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<!--socket-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.js"></script>
<!-- quill -->
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<!--ace-->
<script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<!--d3-->
<script src="https://d3js.org/d3.v3.min.js"></script>
<style>
.line {
fill: none;
stroke-linejoin: round;
stroke-linecap: round;
}
</style>
</head>
<body>
<div id='main' class="row vh-100 no-gutters">
<div class="col-8 border-right border-info row no-gutters">
<div class="col-12 p-2" style="height:10vh">
<h1 class="display-4" style="font-size: 6vh">Code~Base</h1>
</div>
<div class="col-12 row no-gutters" style="height:90vh; overflow: hidden">
<ul class="col-12 nav nav-tabs border-bottom border-info" id="myTab" role="tablist" style="height:42px">
<li class="nav-item">
<a class="nav-link active" id="mix-tab" data-toggle="tab" href="#mix" role="tab"
aria-controls="mix" aria-selected="true">mix</a>
</li>
<li class="nav-item">
<a class="nav-link" id="draw-tab" data-toggle="tab" href="#draw" role="tab" aria-controls="draw"
aria-selected="false">Draw</a>
</li>
<li class="nav-item">
<a class="nav-link" id="code-tab" data-toggle="tab" href="#code" role="tab" aria-controls="code"
aria-selected="false">code</a>
</li>
</ul>
<div class="col-12 tab-content" id="myTabContent" style="height:calc(90vh - 42px)">
<div class="tab-pane fade show active h-100" id="mix" role="tabpanel" aria-labelledby="mix-tab">
<div id="toolbar-container">
<div id="toolbar-container">
<span class="ql-formats">
<select class="ql-font"></select>
<select class="ql-size"></select>
</span>
<span class="ql-formats">
<button class="ql-bold"></button>
<button class="ql-italic"></button>
<button class="ql-underline"></button>
<button class="ql-strike"></button>
</span>
<span class="ql-formats">
<select class="ql-color"></select>
<select class="ql-background"></select>
</span>
<span class="ql-formats">
<button class="ql-script" value="sub"></button>
<button class="ql-script" value="super"></button>
</span>
<span class="ql-formats">
<button class="ql-header" value="1"></button>
<button class="ql-header" value="2"></button>
<button class="ql-blockquote"></button>
<button class="ql-code-block"></button>
</span>
<span class="ql-formats">
<button class="ql-list" value="ordered"></button>
<button class="ql-list" value="bullet"></button>
<button class="ql-indent" value="-1"></button>
<button class="ql-indent" value="+1"></button>
</span>
<span class="ql-formats">
<button class="ql-direction" value="rtl"></button>
<select class="ql-align"></select>
</span>
<span class="ql-formats">
<button class="ql-link"></button>
<button class="ql-image"></button>
<button class="ql-video"></button>
<button class="ql-formula"></button>
</span>
<span class="ql-formats">
<button class="ql-clean"></button>
</span>
</div>
</div>
<div id='editor'></div>
</div>
<div class="tab-pane fade h-100 d-row align-content-start no-gutters p-2 " id="draw"
role="tabpanel" aria-labelledby="draw-tab">
<div class="col-12 mb-2 d-flex align-items-center">
<button id="undo" class="btn btn-info btn-sm mr-2">Undo</button>
<button id="clear" class="btn btn-info btn-sm mr-2">Clear</button>
<button id="dashed" class="btn btn-info btn-sm mr-2">Dash-Line</button>
<input class="mr-2 bg-info border-0" id='colorInput' type="color">
<input type="range" class="form-control-range d-inline w-auto mr-2" id="formControlRange" value="3" min="1" max="10">
<label id='rangeLabel' for="formControlRange">Line: 3px</label>
</div>
<div class="col-12 w-100 border border-info overflow-auto" style="height:calc(100% - 31px - 8px)">
<svg id='svg-draw' style="width:1000px; height:1000px"></svg>
</div>
</div>
<div class="tab-pane fade h-100 "
id="code" role="tabpanel" aria-labelledby="code-tab">
<div class="row h-100 no-gutters align-content-start pt-1">
<div class="col-6">
<label for="code-theme">Theme:</label>
</div>
<div class="col-6">
<label for="code-document">Document:</label>
</div>
<div class="col-3">
<select id="code-theme" class="form-control">
<option>monokai</option>
<option>chrome</option>
<option>katzenmilch</option>
<option>ambiance</option>
<option>dracula</option>
<option>gruvbox</option>
<option>idle_fingers</option>
<option>merbivore_soft</option>
</select>
</div>
<div class="col-3 offset-md-3">
<select id="code-document" class="form-control">
<option>javascript</option>
<option>css</option>
<option>html</option>
</select>
</div>
<pre id='code-editor' class="col-12"></pre>
</div>
</div>
</div>
</div>
</div>
<div id='extras' class="col-4 row no-gutters">
<div class="col-12 border-bottom border-info p-2" style="height:40vh">
<h5>Share Screen
<button id="btn-iframe" class="btn btn-info btn-sm">Large</button>
</h5>
<iframe id='screen-iframe' src="https://dynamo-2.firebaseapp.com/source/webrtc/test.html"
frameborder="0"></iframe>
</div>
<div id="mario-chat" class="col-12 row no-gutters p-2" style="height:60vh">
<div id='msgs' class="col-12 align-self-start">
<h5 id='feedback'>Chat</h5>
<div id="output" class="overflow-auto">
</div>
</div>
<div id='chat-input' class="col-12 align-self-end">
<input id="handle" autocomplete="false" class="form-control text border-info text-info mb-2"
type="text" placeholder="Handle" />
<input id="message" autocomplete="false" class="form-control border-info text-info mb-2" type="text"
placeholder="Message" />
<button id="send" class="btn btn-info btn-block">Send</button>
</div>
</div>
</div>
</div>
<!--quill-->
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
<!--main-->
<script src="main.js"></script>
</body>
</html>