-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
31 lines (28 loc) · 1.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description"
content="An intelligent tutoring system of the Standard Model of Programming Languages (SMoL)" />
<link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" />
<title>SMoL Tutor</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="./webpack.bundle.js"></script>
<script>
function handleClickOfCopyButton(e, lang) {
const btnElem = e.target || e.srcElement;
const preElem = btnElem.parentElement.previousSibling;
const programString = `#lang stacker/smol/${lang}\n\n${preElem.innerText}`;
/* Copy the text inside the text field */
navigator.clipboard.writeText(programString)
}
</script>
</body>
</html>