2020-02-13 15:02:17 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta
|
|
|
|
|
name="viewport"
|
|
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
|
|
|
|
/>
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
2020-03-09 13:38:28 +00:00
|
|
|
<title>Paste - Client-side paste service</title>
|
2020-02-13 15:02:17 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/combine/
|
|
|
|
|
npm/lzma@2.3.2/src/lzma.min.js,
|
|
|
|
|
npm/slim-select@1.25.0/dist/slimselect.min.js,
|
2020-02-17 15:05:42 +00:00
|
|
|
npm/clipboard@2/dist/clipboard.min.js,
|
2020-03-09 14:54:31 +00:00
|
|
|
npm/codemirror@5.52.0,
|
|
|
|
|
npm/codemirror@5.52.0/addon/mode/loadmode.min.js,
|
|
|
|
|
npm/codemirror@5.52.0/addon/mode/overlay.min.js,
|
|
|
|
|
npm/codemirror@5.52.0/addon/mode/multiplex.min.js,
|
|
|
|
|
npm/codemirror@5.52.0/addon/mode/simple.min.js,
|
|
|
|
|
npm/codemirror@5.52.0/addon/scroll/simplescrollbars.js,
|
|
|
|
|
npm/codemirror@5.52.0/mode/meta.min.js
|
2020-02-13 15:02:17 +00:00
|
|
|
"></script>
|
|
|
|
|
<link
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
type="text/css"
|
2020-02-17 15:05:42 +00:00
|
|
|
href="https://cdn.jsdelivr.net/combine/
|
|
|
|
|
npm/slim-select@1.25.0/dist/slimselect.min.css,
|
2020-03-09 14:54:31 +00:00
|
|
|
npm/codemirror@5.52.0/lib/codemirror.min.css,
|
|
|
|
|
npm/codemirror@5.52.0/addon/scroll/simplescrollbars.css,
|
|
|
|
|
npm/codemirror@5.52.0/theme/dracula.min.css
|
2020-02-17 15:05:42 +00:00
|
|
|
"
|
2020-02-13 15:02:17 +00:00
|
|
|
/>
|
2020-02-14 09:46:37 +00:00
|
|
|
<link rel="stylesheet" href="style.css" />
|
2020-03-09 10:39:55 +00:00
|
|
|
<link href="favicon.ico" rel="icon" type="image/x-icon" />
|
2020-02-13 15:02:17 +00:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2020-04-22 16:50:44 +00:00
|
|
|
<div id="controls">
|
|
|
|
|
<div class="title">{ Paste }</div>
|
2020-02-14 14:35:52 +00:00
|
|
|
<span class="grow"></span>
|
2020-04-22 16:50:44 +00:00
|
|
|
<select id="language"></select>
|
|
|
|
|
|
2020-03-05 13:33:21 +00:00
|
|
|
<button onclick="generateLink('url')" type="button">Generate link</button>
|
|
|
|
|
<button onclick="generateLink('markdown')" type="button">Generate markdown</button>
|
2020-03-09 13:38:28 +00:00
|
|
|
<button onclick="generateLink('iframe')" type="button">Embed</button>
|
2020-02-13 15:02:17 +00:00
|
|
|
</div>
|
2020-04-22 16:50:44 +00:00
|
|
|
<div id="progress"></div>
|
|
|
|
|
<div id="editor"></div>
|
|
|
|
|
<div id="copy" style="display: none;">
|
2020-02-14 14:35:52 +00:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
value="copy me"
|
|
|
|
|
id="copy-link"
|
|
|
|
|
class="grow"
|
2020-03-09 13:38:28 +00:00
|
|
|
onclick="this.setSelectionRange(0, this.value.length)"
|
2020-02-14 14:35:52 +00:00
|
|
|
/>
|
2020-02-17 15:05:42 +00:00
|
|
|
<button class="clipboard" id="copy-btn" data-clipboard-target="#copy-link" type="button">Copy</button>
|
|
|
|
|
<button onclick="hideCopyBar(false)" type="button">Cancel</button>
|
2020-02-13 15:02:17 +00:00
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
<script src="index.js"></script>
|
|
|
|
|
</html>
|