-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (41 loc) · 1.36 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"
/>
<link rel="stylesheet" href="~bootstrap/dist/css/bootstrap.css" />
<link rel="icon" href="/favicon.ico" />
<title>Bootstrap Theme</title>
</head>
<body class="bg-light">
<div class="container py-3">
<div id="demo1" class="text-black bg-white p-3 mb-3">Default:</div>
<div id="demo2" class="text-white bg-dark p-3">
Darkmode (Experimental):
</div>
<script type="module">
import { basicSetup, EditorView } from 'codemirror';
import { bootstrap, bootstrapDark } from './src/index';
let myView = new EditorView({
doc: `色は匂へど 散りぬるを
我が世誰ぞ 常ならむ
有為の奥山 今日越えて
浅き夢見じ 酔ひもせず`,
extensions: [basicSetup, bootstrap],
parent: document.getElementById('demo1'),
});
new EditorView({
doc: `色は匂へど 散りぬるを
我が世誰ぞ 常ならむ
有為の奥山 今日越えて
浅き夢見じ 酔ひもせず`,
extensions: [basicSetup, bootstrapDark],
parent: document.getElementById('demo2'),
});
</script>
</div>
</body>
</html>