blob: cafb08746d99dd705dd86e82638d42850a6bcee2 (
plain) (
blame)
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
|
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<title>paste-cgi</title>
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="./pico.min.css">
</head>
<body>
<main class="container">
<a href="/">
<h1>paste-cgi</h1>
</a>
<form id="cryptoForm">
<label for="title">Title</label>
<input type="text" id="title" placeholder="Enter a title" required />
<label for="plaintext">Paste</label>
<textarea id="plaintext" rows="5" placeholder="Enter your paste" required></textarea>
<label for="pasteType">Type</label>
<select id="pasteType" onchange="togglePasteType()">
<option value="plain">Plain</option>
<option value="password">Password</option>
</select>
<div id="passwordField" style="display: none;">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter your password" />
</div>
<label for="expiration">Expiration</label>
<select id="expiration">
<option value="never">Never</option>
<option value="burn_after_read">Burn after read</option>
<option value="10_minutes">10 minutes</option>
<option value="1_hour">1 hour</option>
<option value="1_day">1 Day</option>
<option value="1_week">1 Week</option>
<option value="2_weeks">2 Weeks</option>
<option value="1_month">1 Month</option>
<option value="6_months">6 Months</option>
<option value="1_year">1 Year</option>
</select>
<button type="button" id="encryptBtn" onclick="handlePaste()">Paste</button>
</form>
<div id="pasteUrlSection" style="display: none;">
<h3>Paste Url:</h3>
<input id="pasteUrl" readonly></textarea>
<button type="button" onclick="copyPaste()">Copy</button>
</div>
</main>
<script src="/script.js"></script>
</body>
</html>
|