-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
182 lines (166 loc) · 5.97 KB
/
main.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Praxly</title>
<link id="Theme" rel="stylesheet" href="/themes.css">
<link rel="icon" href="/fallen-leaf_1f342.ico" type="image/x-icon">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
</head>
<body>
<div id="toast" class="toast">URL copied to clipboard</div>
<div id="comingSoon" class="toast">Coming Soon!</div>
<div id="blocker"></div>
<header class="nav-bar">
<div id="title-version">
<h1 id="titleRefresh">Praxly 🍂</h1>
<!-- version <a href="changelog.html">04/25/2024</a> -->
<div class="toggle-container"> <!--button holder-->
<div class="toggle-row"> <!--Button row one (text & blocks)-->
<button id="toggle-text" class="item">
<span id="text-tip" class="tooltip">Text On</span>
</button>
<button id="toggle-blocks" class="item">
<span id="blocks-tip" class="tooltip">Blocks On</span>
</button>
</div>
<div class="toggle-row"> <!--Button row two (output & variables)-->
<button id="toggle-output" class="item">
<span id="output-tip" class="tooltip">Output On</span>
</button>
<button id="toggle-vars" class="item">
<span id="vars-tip" class="tooltip">Variables On</span>
</button>
</div>
</div>
<div id="secondary_bar">
<!-- Example programs -->
<button id="examplesButton">Example Programs</button>
<div class="exampleModal">
<div class="exampleModalContent">
<span class="material-symbols-rounded close">close</span>
<div class="exampleModalText">
<h3>Example Programs</h2>
<p>Click on the blue links to try out some sample code.</p>
</div>
<!-- This div is just to separate things-->
<div class="examples-outer">
<table class="examplesTable">
<tr>
<th>Example Name</th>
<th>Difficulty</th>
<th>Topics</th>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Toolbar buttons -->
<ul>
<li>
<button id="runButton" class="MainMenu-button" title="Run the entire program">
Run <span class="material-symbols-rounded run">play_arrow</span>
<!-- <span class="button-text">Run Code</span> -->
</button>
</li>
<li>
<button id="debugButton" class="MainMenu-button" title="Run one step at a time">
Debug <span class="material-symbols-rounded bug">pest_control</span>
<!-- <span class="button-text">Debug Mode</span> -->
</button>
</li>
<li>
<button id="stepButton" class="MainMenu-button debugOptions" title="Run the next step">
Step <span class="material-symbols-rounded step">step</span>
<!-- <span class="button-text">Step Over</span> -->
</button>
</li>
<li>
<button id="stepIntoButton" class="MainMenu-button" title="Step Into">
<span class="button-text">Step Into</span>
</button>
</li>
<li>
<button id="stopButton" class="MainMenu-button debugOptions" title="Exit the debugger">
Exit <span class="material-symbols-rounded stop">stop</span>
<!-- <span class="button-text">Exit Debug</span> -->
</button>
</li>
<li>
<button id="share" class="MainMenu-button" title="Create link for sharing">
Share <span class="material-symbols-rounded share">share</span>
<!-- <span class="button-text">Share</span> -->
</button>
</li>
<li>
<button id="reference" class="MainMenu-button" title="Open the Pseudocode Notation">
Manual <span class="material-symbols-rounded manual">book_2</span>
<!-- <span class="button-text">Manual</span> -->
</button>
</li>
<li class="settingsOptions">
<button id="darkMode" class="MainMenu-button" title="Dark Mode">
<span class="button-text">Dark Mode</span>
</button>
</li>
<li>
<button id="settings" class="MainMenu-button" title="Settings">
<span class="button-text">settings</span>
</button>
</li>
<li>
<button id="info" class="MainMenu-button" title="About Praxly">
<span class="material-symbols-rounded extra">info</span>
<span class="button-text">About</span>
</button>
</li>
<li>
<button id="resetButton" class="MainMenu-button" title="Reset the initial code">
Reset <span class="material-symbols-rounded reset">restart_alt</span>
<!-- <span class="button-text">Clear</span> -->
</button>
</li>
</ul>
</header>
<main>
<div id="aceCode" class="codeEditor"></div>
<div class="resizeBarX"></div>
<div id="blocklyDiv"></div>
</main>
<div class="resizeBarY"></div>
<div id="bottom-part">
<div id="Variable-table-container">
<table id="Variable-table-outer">
<thead>
<tr>
<th>Variable</th>
<th>Type</th>
<th>Value</th>
<th>Scope</th>
</tr>
</thead>
<tbody id="Variable-table"></tbody>
</table>
</div>
<div class="resizeBarBott"></div>
<div class="output">
<p class="stdout"></p>
<p class="stderr"></p>
</div>
</div>
<div class="resetModal">
<div class="resetModal-content">
<h2>Are you sure you want to reset?</h2>
<p>Resetting will remove any changes you made AND clear both the output and variables table.</p>
<div class="answerOptions">
<button id="yes">Yes</button>
<button id="no">No</button>
</div>
</div>
</div>
<script src="/src/main.js" type="module"></script>
</body>
</html>