forked from RustPython/RustPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ejs
More file actions
73 lines (64 loc) · 2.95 KB
/
index.ejs
File metadata and controls
73 lines (64 loc) · 2.95 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RustPython Notebook</title>
<link defer async href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&family=Sen:wght@800&display=swap"
rel="stylesheet">
</head>
<body>
<div class="d-flex">
<div class="header md-flex-grow text-center">RustPython 🐍 😱 🤘</div>
<div>
<a target="_blank" class="d-md-none mr-px-5 text-black" href="https://github.com/RustPython/RustPython/tree/main/wasm/notebook">how this works</a>
<a target="_blank" class="text-black" href="https://github.com/RustPython/"> github</a>
</div>
</div>
<!-- navigation bar -->
<div class="nav-bar mt-px-5">
<div class="nav-bar-links d-flex d-flex-space-between d-sm-flex-direction-column">
<div class="d-flex d-sm-flex-direction-column ">
<a href="#" id="run-btn" class="bg-orange mr-px-5 text-white">run ► </a>
<ul class="list-inline sm-mt-5px" id="buffers-list"></ul>
<ul class="list-inline sm-mt-5px">
<li class="bg-light mr-px-5"> <a href="#" class="text-black" id="new-tab">new tab</a></li>
<li class="bg-light mr-px-5"><a href="#popup" class="text-black" id="import-code">import code</a></li>
</ul>
</div>
<div class="nav-bar-links d-flex sm-mt-5px">
<ul class="list-inline ">
<li class="d-md-none bg-light"><a href="#" id="split-view" class="mr-px-5 text-black">split view</a></li>
<li class="d-md-none bg-light"><a href="#" id="default-view" class="mr-px-5 text-black">default view</a></li>
<li class="d-md-none bg-light"><a href="#" id="reader-view" class="text-black">reader view</a></li>
</ul>
</div>
</div>
</div>
<!-- code editor and output display -->
<!-- split view -->
<div class="split-view full-height d-sm-flex-direction-column ">
<div id="primary-editor"></div>
<div id="secondary-editor" class="d-none">
<select class="item-right" id="buffers-selection"></select>
</div>
<div class="border-left" id="rp-notebook">loading python in your browser...</div>
</div>
<!-- popup forms -->
<div id="popup" data-type="python" class="overlay">
<div class="popup">
<div id="popup-header">Header Placeholder</div>
<a class="popup-close" href="#">×</a>
<div class="popup-content mt-px-5">
<input type="url" name="popup-url" id="popup-url">
<button id="popup-import" class="btn bg-black text-white">import</button>
</div>
</div>
</div>
<!-- errors and keyboard shortcuts -->
<div>
<div class="header">Error(s):</div>
<div id="error"></div>
</div>
</body>
</html>