-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (91 loc) · 3.41 KB
/
index.html
File metadata and controls
91 lines (91 loc) · 3.41 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="CC.ico" type="image/x-icon">
<title>Cessation Cipher Generater</title>
<link rel="stylesheet" href="bootstrap.min.css">
<script src="bootstrap.min.js"></script>
<script src="script.js"></script>
<style>
body {
padding: 20px;
}
#message, #key, #max {
margin-bottom: 10px;
}
#usekey, #usemax {
margin-bottom: 10px;
}
img {
width: 100%;
height: auto;
image-rendering: pixelated;
}
/* Custom styles */
.container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.left-panel {
flex: 1;
padding-right: 20px;
}
.right-panel {
flex: 1;
}
.btn-group {
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<p>Input:</p>
<textarea id="message" class="form-control" placeholder="Enter your message..."></textarea><br>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="hideElements" onchange="toggleMode()">
<label class="form-check-label" for="hideElements">If checked, it will not be encoded</label>
</div>
<div id="usekey" class="form-check">
<input class="form-check-input" type="checkbox" id="useKey" onchange="toggleKeyInput()">
<label class="form-check-label" for="useKey">Set Key</label>
</div>
<div id="keyInput" style="display: none;">
<input type="text" id="key" class="form-control" placeholder="Enter your key...">
</div>
<div id="usemax" class="form-check">
<input class="form-check-input" type="checkbox" id="useMax" onchange="toggleMaxInput()">
<label class="form-check-label" for="useMax">Set MaxWidth</label>
</div>
<div id="MaxInput" style="display: none;">
<input type="text" id="max" class="form-control" placeholder="Enter max width...">
</div>
<div class="btn-group">
<button onclick="encodeMessage()" class="btn btn-primary">Generate</button>
<button onclick="downloadImage()" class="btn btn-success">Download</button>
</div>
</div>
<div class="col-md-6">
<p>Output:</p>
<div id="output" class="mt-3"><canvas></canvas></div>
<div style="display: none;">
<img id="1" src="test/1.png" alt="1">
<img id="2" src="test/2.png" alt="2">
<img id="3" src="test/3.png" alt="3">
<img id="4" src="test/4.png" alt="4">
<img id="5" src="test/5.png" alt="5">
<img id="6" src="test/6.png" alt="6">
<img id="7" src="test/7.png" alt="7">
<img id="0" src="test/fin.png" alt="0">
<canvas></canvas>
</div>
</div>
</div>
</div>
</body>
</html>