-
Notifications
You must be signed in to change notification settings - Fork 735
/
index.html
67 lines (64 loc) · 2.02 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Unredacter</title>
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; img-src 'self' data:;"
/>
<meta
http-equiv="X-Content-Security-Policy"
content="default-src 'self'; script-src 'self'"
/>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<button id="start-button">Click to Start</button>
<br><br>
<label class="text-label">Redacted Text:</label>
<br>
<image id="original-image" src="secret.png"/>
<br>
<label class="text-label">Current Guess:</label>
<br>
<image id="current-preview-image" src=""/>
<br>
<input type="text" id="current-guess">
<br>
<label class="text-label">Best Guess:</label>
<br>
<image id="best-preview-image" src=""/>
<br>
<input type="text" id="best-guess">
<br>
<label class="text-label">Score (lower is better)</label>
<input type="text" id="best-score">
<br>
<label class="text-label">Offset X</label>
<input type="text" id="offset_x">
<br>
<label class="text-label">Offset Y</label>
<input type="text" id="offset_y">
<br>
<label class="text-label">Good offsets to try</label>
<input type="text" id="offsets_to_try">
<br>
<br><br><br>
<label class="text-label">Make Your Own Redacted Text:</label>
<br>
<input type="text" placeholder="your secret phrase here" id="text_to_redact">
<br>
<label class="text-label">Offset x</label>
<input type="text" value="2" id="redacted_offset_x">
<br>
<label class="text-label">Offset y</label>
<input type="text" value="5" id="redacted_offset_y">
<br>
<button id="redact-button">Redact Me</button>
<image id="redacted_image" src=""/>
<a id="download_link" href="path_to_file" download="redacted.png">Download</a>
<!-- You can also require other files to run in this process -->
<script src="./dist/renderer.js"></script>
</body>
</html>