-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (39 loc) · 1.8 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
<html>
<head>
<title>Brython 控制台</title>
<meta charset="UTF-8" name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
<script type="text/javascript" src="./assets/brython/brython.js"></script>
<script type="text/javascript" src="./assets/brython/brython_stdlib.js"></script>
<script type="text/javascript" src="./assets/brython/builtins_docstrings.js"></script>
<link rel="stylesheet" type="text/css" href="./assets/main.css">
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/brython/3.9.5/brython.min.js"></script> -->
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/brython/3.9.5/brython_stdlib.min.js"></script> -->
</head>
<body onload="brython()">
<div id="tool-box">
<div>
<label style="color: gray;">主题|theme</label>
<label id="switch-theme" class="switch">
<input id="switch-theme-input" type="checkbox" checked>
<div class="slider round"></div>
</label>
</div>
</div>
<div id="code" class="codearea" spellcheck="false" contenteditable="true"></div>
<!-- <script type="text/javascript" src="/theme/metro.min.js"></script> -->
<!-- <script src="https://cdn.metroui.org.ua/v4/js/metro.min.js"></script> -->
</body>
<script type="text/javascript">
/* 引入全局主题配置文件 */
let themeDefaultStyle = window.parent.document.getElementById('themeDefaultStyle');
let themeStyle = window.parent.document.getElementById('themeStyle');
let head = document.head;
if (themeDefaultStyle != null) {
head.appendChild(themeDefaultStyle.cloneNode(true));
}
if (themeStyle != null) {
head.appendChild(themeStyle.cloneNode(true));
}
</script>
<script type="text/python" src="./assets/main.py"></script>
</html>