forked from Doenet/DoenetTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
224 lines (217 loc) · 6.34 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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Doenet</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/jsxgraph@1.5.0/distrib/jsxgraph.css"
/>
<script src="https://www.youtube.com/iframe_api"></script>
<script
type="text/javascript"
src="/geogebra/scripts/deployggb.js"
></script>
<script src="https://cdn.jsdelivr.net/gh/ericnograles/browser-image-resizer@2.4.0/dist/index.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> -->
<!-- <link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"
/> -->
<style>
/* Light fonts */
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 300;
src: url("/fonts/files/open-sans-v18-latin-light.woff2") format("woff2"),
url("/fonts/files/open-sans-v18-latin-light.woff") format("woff");
}
@font-face {
font-family: "Open Sans";
font-style: italic;
font-weight: 300;
src: url("/fonts/files/open-sans-v18-latin-light-italic.woff2")
format("woff2"),
url("/fonts/files/open-sans-v18-latin-light-italic.woff")
format("woff");
}
/* Regular fonts */
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: normal;
src: url("/fonts/files/open-sans-v18-latin-regular.woff2")
format("woff2"),
url("/fonts/files/open-sans-v18-latin-regular.woff") format("woff");
}
@font-face {
font-family: "Open Sans";
font-style: italic;
font-weight: normal;
src: url("/fonts/files/open-sans-v18-latin-italic.woff2")
format("woff2"),
url("/fonts/files/open-sans-v18-latin-italic.woff") format("woff");
}
/* Bold fonts */
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
src: url("/fonts/files/open-sans-v18-latin-700.woff2") format("woff2"),
url("/fonts/files/open-sans-v18-latin-700.woff") format("woff");
}
@font-face {
font-family: "Open Sans";
font-style: italic;
font-weight: 700;
src: url("/fonts/files/open-sans-v18-latin-700italic.woff2")
format("woff2"),
url("/fonts/files/open-sans-v18-latin-700italic.woff") format("woff");
}
html {
font-family: "Open Sans" !important;
--menuWidth: 220px;
--mainBlue: #1a5a99;
--lightBlue: hsl(209, 54%, 82%);
--solidLightBlue: #8fb8de;
--mainGray: #e3e3e3;
--donutBody: #eea177;
--donutTopping: #6d4445;
--mainBorder: 2px solid black;
--mainBorderRadius: 5px;
--mainRed: #c1292e;
--lightRed: hsl(0, 54%, 82%);
--mainGreen: #459152;
--canvas: white;
--canvastext: black;
--lightGreen: #a6f19f;
--lightYellow: #f5ed85;
--whiteBlankLink: #6d4445;
--mainYellow: #94610a;
--mainPurple: #4a03d9;
}
[data-theme="dark"] {
font-family: "Open Sans" !important;
--menuWidth: 220px;
--mainBlue: #1a5a99;
--lightBlue: hsl(209, 54%, 82%);
--solidLightBlue: #1a5a99;
--mainGray: #a9a9a9;
--mediumGray: #949494;
--donutBody: #eea177;
--donutTopping: #6d4445;
--mainBorder: 2px solid white;
--mainBorderRadius: 5px;
--mainRed: #c1292e;
--lightRed: hsl(0, 54%, 82%);
--mainGreen: #459152;
--canvas: #121212;
--canvastext: white;
--lightGreen: #a6f19f;
--lightYellow: #f5ed85;
--whiteBlankLink: #a9abe5;
--mainYellow: #efab34;
--mainPurple: #4a03d9;
}
body {
margin: 0;
}
.doenet-viewer {
font-family: "Open Sans" !important;
color: var(--canvastext);
}
.doenet-viewer h1 {
font-size: 2em;
font-weight: bold;
}
.doenet-viewer h2 {
font-size: 1.5em;
font-weight: bold;
margin-block-start: 0.83em;
margin-block-end: 0.83em;
}
.doenet-viewer h3 {
font-size: 1.17em;
font-weight: bold;
margin-block-start: 1em;
margin-block-end: 1em;
}
.doenet-viewer h4 {
font-weight: bold;
margin-block-start: 1.33em;
margin-block-end: 1.33em;
}
.doenet-viewer h5 {
font-size: 0.83em;
font-weight: bold;
margin-block-start: 1.67em;
margin-block-end: 1.67em;
}
.doenet-viewer p {
margin-block-start: 1em;
margin-block-end: 1em;
}
.doenet-viewer input {
box-sizing: content-box;
padding: 2px 1px;
}
.doenet-viewer div {
box-sizing: content-box;
}
.doenet-viewer a {
box-sizing: content-box;
text-decoration: underline;
}
.doenet-viewer button {
box-sizing: content-box;
}
.doenet-viewer ul,
.doenet-viewer ol {
padding-inline-start: 40px;
}
.doenet-viewer select {
border: 1px solid black;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0);
}
div.jxgbox input {
border-width: 2px;
}
div.jxgbox button {
margin: 0;
border-radius: var(--mainBorderRadius);
border-width: 2px;
border-color: var(--mainBlue);
border-style: solid;
padding: 1px 6px;
background-color: var(--mainBlue);
color: white;
}
div.jxgbox button:hover {
background-color: var(--lightBlue);
color: black;
border-color: var(--lightBlue);
}
div.jxgbox input[type="checkbox"] {
margin: 3px 3px 3px 4px;
height: 18px;
width: 18px;
}
</style>
</head>
<body>
<div id="root"></div>
<script>
/**
* this is a hack for react-mathqill
* error: global is not defined
*/
var global = global || window;
</script>
<script type="module" src="./src/index.jsx"></script>
</body>
</html>