index.html (view raw)
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta
6 name="viewport"
7 content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
8 />
9 <meta http-equiv="X-UA-Compatible" content="ie=edge" />
10 <title>NoPaste - Client-side paste service</title>
11 <script src="https://cdn.jsdelivr.net/combine/
12npm/lzma@2.3.2/src/lzma.min.js,
13npm/slim-select@1.25.0/dist/slimselect.min.js,
14npm/clipboard@2/dist/clipboard.min.js,
15npm/codemirror@5.52.0,
16npm/codemirror@5.52.0/addon/mode/loadmode.min.js,
17npm/codemirror@5.52.0/addon/mode/overlay.min.js,
18npm/codemirror@5.52.0/addon/mode/multiplex.min.js,
19npm/codemirror@5.52.0/addon/mode/simple.min.js,
20npm/codemirror@5.52.0/addon/scroll/simplescrollbars.js,
21npm/codemirror@5.52.0/mode/meta.min.js
22"></script>
23 <link
24 rel="stylesheet"
25 type="text/css"
26 href="https://cdn.jsdelivr.net/combine/
27npm/slim-select@1.25.0/dist/slimselect.min.css,
28npm/codemirror@5.52.0/lib/codemirror.min.css,
29npm/codemirror@5.52.0/addon/scroll/simplescrollbars.css,
30npm/codemirror@5.52.0/theme/dracula.min.css
31"
32 />
33 <link rel="stylesheet" href="style.css" />
34 <link href="favicon.ico" rel="icon" type="image/x-icon" />
35 </head>
36 <body>
37 <div id="controls">
38 <div class="title">{ NoPaste }</div>
39 <span class="grow"></span>
40 <select id="language"></select>
41
42 <button onclick="generateLink('url')" type="button">Generate link</button>
43 <button onclick="generateLink('markdown')" type="button">Generate markdown</button>
44 <button onclick="generateLink('iframe')" type="button">Embed</button>
45 </div>
46 <div id="progress"></div>
47 <div id="editor"></div>
48 <div id="copy" style="display: none;">
49 <input
50 type="text"
51 value="copy me"
52 id="copy-link"
53 class="grow"
54 onclick="this.setSelectionRange(0, this.value.length)"
55 />
56 <button class="clipboard" id="copy-btn" data-clipboard-target="#copy-link" type="button">Copy</button>
57 <button onclick="hideCopyBar(false)" type="button">Cancel</button>
58 </div>
59 </body>
60
61 <script src="index.js"></script>
62</html>