2018-02-08 17:45:07 +01:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
|
2018-02-08 17:45:07 +01:00
|
|
|
|
<head>
|
|
|
|
|
<title>Whiteboard</title>
|
2020-03-19 13:46:43 +01:00
|
|
|
|
<meta charset="utf-8" />
|
2020-05-04 14:56:48 +02:00
|
|
|
|
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
|
2018-02-08 17:45:07 +01:00
|
|
|
|
</head>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
|
2020-03-20 17:29:20 +01:00
|
|
|
|
<body>
|
2018-02-08 17:45:07 +01:00
|
|
|
|
<!---Whiteboard container -!-->
|
2020-03-20 17:29:20 +01:00
|
|
|
|
<div id="whiteboardContainer"></div>
|
2018-02-08 17:45:07 +01:00
|
|
|
|
|
|
|
|
|
<!---Toolbar -!-->
|
2019-05-13 11:39:33 +02:00
|
|
|
|
<div id="toolbar" style="position: absolute; top: 10px; left: 10px;">
|
2018-02-08 20:04:13 +01:00
|
|
|
|
<div class="btn-group">
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button id="whiteboardLockBtn" style="background-color: orange;" title="View and Write" type="button">
|
|
|
|
|
<i class="fa fa-lock"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button id="whiteboardUnlockBtn" title="View Only" type="button">
|
|
|
|
|
<i class="fa fa-lock-open"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group whiteboard-edit-group">
|
|
|
|
|
<button id="whiteboardTrashBtn" title="Clear the whiteboard" type="button">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fa fa-trash"></i>
|
|
|
|
|
</button>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
<button style="position:absolute; left:0px; top:0px; width: 46px; display:none;"
|
2020-05-02 15:07:34 +02:00
|
|
|
|
id="whiteboardTrashBtnConfirm" title="Confirm clear..." type="button">
|
2019-02-11 14:09:21 +01:00
|
|
|
|
<i class="fa fa-check"></i>
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button id="whiteboardUndoBtn" title="Undo your last step" type="button">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fa fa-undo"></i>
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button id="whiteboardRedoBtn" title="Redo your last undo" type="button">
|
2020-04-17 19:47:19 +02:00
|
|
|
|
<i class="fa fa-redo"></i>
|
|
|
|
|
</button>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</div>
|
2018-02-08 20:04:13 +01:00
|
|
|
|
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<div class="btn-group whiteboard-edit-group">
|
|
|
|
|
<button tool="mouse" title="Take the mouse" type="button" class="whiteboard-tool">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fa fa-mouse-pointer"></i>
|
|
|
|
|
</button>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
<button style="padding-bottom: 11px;" tool="recSelect" title="Select an area" type="button"
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="whiteboard-tool">
|
2019-06-02 16:49:48 +02:00
|
|
|
|
<img src="./images/dottedRec.png">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button tool="pen" title="Take the pen" type="button" class="whiteboard-tool active">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fa fa-pencil-alt"></i>
|
|
|
|
|
</button>
|
2019-05-21 11:58:02 +02:00
|
|
|
|
<button style="padding-bottom: 8px; padding-top: 6px;" tool="line" title="draw a line" type="button"
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="whiteboard-tool">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
╱
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button tool="rect" title="draw a rectangle" type="button" class="whiteboard-tool">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="far fa-square"></i>
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button tool="circle" title="draw a circle" type="button" class="whiteboard-tool">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="far fa-circle"></i>
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button tool="text" title="write text" type="button" class="whiteboard-tool">
|
2019-01-11 15:58:58 +01:00
|
|
|
|
<i class="fas fa-font"></i>
|
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button tool="eraser" title="take the eraser" type="button" class="whiteboard-tool">
|
2019-01-11 10:59:28 +01:00
|
|
|
|
<i class="fa fa-eraser"></i>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2018-02-08 20:04:13 +01:00
|
|
|
|
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<div class="btn-group whiteboard-edit-group">
|
2019-06-01 13:42:40 +02:00
|
|
|
|
<button style="width: 190px; cursor:default;">
|
|
|
|
|
<div class="activeToolIcon" style="position:absolute; top:2px; left:2px; font-size: 0.6em;"><i
|
|
|
|
|
class="fa fa-pencil-alt"></i></div>
|
|
|
|
|
<img style="position: absolute; left: 11px; top: 16px; height:14px; width:130px;"
|
2019-06-02 16:49:48 +02:00
|
|
|
|
src="./images/slider-background.svg">
|
2019-06-01 13:42:40 +02:00
|
|
|
|
<input title="Thickness" id="whiteboardThicknessSlider"
|
|
|
|
|
style="position: absolute; left:9px; width: 130px; top: 15px;" type="range" min="1" max="50"
|
|
|
|
|
value="3">
|
2020-04-19 16:49:39 +02:00
|
|
|
|
<div id="whiteboardColorpicker"
|
|
|
|
|
style="position: absolute; left: 155px; top: 10px; width: 26px; height: 23px; border-radius: 3px; border: 1px solid darkgrey;"
|
|
|
|
|
data-color="#000000">
|
2019-03-04 19:50:38 +01:00
|
|
|
|
</div>
|
2019-06-01 13:42:40 +02:00
|
|
|
|
</button>
|
2018-02-08 20:04:13 +01:00
|
|
|
|
</div>
|
2018-02-08 17:45:07 +01:00
|
|
|
|
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<div class="btn-group whiteboard-edit-group">
|
|
|
|
|
<button id="addImgToCanvasBtn" title="Upload Image to whiteboard" type="button">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fas fa-image"></i>
|
2019-05-07 22:59:20 +02:00
|
|
|
|
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="fas fa-upload"></i>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</button>
|
2019-07-01 13:15:11 +02:00
|
|
|
|
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button style="position: relative;" id="uploadJsonBtn" title="Load saved JSON to whiteboard" type="button">
|
2020-04-10 13:58:22 +02:00
|
|
|
|
<i class="far fa-file-alt"></i>
|
|
|
|
|
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="fas fa-upload"></i>
|
2020-04-10 13:58:22 +02:00
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
|
|
|
|
|
<input style="display:none;" id="myFile" type="file" />
|
2018-02-08 23:16:28 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group">
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button id="saveAsImageBtn" title="Save whiteboard as image" type="button">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="fas fa-image"></i>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="fas fa-save"></i>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</button>
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<button style="position: relative; display: none;" id="uploadWebDavBtn" title="Save whiteboard to webdav"
|
|
|
|
|
type="button">
|
2019-05-13 11:39:33 +02:00
|
|
|
|
|
2020-05-02 15:07:34 +02:00
|
|
|
|
<i class="fas fa-globe"></i>
|
|
|
|
|
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
|
|
|
|
|
class="fas fa-save"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button style="position: relative;" id="saveAsJSONBtn" title="Save whiteboard as JSON" type="button">
|
2018-09-08 19:15:23 +02:00
|
|
|
|
<i class="far fa-file-alt"></i>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
|
2020-05-02 15:07:34 +02:00
|
|
|
|
class="fas fa-save"></i>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<button id="shareWhiteboardBtn" title="share whiteboard" type="button">
|
|
|
|
|
<i class="fas fa-share-square"></i>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
</button>
|
2018-02-08 20:04:13 +01:00
|
|
|
|
</div>
|
2019-03-04 19:50:38 +01:00
|
|
|
|
|
2019-05-13 11:39:33 +02:00
|
|
|
|
<div class="btn-group minGroup">
|
|
|
|
|
<button style="width: 25px; padding: 11px 11px;" id="minMaxBtn" title="hide buttons" type="button">
|
|
|
|
|
<i id="minBtn" style="position:relative; left:-5px;" class="fas fa-angle-left"></i>
|
|
|
|
|
<i id="maxBtn" style="position:relative; left:-5px; display: none;" class="fas fa-angle-right"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2020-04-19 16:32:30 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
2020-05-09 15:09:54 +02:00
|
|
|
|
<div style="position: absolute; bottom: 10px; right: 10px; display:none;">
|
2020-05-02 12:59:03 +02:00
|
|
|
|
<p># msg. sent to server: <i id="messageSentCount">0</i></p>
|
|
|
|
|
<p># msg. received from server: <i id="messageReceivedCount">0</i></p>
|
|
|
|
|
</div>
|
2018-02-08 17:45:07 +01:00
|
|
|
|
</body>
|
2018-09-08 19:15:23 +02:00
|
|
|
|
|
2018-02-08 17:45:07 +01:00
|
|
|
|
</html>
|