wassemgtk commited on
Commit
a880854
1 Parent(s): b4935ee

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +77 -16
index.html CHANGED
@@ -1,19 +1,80 @@
 
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>&#8984;+C</code> on Mac)</li>
69
+ <li>Paste it into this window (<code>Ctrl+V</code>, or <code>&#8984;+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>