-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
47 lines (44 loc) · 1.35 KB
/
main.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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>Copy marked text to IPython</title>
<script src="3rdparty/jquery-3.1.1.min.js"></script>
<script src="3rdparty/clipboard.min.js"></script>
<script src="js/api.js"></script>
<style>
body {
font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif;
font-size: 100%;
}
#status {
/* avoid an excessively wide status text */
white-space: pre;
text-overflow: ellipsis;
overflow: hidden;
max-width: 400px;
}
</style>
</head>
<body>
<div id="main">
<p id="code">
X = np.arange(10)<br>
Y = np.sin(X)<br>
plt.plot(X, Y)<br>
</p>
<div id="status"></div>
<label for="filename">Notebook name</label><br />
<input id="filename" value="blatext"></input><br />
<textarea id="content"></textarea> <br />
<button id="createfile">1) Copy to Notebook</button><br />
<button id="readfile" data-clipboard-target="#content">2) Read from Notebook</button> <br />
<button class="copy" data-clipboard-target="#content">3) Copy to clipboard</button>
</div>
<script src="js/main.js"></script>
</body>
</html>