forked from charyan/nsdmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (91 loc) · 4.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NSD-Maker</title>
<link rel="stylesheet" href="res/styles.css">
<script src='js/panzoom/panzoom.min.js'></script>
<script src='js/html2canvas.min.js'></script>
</head>
<body>
<div class="menu">
<button title="CTRL-O" onclick="upload();">Open</button>
<button title="CTRL-S" onclick="save();">Save</button>
<button title="CTRL-P" onclick="printContent();">Print</button>
<button title="DEL" onclick="removeElement();">Delete</button>
<button title="CTRL-A" onclick="centerCanvas();">Center canvas</button>
<button title="CTRL-Z" onclick="undo();">Undo</button>
<button title="CTRL-Y" onclick="redo();">Redo</button>
<button title="CTRL-E" id="png" onclick="getImage();">Export PNG</button>
<button title="CTRL-DEL" onclick="clearCanvas();">Clear</button>
</div>
<div id="canvas">
<div id="rblock" class="dblock program">
<textarea rows="1" placeholder="Programm" ondrop="return false;" oninput="textareaResize(event);"></textarea>
<div class="droparea drop-before-end" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
</div>
</div>
<div id="sidebar">
<h2>Anweisung</h2>
<div class="dblock process" draggable="true" ondragstart="drag(event)">
<div class="droparea drop-before-begin" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
<textarea rows="1" placeholder="Anweisung" ondrop="return false;" oninput="textareaResize(event);"
ondragstart="return false;" onfocusin="disableDraggableParent(event);"
onfocusout="enableDraggableParent(event);"></textarea>
</div>
<h2>Bedingung</h2>
<div class="dblock decision decision-two" draggable="true" ondragstart="drag(event)">
<div class="droparea drop-before-begin" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
<textarea rows="1" placeholder="Bedingung" ondrop="return false;" oninput="textareaResize(event);"
ondragstart="return false;" onfocusin="disableDraggableParent(event);"
onfocusout="enableDraggableParent(event);"></textarea>
<div class="triangles">
<svg>
<line x1="-5%" y1="0" x2="105%" y2="100%" style="stroke:rgb(127,127,127);stroke-width:5" />
</svg>
<svg>
<line x1="-5%" y1="100%" x2="105%" y2="0" style="stroke:rgb(127,127,127);stroke-width:5" />
</svg>
</div>
<div class="decision-branches">
<div class="decision-branch">
<textarea class="decision-two-ta" rows="1" placeholder="True" ondrop="return false;"
oninput="textareaResize(event);" ondragstart="return false;" onfocusin="disableDraggableParent(event);"
onfocusout="enableDraggableParent(event);"></textarea>
<div class="droparea drop-before-end decision-two-da" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
</div>
<div class="decision-branch">
<textarea class="decision-two-ta" rows="1" placeholder="False" ondrop="return false;"
oninput="textareaResize(event);" ondragstart="return false;" onfocusin="disableDraggableParent(event);"
onfocusout="enableDraggableParent(event);"></textarea>
<div class="droparea drop-before-end decision-two-da" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
</div>
</div>
</div>
<h2>Wiederholung</h2>
<div class="dblock iteration" draggable="true" ondragstart="drag(event)">
<div class="droparea drop-before-begin" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
<textarea class="left-ta rewh-ta" rows="1" placeholder="Bedingung" ondrop="return false;"
oninput="textareaResize(event);" ondragstart="return false;" onfocusin="disableDraggableParent(event);"
onfocusout="enableDraggableParent(event);"></textarea>
<div class="droparea drop-before-end drop-iteration" ondrop="drop(event)" ondragover="allowDrop(event)"
ondragenter="dragEnter(event)" ondragleave="dragLeave(event)">
</div>
</div>
</div>
</body>
<script src="js/main.js"></script>
</html>