forked from kamo/exquisite-branch
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
HTML
63 lines
1.6 KiB
HTML
3 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<title>Draw</title>
|
||
|
|
||
|
<script src="{{url_for('static', filename='js/draw.js')}}" defer></script>
|
||
|
|
||
|
<link rel="stylesheet" href="{{url_for('static', filename='css/draw.css')}}" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Draw</h1>
|
||
|
<div id="divSmoothingFactor">
|
||
|
<label for="cmbBufferSize">Buffer size:</label>
|
||
|
<select id="cmbBufferSize">
|
||
|
<option value="1">1 - No smoothing</option>
|
||
|
<option value="4">4 - Sharp curves</option>
|
||
|
<option value="8" selected="selected">8 - Smooth curves</option>
|
||
|
<option value="12">12 - Very smooth curves</option>
|
||
|
<option value="16">16 - Super smooth curves</option>
|
||
|
<option value="20">20 - Hyper smooth curves</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
<svg
|
||
|
xmlns="http://www.w3.org/2000/svg"
|
||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||
|
version="1.1"
|
||
|
id="svgElement"
|
||
|
x="0px"
|
||
|
y="0px"
|
||
|
width="600px"
|
||
|
height="400px"
|
||
|
viewBox="0 0 600 400"
|
||
|
enable-background="new 0 0 600 400"
|
||
|
xml:space="preserve"
|
||
|
data-parent="{{parent or None}}"
|
||
|
data-branch="{{branch}}"
|
||
|
></svg>
|
||
|
|
||
|
<button id="send">Send</button>
|
||
|
|
||
|
<h2>Previous content</h2>
|
||
|
|
||
|
{% if content %} {{content}} {% endif %}
|
||
|
|
||
|
<h2>Parent</h2>
|
||
|
|
||
|
{%if parent %} {{parent}} {%endif %}
|
||
|
|
||
|
<h2>Branch</h2>
|
||
|
{%if branch %} {{branch}} {%endif %}`
|
||
|
|
||
|
<form class="canvas" method="POST">
|
||
|
<input type="text" name="content" />
|
||
|
<input type="hidden" name="branch" value="{{branch}}" />
|
||
|
<input type="submit" />
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|