forked from creatorrr/itty-bitty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
48 lines (38 loc) · 1.37 KB
/
edit.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
<!DOCTYPE html>
<html>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src https://codepen.io; style-src 'unsafe-inline' 'self'">
<title>itty.bitty</title>
<script src="lzma/lzma_worker-min.js"></script>
<script src="jquery-3.3.1.min.js"></script>
<script src="data.js"></script>
<script src="edit.js"></script>
<link rel="stylesheet" type="text/css" href="edit.css">
<body>
<div id="doc-title" contenteditable="true" placeholder="Notes"></div>
<div id="doc-file"></div>
<div id="placeholder">
Type notes here – and then share!
<p><a id="ib-info" href="https://diwank.name" target="_blank"> –– Diwank Tomer</a><br>
</div>
<div id="content"></div>
<span id="toolbar">
<a target="_blank" id="length"></a>
<a target="_blank" id="qrcode" href="/edit">new</a> ¦
<a target="_blank" id="qrcode" href="https://zxing.appspot.com/generator/">qr code</a> ¦
<a id="copy">copy link</a> ¦
</span>
<ul id="saved">
</ul>
</body>
<script>
// Check that service workers are registered
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js');
});
}
</script>
</html>