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 - No-database 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/bootstrap@4.4.1/dist/css/bootstrap-grid.min.css,
28npm/slim-select@1.25.0/dist/slimselect.min.css,
29npm/codemirror@5.52.0/lib/codemirror.min.css,
30npm/codemirror@5.52.0/addon/scroll/simplescrollbars.css,
31npm/codemirror@5.52.0/theme/dracula.min.css
32"
33 />
34 <link rel="stylesheet" href="style.css" />
35 <link href="favicon.ico" rel="icon" type="image/x-icon" />
36 <meta
37 name="description"
38 content="NoPaste is a client-side paste service which works with no database, and no back-end code. The whole data is stored in shareable links and nowhere else!"
39 />
40 </head>
41 <body class="m-0">
42 <div id="copy" class="container-fluid hidden shadow-bottom hide-readonly">
43 <div class="row my-1">
44 <div class="col my-1">
45 <input
46 type="text"
47 value="copy me"
48 id="copy-link"
49 class="px-2"
50 onclick="this.setSelectionRange(0, this.value.length)"
51 />
52 </div>
53 <div class="col-auto my-1">
54 <button
55 class="clipboard py-1 px-2 mx-1"
56 id="copy-btn"
57 data-clipboard-target="#copy-link"
58 type="button"
59 >
60 Copy
61 </button>
62 <button class="py-1 px-2 mx-1" onclick="hideCopyBar(false)" type="button">Cancel</button>
63 </div>
64 </div>
65 </div>
66 <div id="controls" class="container-fluid shadow-bottom hide-readonly">
67 <div class="row align-items-center justify-content-end my-1">
68 <div class="col mb-1">
69 <h1 class="title my-0">{ NoPaste }</h1>
70 </div>
71 <div class="col-auto my-1">
72 <select id="language"></select>
73 </div>
74 <div class="col-auto my-1">
75 <button class="py-1 px-2 mx-0" onclick="generateLink('url')" type="button">Generate link</button>
76 <button class="py-1 px-2 mx-1" onclick="generateLink('markdown')" type="button">
77 Generate markdown
78 </button>
79 <button class="py-1 px-2 mx-0" onclick="generateLink('iframe')" type="button">Embed</button>
80 </div>
81 </div>
82 </div>
83 <div id="progress"></div>
84 <div id="editor"></div>
85 <footer class="shadow-top container-fluid">
86 <div class="row my-1">
87 <div class="col mono" id="stats"></div>
88 <div class="col-auto">
89 <a href="javascript:void(0)" class="description-trigger">What is NoPaste?</a>
90 <div id="description" class="hidden shadow-bottom p-3">
91 NoPaste is a client-side paste service which works with <b>no database</b>, and
92 <b>no back-end code</b>.<br /><br />
93 Instead, the data is <b>compressed</b> then <b>stored</b> into a unique URL that can be decoded
94 later.<br /><br />
95 As a result, there is no risk of data being lost, censored or deleted. The whole data is stored
96 <b>in the link</b> and nowhere else!
97 </div>
98 <div class="overlay hidden"></div>
99 </div>
100 <div class="col-auto"><a href="https://github.com/bokub/nopaste" target="_blank">Github</a></div>
101 </div>
102 </footer>
103 </body>
104
105 <script src="index.js"></script>
106</html>