-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (28 loc) · 1.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File to Image Encoder/Decoder</title>
<link rel="icon" href="public/favicon.svg" type="image/svg+xml">
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js" integrity="sha512-g2TeAWw5GPnX7z0Kn8nFbYfeHcvAu/tx6d6mrLe/90mkCxO+RcptyYpksUz35EO337F83bZwcmUyHiHamspkfg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="./scripts/UPNG.js"></script>
<script type="module" src="./scripts/encoder.js" defer></script>
<script type="module" src="./scripts/decoder.js" defer></script>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<header>
<a href="https://github.com/Benji377/data2image" target="_blank">
<img src="public/github-icon.svg" alt="GitHub Repository" style="width: 24px; height: 24px;">
</a>
</header>
<h1>File to Image Encoder/Decoder</h1>
<input type="file" id="fileInput" />
<br><br>
<button id="encodeButton">Encode to Image</button>
<button id="decodeButton">Decode from Image</button>
<br><br>
<canvas id="canvas"></canvas>
</body>
</html>