-
Notifications
You must be signed in to change notification settings - Fork 0
/
board.html
258 lines (244 loc) · 11.7 KB
/
board.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>mDraw</title>
<link rel="icon" href="/images/icon_16.png" type="image/png" sizes="16x16">
<link rel="icon" href="/images/icon_32.png" type="image/png" sizes="32x32">
<link rel="icon" href="/images/icon_64.png" type="image/png" sizes="64x64">
<link rel="icon" href="/images/icon_128.png" type="image/png" sizes="128x128">
<meta name="description" content="A shared whiteboard using HTML5 Canvas with server on socket.io and node.js"/>
<!-- Third Party CSS files -->
<link type="text/css" href="/stylesheets/thirdparty/newmat/jquery-ui-1.8.16.newmat.css" rel="stylesheet"/>
<link rel="stylesheet" href="/stylesheets/thirdparty/farbtastic/farbtastic.css" type="text/css"/>
<!-- mCustomScrollbar CSS files -->
<link rel="stylesheet" href="/stylesheets/thirdparty/mscrollbar/jquery.mCustomScrollbar.css" type="text/css"/>
<!-- Bootstrap CSS files -->
<link type="text/css" href="/stylesheets/thirdparty/bootstrap/bootstrap.css" rel="stylesheet"/>
<!-- Development CSS files -->
<link rel="stylesheet" href="/stylesheets/style.css"/>
<link rel="stylesheet" href="/stylesheets/board.css"/>
<!-- Third party JS libraries -->
</head>
<body id="_body">
<!-- for indicating that the board is getting loaded -->
<div id="loading" style="display:none;">
<h4>Loading</h4>
<img src="/images/spinner.gif" class="spinner" alt="Loading...">
</div>
<!-- for popup to show when user click's save button-->
<div id="blanket" style="display:none;">
<div id='closediv' style="position:absolute;"><a href="#" onclick="popup('popUpDiv', 'closediv' )">
Close </a></div>
</div>
<div id="popUpDiv" style="display:none;overflow:auto; width: 250px; height: 300px;padding:5px">
<button id="save-png">Save PNG</button>
<!--<button id="save-svg">Save SVG</button>-->
<span id="result"></span>
<div id="device-container">
<button id="done">Done Clipping</button>
</div>
</div>
<div id="helpDiv" style="display:none;overflow:scroll"></div>
<!-- end for popup -->
<div id='blank'></div>
<!-- start of outer div -->
<div id="outer">
<div id="leftdiv">
<div class='new-logo-cntr'><a href="/" ><div class='new-logo'></div></a></div>
<div id="accordion"></div>
</div>
<div id="containerDiv" style="display:none">
<div id="containerBody" style="visibility:hidden;">
<div id="canvasId" >
<canvas id="c" class="ui-corner-all"></canvas>
</div>
</div>
</div>
<div class="rightdiv">
<div class="top">
<!--<div class="user-image" id="userProfilePic"></div>-->
<div id="boardName" class="board-name">Whiteboard Name</div>
</div>
<div class="bottom">
<div id='friendsicon' class="menu-holder m-popover">
<div class="m-icon m-friends"></div>
<div class="m-label">Friends...</div>
<div class="m-submenu-list all">
<div>
<label id="myUserName">
My Name:
<input type="text">
</label>
</div>
<span class="menu-arrow"></span>
<ul class="menu-list">
<li><em>Home alone!</em></li>
</ul>
</div>
<div class="m-submenu-list notify">
<span class="menu-arrow"></span>
<ul class="menu-list"></ul>
</div>
</div>
<div class="menu-holder m-popover" data-action='showImage' id="showImageIcon">
<div class="m-icon m-save"></div>
<div class="m-label">Show Image</div>
<div class="m-submenu-list">
<span class="menu-arrow"></span>
<ul class="menu-list">
<li title="Show Raw Image" id="Raw" >Raw</li>
<li title="Clip to Conatiner" id="Clip" >Clip</li>
</ul>
</div>
</div>
<div class="menu-holder m-popover" id="editicon" data-action='edit' data-content="Edit..." title="Edit">
<div class="m-icon m-edit"></div>
<div class="m-label">Edit ...</div>
<div class="m-submenu-list">
<span class="menu-arrow"></span>
<ul class="menu-list">
<li title="Undo" id="Undo" class="disabled">Undo<span class="menu-shortcut">Ctrl+z</span></li>
<li title="Redo" id="Redo" class="disabled">Redo<span class="menu-shortcut">Ctrl+y</span></li>
</ul>
</div>
</div>
<div class="menu-holder m-popover" id="shareicon" data-action='share' data-content="Share..." title="Share">
<div class="m-icon m-share"></div>
<div class="m-label">Share ...</div>
<div class="m-submenu-list share-feature">
<!--<span class="menu-arrow"></span>-->
<div>
<h2>Share this board:</h2>
<label class="clearfix">
<span class="pull-left share-label">Link:</span>
<input id="share-link" class="pull-right" type="text" value="" ">
</label>
</div>
<br>
<div>
<label class="clearfix share-label">
<span class="pull-left">Embed URL:</span>
<input id="embed-url" class="pull-right" type="text" value="">
</label>
</div>
</div>
</div>
<div id='discussicon' class="menu-holder" data-action='discuss' >
<div class="m-icon m-discuss"></div>
<div class="m-label">Chat</div>
<div class="m-submenu-list dummy"></div>
<div class="m-submenu-list notify">
<span class="menu-arrow"></span>
<ul class="menu-list"></ul>
</div>
</div>
<div class="menu-holder" data-action='report' id="reporticon">
<div class="m-icon m-report"></div>
<div class="m-label">Report ...</div>
<div class="m-submenu-list">
<span class="menu-arrow"></span>
<ul class="menu-list">
<li title="LogIssue" id="LogIssue"><a href="http://github.com/Imaginea/matisse/issues" target="_blank" style="color:#666666">Log Issue</a></li>
<li title="ExportJson" id="ExportJson" >Export</li>
</ul>
</div>
</div>
<!--<div class="menu-holder" data-action='help'>-->
<!--<a href="http://imaginea.github.com/matisse/latest/help.html" target="_blank">-->
<!--<div class="m-icon m-help"></div>-->
<!--<div class="m-label">Help</div>-->
<!--</a>-->
<!--</div>-->
</div>
</div>
</div>
<div id="right" class="ui-widget-content">
<div id="texteditdiv" title="Text Editor">
<textarea id="textarea" rows="2"></textarea>
</div>
<div id="chatdialog" title="Chat">
<ul id="chattext"></ul>
<input type="text" id="chat" placeholder="Enter message..."/><br/>
<button id="chatbutton">Send</button>
</div>
<div id="propdiv" title="Properties"></div>
</div>
<div class="userInfoSec" style="display:none;">
<div class="u-uparrow"></div>
<div>
<div id="userProfilePicBig" class='userpic-big-sec'></div>
<div class='user-info-data'>
<div id='userName'>User Name</div>
<div><span>via</span> <span id="userLoginService">Matisse</span></div>
</div>
</div>
<div class="b-uinfo-links"><a href="/"><span class='b-backarrow'><<</span>Back to Home</a> <div class='rightFloater'><a href="/logout">Signout</a></div></div>
</div>
<div class="m-quick-edit">
<span class="prop_icon" title="properties"></span>
<span class="copy_icon" title="copy"></span>
<span class="del_icon" title="delete"></span>
</div>
<div class="m-quick-edit-group">
<div class="m-align-list">
<ul class="menu-list">
<span class="menu-arrow-top"></span>
<li title="Align Left" id="alignLeft">Align Left</li>
<li title="Align Right" id="alignRight">Align Right</li>
<li title="Align Center" id="alignCenter">Align Center</li>
<li title="Align Top" id="alignTop">Align Top</li>
<li title="Align Bottom" id="alignBottom">Align Bottom</li>
<li title="Distribute Vertically" id="distributeVertically">Distribute Vertically</li>
<li title="Distribute Horizontally" id="distributeHorizontally">Distribute Horizontally</li>
<li title="Make Same Width" id="makeSameWidth">Make Same Width</li>
<li title="Make Same Height" id="makeSameHeight">Make Same Height</li>
</ul>
</div>
<span class="prop_icon" title="align"></span>
<span class="copy_icon" title="copy"></span>
<span class="del_icon" title="delete"></span>
</div>
<div class="alert alert-info copy-alert inactive-alert">
<a class="close" data-dismiss="alert">×</a>
<strong>Item Copied!</strong>Now, click anywhere in the whiteboard to paste the item.
</div>
<div class="alert alert-error inactive-alert">
<a class="close" data-dismiss="alert">×</a>
<strong>Board Cannot be Found.</strong> You will now be redirected to the dashboard page!
</div>
<div class="alert alert-info clip-alert inactive-alert">
<a class="close" data-dismiss="alert">×</a>
<strong>Click and drag the conatiner to clip content!</strong>
</div>
<div class="alert alert-info shift-click-alert inactive-alert">
<strong>Matisse does not support shift selection use rectangle select</strong>
</div>
<!-- Start Including Script Files-->
<script src="/socket.io/socket.io.js"></script>
<script src="/javascripts/thirdparty/FileSaver.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script data-main="/javascripts/matisse/matisse.setup" src="/javascripts/thirdparty/require/require-jquery.js"
type="text/javascript"></script>
<script src="/javascripts/thirdparty/fabric/fabric_all.js"></script>
<script src="/javascripts/thirdparty/fabric/Delicious_500.font.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js" type="text/javascript"></script>
<!-- Bootstrap picker -->
<script type="text/javascript" src="/javascripts/thirdparty/bootstrap/bootstrap.min.js"></script>
<!-- Color picker -->
<script src="/javascripts/thirdparty/fabric/farbtastic.js" type="text/javascript"></script>
<!-- mCustomScrollbar JS files -->
<script src="/javascripts/thirdparty/jquery/jquery.mousewheel.min.js" type="text/javascript"></script>
<script src="/javascripts/thirdparty/mscrollbar/jquery.mCustomScrollbar.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$('#containerDiv').show();
$('#containerDiv').height($(window).height());
$('#loading').css('top',$(window).height()/2);
$('#loading').show();
});
</script>
<!-- End Including Script Files-->
<canvas id="clip" style="display:none;"></canvas>
</body>
</html>