VersaWhiteboard/src/index.html

159 lines
6.3 KiB
HTML
Raw Normal View History

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-02-18 18:39:52 +01:00
2020-03-24 20:22:37 +01:00
<!--- jquery and dragabbles -!-->
<script type="text/javascript" src="./js/libs/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="./js/libs/jquery-ui.min.js"></script>
<!--- For icons -!-->
<script type="text/javascript" src="./js/libs/fontawseome5.8.1.min.js"></script>
<!--- Socket connection -!-->
<script type="text/javascript" src="./js/libs/socketio2.0.4.min.js"></script>
<!--- Colorpicker -!-->
<script type="text/javascript" src="./js/libs/jqColorPicker.min.js"></script>
<!--- For keybindings -!-->
<script type="text/javascript" src="./js/libs/keymage.min.js"></script>
2018-02-08 17:45:07 +01:00
2020-03-24 20:22:37 +01:00
<script type="text/javascript" src="./js/keybinds.js"></script>
2018-02-08 17:45:07 +01:00
<script type="text/javascript" src="./js/whiteboard.js"></script>
<script type="text/javascript" src="./js/main.js"></script>
<!--- CSS References -!-->
2018-02-08 20:04:13 +01:00
<link rel="stylesheet" href="./css/jquery-ui.min.css">
<link href="./css/main.css" rel="stylesheet">
2018-09-08 19:15:23 +02:00
2020-03-19 13:46:43 +01:00
<!--- Set width for Mobile Devices -!-->
2020-02-18 19:46:03 +01:00
<script>
//Set correct width height on mobile browsers
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
2020-03-19 13:46:43 +01:00
if (isChrome) {
2020-02-18 19:46:03 +01:00
$('head').append('<meta name="viewport" content="width=device-width, initial-scale=0.52, maximum-scale=1" />');
} else {
$('head').append('<meta name="viewport" content="width=1400" />');
}
</script>
2018-02-08 17:45:07 +01:00
</head>
2018-09-08 19:15:23 +02:00
<body>
2018-02-08 17:45:07 +01:00
<!---Whiteboard container -!-->
<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">
<button id="whiteboardTrashBtn" title="Clear the whiteboard" type="button" class="whiteboardBtn">
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;"
id="whiteboardTrashBtnConfirm" title="Confirm clear..." type="button" class="whiteboardBtn">
<i class="fa fa-check"></i>
</button>
2018-09-08 19:15:23 +02:00
<button id="whiteboardUndoBtn" title="Undo your last step" type="button" class="whiteboardBtn">
<i class="fa fa-undo"></i>
</button>
2020-04-17 19:47:19 +02:00
<button id="whiteboardRedoBtn" title="Redo your last undo" type="button" class="whiteboardBtn">
<i class="fa fa-redo"></i>
</button>
2018-09-08 19:15:23 +02:00
</div>
2018-02-08 20:04:13 +01:00
2018-09-08 19:15:23 +02:00
<div class="btn-group">
2018-02-08 20:04:13 +01:00
<button tool="mouse" title="Take the mouse" type="button" class="whiteboardTool">
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"
class="whiteboardTool">
2019-06-02 16:49:48 +02:00
<img src="./images/dottedRec.png">
2018-09-08 19:15:23 +02:00
</button>
<button tool="pen" title="Take the pen" type="button" class="whiteboardTool active">
<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"
2019-03-04 19:50:38 +01:00
class="whiteboardTool">
2018-09-08 19:15:23 +02:00
╱
</button>
<button tool="rect" title="draw a rectangle" type="button" class="whiteboardTool">
<i class="far fa-square"></i>
</button>
<button tool="circle" title="draw a circle" type="button" class="whiteboardTool">
<i class="far fa-circle"></i>
</button>
2019-01-11 15:58:58 +01:00
<button tool="text" title="write text" type="button" class="whiteboardTool">
<i class="fas fa-font"></i>
</button>
2018-09-08 19:15:23 +02:00
<button tool="eraser" title="take the eraser" type="button" class="whiteboardTool">
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
2019-06-01 13:42:40 +02:00
<div class="btn-group">
<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">
<div title="Colorpicker"
style="position: absolute; left: 155px; top: 10px; width: 26px; height: 23px; border-radius: 3px; overflow: hidden; border: 1px solid darkgrey;">
<div id="whiteboardColorpicker" value="#000000"
style="width: 40px; height: 35px; border: 0px; padding: 0px; position: relative; top: 0px; left: -5px;">
</div>
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
2018-02-08 20:04:13 +01:00
<div class="btn-group">
2018-09-08 19:15:23 +02:00
<button id="saveAsImageBtn" title="Save whiteboard as image" type="button" class="whiteboardBtn">
<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; "
2019-03-04 19:50:38 +01:00
class="fas fa-save"></i>
2018-09-08 19:15:23 +02:00
</button>
2019-07-01 13:15:11 +02:00
<button style="position: relative; display: none;" id="uploadWebDavBtn" title="Save whiteboard to webdav"
type="button" class="whiteboardBtn">
<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"
class="whiteboardBtn">
<i class="far fa-file-alt"></i>
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; "
class="fas fa-save"></i>
</button>
2018-02-08 23:16:28 +01:00
</div>
<div class="btn-group">
2018-09-08 19:15:23 +02:00
<button id="addImgToCanvasBtn" title="Upload Image to whiteboard" type="button" class="whiteboardBtn">
<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; "
class="fas fa-upload"></i>
2018-09-08 19:15:23 +02:00
</button>
2019-05-13 11:39:33 +02:00
2019-03-04 19:50:38 +01:00
<button style="position: relative;" id="uploadJsonBtn" title="Load saved JSON to whiteboard" type="button"
class="whiteboardBtn">
2019-05-13 11:39:33 +02:00
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; "
class="fas fa-upload"></i>
</button>
2019-05-13 11:39:33 +02:00
<input style="display:none;" id="myFile" type="file" />
2019-03-04 19:50:38 +01:00
<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>
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>