-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (61 loc) · 1.69 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Go wasm</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
</head>
<body>
<div class="main">
<script src="wasm_exec.js"></script>
<script src="script.js"></script>
<h1>Upload your image</h1>
<br />
<input type="file" onchange="readURL(this)" />
<br />
<br />
<label for="password">password : </label>
<input type="password" name="password" id="password" />
<br />
<br />
<br />
<div>Secret message</div>
<textarea id="msg" cols="20" rows="4"></textarea>
<br />
<br />
<button class="btn btn-secondary" onclick="encodeImage(this)">
Encode
</button>
<h1>Image preview</h1>
<img src="" id="finalImage" width="100px" height="100px" />
<br />
<br />
<button>
<a id="download" href="" download>save image</a>
</button>
<br />
<br />
<h1>Decode</h1>
<input type="file" name="img" onchange="readURL(this)" />
<br />
<br />
<label for="passwordDecode">password : </label>
<input type="password" name="passwordDecode" id="passwordDecode" />
<br />
<h1>Decoded message</h1>
<br />
<button class="btn btn-secondary" onclick="decodeImage(this)">
Decode
</button>
<br />
<textarea id="decodeans">empty</textarea>
<br />
</div>
</body>
</html>