Spaces:
Running
Running
Update index.html
Browse files- index.html +77 -16
index.html
CHANGED
@@ -1,19 +1,80 @@
|
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
|
2 |
<!DOCTYPE html>
|
3 |
<html>
|
4 |
+
<head>
|
5 |
+
<title>Paste to Markdown</title>
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7 |
+
<meta charset="utf-8">
|
8 |
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
9 |
+
<link href="favicon.ico" rel="icon" type="image/x-icon">
|
10 |
+
<link rel="stylesheet" href="bootstrap.css">
|
11 |
+
<script src="to-markdown.js"></script>
|
12 |
+
<script src="clipboard2markdown.js"></script>
|
13 |
+
<style>
|
14 |
+
h2 {
|
15 |
+
font-size: 22px;
|
16 |
+
font-style: italic;
|
17 |
+
}
|
18 |
+
body {
|
19 |
+
background-attachment: fixed;
|
20 |
+
background-image: url('background.svg');
|
21 |
+
background-position: right 10% bottom 20%;
|
22 |
+
background-repeat: no-repeat;
|
23 |
+
background-size: 20em;
|
24 |
+
margin-bottom: 10vh;
|
25 |
+
margin-top: 10vh;
|
26 |
+
}
|
27 |
+
#pastebin {
|
28 |
+
opacity: 0.01;
|
29 |
+
width: 100%;
|
30 |
+
height: 1px;
|
31 |
+
overflow: hidden;
|
32 |
+
}
|
33 |
+
#output {
|
34 |
+
border: none;
|
35 |
+
background: transparent;
|
36 |
+
font-family: Consolas, "Liberation Mono", Courier, monospace;
|
37 |
+
font-size: 13px;
|
38 |
+
line-height: 19px;
|
39 |
+
min-height: 78vh;
|
40 |
+
overflow: auto;
|
41 |
+
padding: 6px 10px;
|
42 |
+
resize: none;
|
43 |
+
width: 100%;
|
44 |
+
}
|
45 |
+
@media (prefers-color-scheme: dark) {
|
46 |
+
body {
|
47 |
+
background-image: url('background-dark.svg');
|
48 |
+
background-color: #222;
|
49 |
+
color:white;
|
50 |
+
}
|
51 |
+
code {
|
52 |
+
color: #ff7a9c;
|
53 |
+
background-color: #0e0609;
|
54 |
+
}
|
55 |
+
a {
|
56 |
+
color: #8fcbff;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
</head>
|
61 |
+
<body>
|
62 |
+
<div class="container">
|
63 |
+
<section id="info">
|
64 |
+
<h1>Paste to Markdown</h1>
|
65 |
+
<h2>Instructions</h2>
|
66 |
+
<ol>
|
67 |
+
<li>Find the text to convert to Markdown (<i>e.g.</i>, in another browser tab)</li>
|
68 |
+
<li>Copy it to the clipboard (<code>Ctrl+C</code>, or <code>⌘+C</code> on Mac)</li>
|
69 |
+
<li>Paste it into this window (<code>Ctrl+V</code>, or <code>⌘+V</code> on Mac)</li>
|
70 |
+
<li>The converted Markdown will appear!</li>
|
71 |
+
</ol>
|
72 |
+
<p>The conversion is carried out by <a href="https://github.com/domchristie/to-markdown">to-markdown</a>, a Markdown converter written in JavaScript and running locally in the browser.</p>
|
73 |
+
</section>
|
74 |
+
<div contenteditable="true" id="pastebin"></div>
|
75 |
+
<section class="hidden" id="wrapper">
|
76 |
+
<textarea id="output"></textarea>
|
77 |
+
</section>
|
78 |
+
</div>
|
79 |
+
</body>
|
80 |
</html>
|