dns-suite.js/demo.html

62 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2017-02-02 04:57:40 +00:00
<!DOCTYPE html>
<html>
<head>
<title>DNS Parser Demo</title>
<link rel="stylesheet" type="text/css" href="demo.css">
</head>
2017-02-02 04:57:40 +00:00
<body>
<!--
2017-02-02 04:57:40 +00:00
This demo is meant to have 3 feilds that accept base-64, hex and array values the user
can copy in, and a button that will call the dns parser to parse the input and display
the output in a seperate field.
-->
<!-- run `serve-https` to test at https://localhost.daplie.me:8443/demo.html -->
<!-- put form here -->
<form action="inputdata">
base64:<br>
<input type="textarea" name="base64" value="">
<br>
urlsafe base64:<br>
<input type="textarea" name="urlsafe base64" value="">
<br>
hex:<br>
<input type="textarea" name="hex" value="">
<br>
<!--
JSON (Uint8Array):<br>
<output type="text" name="hex" value="">
<br>-->
2017-02-17 23:22:56 +00:00
2017-02-02 04:57:40 +00:00
<!-- I added some of the library files for you -->
<script src="./dns.types.js"></script>
<script src="./dns.classes.js"></script>
2017-02-17 23:22:56 +00:00
<script src="./parser/type.a.js"></script>
2017-02-02 04:57:40 +00:00
<script src="./dns.rdata.parse.js"></script>
<script src="./dns.unpack-labels.js"></script>
<script src="./dns.parser.js"></script>
2017-02-17 23:22:56 +00:00
<script src="./packer/type.a.js"></script>
<script src="./dns.rdata.pack.js"></script>
2017-02-02 04:57:40 +00:00
<script src="./dns.packer.js"></script>
<script src="./dns.js"></script>
2017-02-17 23:22:56 +00:00
<script src="./browser.js"></script>
2017-02-02 04:57:40 +00:00
<!-- put jquery here -->
<!-- application code in here -->
2017-02-02 04:57:40 +00:00
</body>
</html>