-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
115 lines (97 loc) · 5.12 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
109
110
111
112
113
114
115
<!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>Murmelrechner</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/1.3.2/peerjs.min.js"
integrity="sha512-4wTQ8feow93K3qVGVXUGLULDB9eAULiG+xdbaQH8tYZlXxYv9ij+evblXD0EOqmGWT8NBTd1vQGsURvrQzmKeg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/automerge.min.js"></script>
<!--<script src="https://cdn.jsdelivr.net/gh/FelixSelter/P2P-Collaborative-Textarea/dist/CollaborativeTextarea.js"></script>-->
<script src="js/CollaborativeTextarea.js"></script>
<script src="https://unpkg.com/split.js/dist/split.min.js"></script>
<script src="https://unpkg.com/custom-syntax-highlighter@latest/bin/index.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js"></script>
<script src="https://flowchart.js.org/flowchart-latest.js"></script>
<script>
var highlight = window.csHighlight;
</script>
<script src="js/register.js" defer></script>
<script src="js/editor.js" defer></script>
<script src="js/topnav.js"></script>
<script src="js/collaboration.js" defer></script>
<script src="js/simulator.js" defer></script>
<script src="js/clean.js" defer></script>
<script src="js/flowchart.js" defer></script>
<script src="js/simulator.js" defer></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/topnav.css" />
<link rel="stylesheet" href="css/split.css" />
<link rel="stylesheet" href="css/editor.css" />
<link rel="stylesheet" href="css/syntax.css" />
<link rel="stylesheet" href="css/simulator.css" />
<link rel="stylesheet" href="css/collaboration.css" />
</head>
<body>
<template id="joinDialog">
<div class="blockAccess">
<div class="confirmDialog">
<p class="question">Are you sure you want to connect to this host?</p>
<p id="questionBody"></p>
<div class="btnContainer">
<button class="btn" onclick="connectJoin();">CONNECT</button>
<button class="btn" onclick="cancelJoin();">CANCEL</button>
</div>
</div>
</div>
</template>
<template id="register">
<div class="register-container">
<div class="register-controls">
<i class="fas fa-plus fa-lg"
onclick="addToRegister(Array.prototype.indexOf.call(this.parentElement.parentElement.parentElement.children, this.parentElement.parentElement));"></i>
<i class="fas fa-minus fa-lg"
onclick="removeFromRegister(Array.prototype.indexOf.call(this.parentElement.parentElement.parentElement.children, this.parentElement.parentElement));"></i>
</div>
<div class="register"></div>
</div>
</template>
<div class=" topnav">
<a><label><i class="far fa-folder-open fa-2x"></i><input id="openButton" type="file"
style="display:none;"></input></label></a>
<a><i class="far fa-save fa-2x" onclick="save();"></i></a>
<a><i class="fas fa-file-export fa-2x" onclick="generateFlowChart();"></i></a>
<a><i class="fas fa-broom fa-2x" onclick="cleanCode();"></i></a>
<a><i class="fas fa-plus fa-2x" onclick="addRegister();"></i></a>
<a><i class="fas fa-minus fa-2x" onclick="removeRegister();"></i></a>
<a><i class="fas fa-play fa-2x" onclick="execute();"></i></a>
<a><i class="fas fa-arrow-circle-right fa-2x" onclick="shouldExecute=true; processLine(); if (!shouldExecute)resetSimulator();"></i></a>
<a><i class="fas fa-hand-paper fa-2x" onclick="resetSimulator();"></i></a>
<a target="_blank" rel="noopener noreferrer" id="peerAdress"></a>
<a id="collaborationButton"><i onclick="createCollaboration();" class="fas fa-user-plus fa-2x"></i></a>
<a><i id="fullscreen" onclick="toggleFullscreen();" class="fas fa-expand fa-2x"></i></a>
</div>
<div id="split">
<div id="split-left">
<div id="scroll-left"></div>
</div>
<div id="split-right">
<div id="scroll-right">
<div id="pointer-container">
<i id="pointer" class="fas fa-long-arrow-alt-right fa-2x"></i>
</div>
<textarea id="linenums" readonly></textarea>
<pre id="highlighting" aria-hidden="true">
<code id="highlighting-content">
</code>
</pre>
<textarea id="editing" spellcheck="false" oninput="update();"></textarea>
</div>
</div>
</div>
</body>
</html>