-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
49 lines (48 loc) · 1.43 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Catppuccin for CodeMirror</title>
<link rel="stylesheet" href="demo/codemirror.css" />
<link rel="stylesheet" href="demo/custom.css" />
<link rel="stylesheet" href="themes/mocha.css" />
<link rel="stylesheet" href="themes/macchiato.css" />
<link rel="stylesheet" href="themes/frappe.css" />
<link rel="stylesheet" href="themes/latte.css" />
<script src="demo/codemirror.js"></script>
<script src="demo/javascript.js"></script>
<script src="demo/active-line.js"></script>
</head>
<body>
<form>
<div class="outer osx">
<div class="dot red"></div>
<div class="dot amber"></div>
<div class="dot green"></div>
</div>
<textarea id="code" name="code">
function findSequence(goal) {
function find(start, history) {
if (start == goal)
return history;
else if (start > goal)
return null;
else
return find(start + 5, "(" + history + " + 5)") ||
find(start * 3, "(" + history + " * 3)");
}
return find(1, "1");
}</textarea
>
</form>
<p style="text-align: center">
<select onchange="selectTheme()" id="select">
<option value="ctp-mocha">🌿 Mocha</option>
<option value="ctp-macchiato">🌺 Macchiato</option>
<option value="ctp-frappe">🪴 Frappé</option>
<option value="ctp-latte">🌻 Latte</option>
</select>
</p>
</body>
<script defer src="demo/custom.js"></script>
</html>