You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
6.3 KiB

2 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdn.socket.io/4.4.1/socket.io.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js" type="text/javascript"></script>
<script src="data/scripts/init.js" type="text/javascript"></script>
<script src="data/scripts/events.js" type="text/javascript"></script>
<script src="data/scripts/online.js" type="text/javascript"></script>
<script src="data/scripts/drawer.js" type="text/javascript"></script>
<script src="data/scripts/minimap.js" type="text/javascript"></script>
<link href="styles.css" rel="stylesheet">
<link href="data/styles/color_picker.css" rel="stylesheet">
<link href="data/styles/range_input.css" rel="stylesheet">
<link href="data/images/favicon.ico" rel="icon" type="image/x-icon">
<title>Global Draw</title>
</head>
<body>
<div id="p5_loading"></div>
<div id="content">
<div id="interface">
<div id="color_picker">
<div id="saturation">
<div id="value">
<div id="sb_picker"></div>
</div>
</div>
<div id="hue">
<div id="hue_picker"></div>
</div>
</div>
<div id="color_picker_numeric_holder">
<div id="color_picker_numeric">
<div id="color_picker_rgb">
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
</div>
<div id="color_picker_hsv">
<input max="360" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
<input max="100" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
<input max="100" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
</div>
<input id="color_picker_hex" onchange="colorPicker.updateFromHEX(this, false)" style="background-color: #000000;" style="background-color: #000000;" type="text"/>
<div id="color_picker_final"></div>
</div>
</div>
<div id="used_colors">
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
<button class="used_color" onclick="colorPicker.setFromUsed(this)"></button>
</div>
<button id="get_color" onclick="startCopyColor();">Pick color from screen</button>
<div id="free_settings">
<div id="thickness_holder">
<input id="thickness" max="25" min="1" oninput="updateThicknessPreview();" type="range" value="2"/>
<div id="thickness_preview_holder">
<div id="thickness_preview"></div>
</div>
</div>
</div>
<div id="pixel_settings">
<span>Grid Toggle: [</span><span id="grid_hotkey"></span><span>]</span>
<button id="set_hotkey" onclick="setGridHotkey(this);">Change</button>
</div>
<div id="minimap">
</div>
<form id="draw_type">
<label>
<input checked name="type" type="radio" value="free">
Draw Freely
</label>
<br>
<label>
<input name="type" type="radio" value="pixel">
Pixel Art
</label>
</form>
<button id="server_save" onclick="drawer.requestServerSave(this);">Server save</button>
<span id="server_answer" style="display: none;">Drawings saved!</span>
<button id="start_user_feedback" onclick="$('#user_feedback').show(); givesFeedback = true;">Feedback</button>
</div>
<div id="canvas-holder"></div>
<div id="loading_drawings">
<span id="action">Connecting...</span>
<div id="loading_maps" style="display: none;">
<div id="pixels_map_holder"></div>
<div id="lines_map_holder"></div>
</div>
<progress max="100" style="display: none;" value="100"></progress>
<br>
<button id="skip_drawing" onclick="if (drawer) drawer.skipDrawing(this)" style="display: none;">Skip Drawing</button>
<br>
<span id="warning" style="display: none;">Warning: Do not click this unless you have a proper Graphic Processor!</span>
</div>
<div id="user_feedback" style="display: none;">
<span>Write me feedback!</span>
<textarea cols="50" rows="10"></textarea>
<button onclick="sendFeedback();$('#user_feedback').hide();givesFeedback = false;">Submit</button>
<button onclick="$('#user_feedback').hide(); givesFeedback = false;">Cancel</button>
</div>
</div>
</body>
</html>