forked from JustusE20/SimpleLogicEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (60 loc) · 3.04 KB
/
Copy pathindex.html
File metadata and controls
60 lines (60 loc) · 3.04 KB
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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="stylesheet.css">
<link rel="stylesheet" href="d3-context-menu.css">
<title>Logic Editor</title>
</head>
<body onload="onLoad()">
<main>
<div class = "header" id="navigationBar" name="navigationBar">
<input class="textInput" type="text" id="term" name="term" placeholder="(a and b) or c"/>
<input class="moduleButton" type="button" id="drawButton" value="Draw" onclick="deserializeLogic()"/>
<div class="dropdown">
<button class="dropdownButton" onclick="dropdownMenu(1)">Logic Elements</button>
<div class="dropdown-content" id="myDropdownLogic">
<a onclick="place(new INPUT(15,15))">Input</a>
<a onclick="place(new AND(120,15))">AND</a>
<a onclick="place(new NAND(120,15))">NAND</a>
<a onclick="place(new OR(120,15))">OR</a>
<a onclick="place(new NOR(120,15))">NOR</a>
<a onclick="place(new XOR(120,15))">XOR</a>
<a onclick="place(new XNOR(120,15))">XNOR</a>
<a onclick="place(new NOT(120,15))">NOT</a>
<a onclick="place(new OUTPUT(300,30))">Output</a>
</div>
</div>
<div class="dropdown">
<button class="dropdownButton" id="dropdownButton" onclick="dropdownMenu(2)">Save as</button>
<div class="dropdown-content" id="myDropdownSave">
<a onclick="pushToURL()">URL</a>
<a onclick="copyText()">Clipboart</a>
<a onclick="saveTxt()">.txt-file</a>
</div>
</div>
<input type="checkbox" id="deleteCheckbox" onchange="toggleDelete()"/>
<label class="moduleButton" id="deleteButton" for="deleteCheckbox">Delete</label>
<input class="moduleButton" type="button" value="+" onclick="zoomIn()"/>
<input class="moduleButton" type="button" value="-" onclick="zoomOut()"/>
</div>
<div class="space" id="space"> </div>
<div class="frame" id="simulationBox" name="simulationBox">
<div id="select" hidden></div>
</div>
<div class="dropdown" id="navigationMenu">
<div class="dropdown-content" id="myDropdownMenu">
<a onclick="toggleNavigationBar(true)">Show/Hide</a>
<a onclick="zoomIn()">Zoom+</a>
<a onclick="zoomOut()">Zoom-</a>
<a onclick="about()">About</a>
</div>
</div>
</main>
</body>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="d3-context-menu.js"></script>
<script src="parser.js"></script>
<script src="script.js"></script>
</html>