-
Notifications
You must be signed in to change notification settings - Fork 2
/
new.html
303 lines (291 loc) · 11.2 KB
/
new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title></title>
<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
* {
font-family: "Space Mono", monospace;
box-sizing: border-box;
}
body,
html {
margin: 0;
background-color: #282c34;
color: #fff;
}
form {
max-width: 80rem;
width: 100%;
margin: 1rem auto 1rem auto;
display: flex;
flex-direction: column;
padding: 0.4rem;
height: calc(100vh - 2rem);
}
form label {
display: inline-flex;
flex-wrap: wrap;
}
form input,
form select {
border: 0;
background-color: #ffffff25;
border-radius: 0.3rem;
font: inherit;
color: #fff;
}
button {
background-color: #ffffff25;
color: #fff;
border: 1px solid #ffffff25;
}
option {
background-color: #282c34;
}
@media (max-width: 700px) {
form select {
width: 100%;
}
}
form textarea {
border: 1px solid #ececec36;
border-radius: 0.4rem;
flex-grow: 1;
resize: none;
font: inherit;
outline: none;
padding: 0.5rem;
background-color: transparent;
color: #fff;
}
form label > * {
margin: 4px;
padding: 0.3rem;
}
hr {
border: 1px dashed #ececec40;
width: 100%;
}
a {
color: cyan;
text-decoration: none;
}
header {
display: flex;
justify-content: space-between;
max-width: 80rem;
margin: auto;
padding: 0.5rem;
}
</style>
</head>
<body>
<header>
<div></div>
<div>
<a href="/https://github.com/abdus/code-bin">Docs</a> ·
<a href="/new">New Paste</a>
</div>
</header>
<form action="/.netlify/functions/add-paste" method="POST">
<div>
<label>
<select name="lang-name">
<option value="plaintext" selected>Plaintext</option>
<option value="1c">1C</option>
<option value="abnf">ABNF</option>
<option value="accesslogs">Access logs</option>
<option value="ada">Ada</option>
<option value="arduino ino">Arduino</option>
<option value="arm">ARM assembler</option>
<option value="avrasm">AVR assembler</option>
<option value="actionscript">ActionScript</option>
<option value="angelscript">AngelScript</option>
<option value="apache">Apache</option>
<option value="applescript">AppleScript</option>
<option value="arcade">Arcade</option>
<option value="asciidoc">AsciiDoc</option>
<option value="aspectj">AspectJ</option>
<option value="autohotkey">AutoHotkey</option>
<option value="autoit">AutoIt</option>
<option value="awk">Awk</option>
<option value="bash">Bash</option>
<option value="basic">Basic</option>
<option value="bnf">BNF</option>
<option value="brainfuck">Brainfuck</option>
<option value="cspharp">C#</option>
<option value="c">C</option>
<option value="cpp">C++</option>
<option value="cal">C/AL</option>
<option value="cos">Cache Object Script</option>
<option value="cmake">CMake</option>
<option value="coq">Coq</option>
<option value="csp">CSP</option>
<option value="css">CSS</option>
<option value="capnproto">Cap’n Proto</option>
<option value="clojure">Clojure</option>
<option value="coffeescript">CoffeeScript</option>
<option value="crmsh">Crmsh</option>
<option value="crystal">Crystal</option>
<option value="d">D</option>
<option value="dns">DNS Zone file</option>
<option value="dos">DOS</option>
<option value="dart">Dart</option>
<option value="delphi">Delphi</option>
<option value="diff">Diff</option>
<option value="django">Django</option>
<option value="dockerfile">Dockerfile</option>
<option value="dsconfig">dsconfig</option>
<option value="dts">DTS (Device Tree)</option>
<option value="dust">Dust</option>
<option value="ebnf">EBNF</option>
<option value="elixir">Elixir</option>
<option value="elm">Elm</option>
<option value="erlang">Erlang</option>
<option value="excel">Excel</option>
<option value="fsharp">F#</option>
<option value="fix">FIX</option>
<option value="fortran">Fortran</option>
<option value="gcode">G-Code</option>
<option value="gams">Gams</option>
<option value="gauss">GAUSS</option>
<option value="gherkin">Gherkin</option>
<option value="go">Go</option>
<option value="golo">Golo</option>
<option value="gradle">Gradle</option>
<option value="groovy">Groovy</option>
<option value="html">HTML, XML</option>
<option value="http">HTTP</option>
<option value="haml">Haml</option>
<option value="handlebars">Handlebars</option>
<option value="haskell">Haskell</option>
<option value="haxe">Haxe</option>
<option value="hy">Hy</option>
<option value="ini">Ini</option>
<option value="inform7">Inform7</option>
<option value="irpf90">IRPF90</option>
<option value="json">JSON</option>
<option value="java">Java</option>
<option value="javascript">JavaScript</option>
<option value="kotlin">Kotlin</option>
<option value="latex">LaTeX</option>
<option value="leaf">Leaf</option>
<option value="lasso">Lasso</option>
<option value="less">Less</option>
<option value="ldif">LDIF</option>
<option value="lisp">Lisp</option>
<option value="livecodeserver">LiveCode Server</option>
<option value="livescript">LiveScript</option>
<option value="lua">Lua</option>
<option value="makefile">Makefile</option>
<option value="markdown">Markdown</option>
<option value="mathematica">Mathematica</option>
<option value="matlab">Matlab</option>
<option value="maxima">Maxima</option>
<option value="mel">Maya Embedded Language</option>
<option value="mercury">Mercury</option>
<option value="mizar">Mizar</option>
<option value="mojolicious">Mojolicious</option>
<option value="monkey">Monkey</option>
<option value="moonscript">Moonscript</option>
<option value="n1ql">N1QL</option>
<option value="nsis">NSIS</option>
<option value="nginx">Nginx</option>
<option value="nim">Nim</option>
<option value="nix">Nix</option>
<option value="ocaml">OCaml</option>
<option value="objectivec">Objective C</option>
<option value="glsl">OpenGL Shading Language</option>
<option value="openscad">OpenSCAD</option>
<option value="oracle rules language">Oracle Rules Language</option>
<option value="oxygene">Oxygene</option>
<option value="pf">PF</option>
<option value="php">PHP</option>
<option value="parser3">Parser3</option>
<option value="perl">Perl</option>
<option value="pony">Pony</option>
<option value="pgsql">PostgreSQL & PL/pgSQL</option>
<option value="powershell">PowerShell</option>
<option value="processing">Processing</option>
<option value="prolog">Prolog</option>
<option value="properties">Properties</option>
<option value="protobuf">Protocol Buffers</option>
<option value="puppet">Puppet</option>
<option value="python">Python</option>
<option value="profile">Python profiler results</option>
<option value="python-repl">Python REPL</option>
<option value="kdb">Q</option>
<option value="qml">QML</option>
<option value="r">R</option>
<option value="reasonml">ReasonML</option>
<option value="rib">RenderMan RIB</option>
<option value="rsl">RenderMan RSL</option>
<option value="graph">Roboconf</option>
<option value="ruby">Ruby</option>
<option value="rust">Rust</option>
<option value="sas">SAS</option>
<option value="scss">SCSS</option>
<option value="sql">SQL</option>
<option value="step">STEP Part 21</option>
<option value="scala">Scala</option>
<option value="scheme">Scheme</option>
<option value="scilab">Scilab</option>
<option value="shell">Shell</option>
<option value="smali">Smali</option>
<option value="smalltalk">Smalltalk</option>
<option value="sml">SML</option>
<option value="stan">Stan</option>
<option value="stata">Stata</option>
<option value="stylus">Stylus</option>
<option value="subunit">SubUnit</option>
<option value="swift">Swift</option>
<option value="tcl">Tcl</option>
<option value="tap">Test Anything Protocol</option>
<option value="thrift">Thrift</option>
<option value="toml">TOML</option>
<option value="tp">TP</option>
<option value="twig">Twig</option>
<option value="typescript">TypeScript</option>
<option value="vbnet">VB.Net</option>
<option value="vbscript">VBScript</option>
<option value="vhdl">VHDL</option>
<option value="vala">Vala</option>
<option value="verilog">Verilog</option>
<option value="vim">Vim Script</option>
<option value="x++">X++</option>
<option value="x86asm">x86 Assembly</option>
<option value="xl">XL</option>
<option value="xquery">XQuery</option>
<option value="yaml">YAML</option>
<option value="zephir">Zephir</option>
</select>
</label>
<label>
<button type="submit">Save</button>
</label>
</div>
<hr />
<textarea name="paste"></textarea>
</form>
<footer
style="
padding: 1rem;
max-width: 60rem;
margin: 3rem auto auto auto;
text-align: center;
"
>
<a
href="https://github.com/abdus/code-bin"
style="color: cyan; text-decoration: none"
>SourceCode on GitHub</a
>
</footer>
</body>
</html>