-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
51 lines (46 loc) · 1.34 KB
/
editor.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
<!DOCTYPE html>
<script Modulo src="https://unpkg.com/[email protected]/src/Modulo.js">
<Library
-src="https://unpkg.com/[email protected]/mdu/libraries/editorlib.html"
></Library>
<Library
-src="https://unpkg.com/[email protected]/mdu/libraries/widgetslib.html"
></Library>
<script Configuration>
function setupConfig() {
const urlParams = new URLSearchParams(location.search);
const myFile = urlParams.get('file') || '';
if (myFile.includes('foundations/1')) {
// Hide all extras, in first lessons!
const elem = document.querySelector('x-ModuloEditor');
elem.classList.add('beginner-mode');
}
}
setupConfig();
</script>
</script>
<style>
/*
:root {
--m-font: sans-serif;
--m-black: #050505;
--m-white: #fefefe;
--m-shadow: rgba(0, 0, 0, 0.2);
--primary: #a2e4b8;
--m-primary: #a2e4b8;
--m-highlight: #B90183;
--base-font-size: 20px;
--m-shadow-size: 15px;
--m-icon-shadow-size: 2px;
}
*/
body {
height: 100vh;
width: 100vw;
overflow: hidden;
margin: 0;
padding: 0;
}
.beginner-mode x-EditorSidebar { display: none !important; }
</style>
<x-ModuloEditor></x-ModuloEditor>