VersaWhiteboard/public/index.html

99 lines
4.4 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>
<!--- JS References -!-->
<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
2018-09-08 19:15:23 +02:00
<script type="text/javascript" src="./js/jquery-ui.min.js"></script>
<!--- for dragabbles -!-->
2018-02-08 17:45:07 +01:00
<script type="text/javascript" src="./js/socketio2.0.4.min.js"></script>
2018-02-08 20:04:13 +01:00
<script type="text/javascript" src="./js/jqColorPicker.min.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">
2018-02-08 17:45:07 +01:00
<link href="./css/fontawesome-all.min.css" rel="stylesheet">
2018-02-08 20:04:13 +01:00
<link href="./css/main.css" rel="stylesheet">
2018-09-08 19:15:23 +02:00
2018-02-08 17:45:07 +01:00
</head>
2018-09-08 19:15:23 +02:00
2018-02-08 17:45:07 +01:00
<body style="position: relative; margin: 0px; height: 100vh; width: 100%; overflow: hidden;">
<!---Whiteboard container -!-->
2018-02-08 20:04:13 +01:00
<div style="height: 100vh; width: 100%;" id="whiteboardContainer"></div>
2018-02-08 17:45:07 +01:00
<!---Toolbar -!-->
2018-02-08 20:04:13 +01:00
<div style="position: absolute; top: 10px; left: 10px;">
<div class="btn-group">
<button id="whiteboardTrashBtn" title="Clears the whiteboard" type="button" class="whiteboardBtn">
2018-09-08 19:15:23 +02:00
<i class="fa fa-trash"></i>
</button>
<button id="whiteboardUndoBtn" title="Undo your last step" type="button" class="whiteboardBtn">
<i class="fa fa-undo"></i>
</button>
</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>
<button style="padding-bottom: 11px;" tool="recSelect" title="Select an area" type="button" class="whiteboardTool">
<img src="./img/dottedRec.png">
</button>
<button tool="pen" title="Take the pen" type="button" class="whiteboardTool active">
<i class="fa fa-pencil-alt"></i>
</button>
<button style="padding-bottom: 8px; padding-top: 7px;" tool="line" title="draw a line" type="button" class="whiteboardTool">
╱
</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
<div style="width: 190px; height: 44px; border: 1px solid green;" class="btn-group">
<img style="position: absolute; left: 11px; top: 16px; height:14px; width:130px;" src="./img/slider-background.svg">
2019-01-11 10:59:28 +01:00
<input title="Thickness" id="whiteboardThicknessSlider" style="position: absolute; left:9px; width: 130px; top: 15px;"
type="range" min="1" max="50" value="3">
2018-09-08 19:15:23 +02:00
<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>
</div>
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>
<i style="position: absolute; top: 3px; left: 2px; color: #000000; background: grey; 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; background: grey; 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>
<i style="position: absolute; top: 3px; left: 2px; color: #000000; font-size: 0.5em; " class="fas fa-upload"></i>
</button>
<button style="position: relative;" id="uploadJsonBtn" title="Load saved JSON to whiteboard" 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-upload"></i>
</button>
<input style="display:none;" id="myFile" type="file" />
2018-02-08 20:04:13 +01:00
</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>