-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb-conv-api.html
31 lines (31 loc) · 1.52 KB
/
web-conv-api.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>web-conv</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../node_modules/apg-js/dist/apg-lib-bundle.css">
<body onload="onload()">
<h1>The Data Conversion API</h1>
<h3>Test the web-bundled version,<br>apg-conv-api-bundle.js</h2>
<p>Have a look at "web-conv.html" & "web-conv.js" to see how it is used.<br>
Click on any of the gray buttons to enter test input into the textarea.<br>
Then click the "translate" button to see the translated result.</p>
<p class="title">
<b>input:</b>
</p>
<textarea id="input" rows="20" cols="75" style="float: left;"></textarea>
<p> <input type="button" value="ASCII" style="width: 100px;" onclick="ascii()"></p>
<p> <input type="button" value="BINARY" style="width: 100px;" onclick="binary()"></p>
<p> <input type="button" value="CHEROKEE" style="width: 100px;" onclick="cherokee()"></p>
<p> <input type="button" value="CARDS" style="width: 100px;" onclick="cards()"></p>
<p> <input type="button" value="BASE64" style="width: 100px;" onclick="base64()"></p>
<br>
<p> <input type="button" value="TRANSLATE" style="width: 100px; background: lightskyblue;" onclick="trans()"></p>
<p class="title" style="clear: left;">
<br><b>output:</b>
</p>
<div id="output">Translation will appear here.</div>
<script src="../../node_modules/apg-js/dist/apg-conv-api-bundle.js" charset="utf-8"></script>
<script src="./web-conv-api.js" charset="utf-8"></script>
</body>
</html>