apg-js-examples
Version:
Examples of using the suite of apg-js applications and libraries.
32 lines (31 loc) • 1.59 kB
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>