-
Notifications
You must be signed in to change notification settings - Fork 16
/
encode.html
73 lines (71 loc) · 2.78 KB
/
encode.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
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<link rel="stylesheet" href="./style.css">
<title>Web-SSTV</title>
</head>
<nav class="container">
<ul>
<li><strong><a href="./index.html" class="contrast">Web SSTV</a></strong></li>
</ul>
<ul>
<li><a href="./encode.html" class="contrast">Encode</a></li>
<li><a href="./decode.html">Decode</a></li>
<li><a href="./learn.html">Learn</a></li>
</ul>
</nav>
<body>
<main class="container">
<label id="modeLabel" for="modeSelect">Select a mode:</label>
<select id="modeSelect">
<option value="none" selected disabled hidden>No mode selected</option>
<option value="none" disabled>--- Martin ---</option>
<option value="M1">Martin M1</option>
<option value="M2">Martin M2</option>
<option value="none" disabled>--- Scottie ---</option>
<option value="S1">Scottie 1</option>
<option value="S2">Scottie 2</option>
<option value="SDX">Scottie DX</option>
<option value="none" disabled>--- WRASSE ---</option>
<option value="WrasseSC2180">SC2-180</option>
<option value="none" disabled>--- PD ---</option>
<option value="PD50">PD-50</option>
<option value="PD90">PD-90</option>
<option value="PD120">PD-120</option>
<option value="PD160">PD-160</option>
<option value="PD180">PD-180</option>
<option value="PD240">PD-240</option>
<option value="PD290">PD-290</option>
</select>
<label id="imgLabel" for="imgPicker">Upload an image:</label>
<input type="file" name="imgPicker" id="imgPicker" disabled />
<center id="imgArea" class="container">
<canvas id="imgCanvas" ></canvas>
<br>
<span id="warningText"></span>
</center>
<div id="callSignControls">
<label id="callSignLabel" for="callSign">Enter your callsign (optional):</label>
<input type="text" name="callSign" id="callSign" placeholder="Call Sign" />
<label id="callSignLocationLabel" for="callSignLocation">Call Sign Location:</label>
<select id="callSignLocation">
<option value="top-left" selected>Top Left</option>
<option value="bottom-left" >Bottom Left</option>
</select>
</div>
<button id="startButton" class="contrast" disabled>Encode</button>
<button id="downloadButton" class="contrast" disabled>Download</button>
</main>
<footer class="container">
<small>SSTV signal decoding and more encoding modes coming soon.</small>
<br>
<small><a href="https://github.com/CKegel/Web-SSTV/">Check out the project on Github</a></small>
<br>
<small>© <script>document.write(new Date().getFullYear())</script> Christian Kegel - Available under the MIT License</small>
</footer>
</body>
<script src="./encode.js"></script>
</html>