2023-02-25 11:37:52 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>hello-wasm example</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-02-25 14:49:09 -05:00
|
|
|
<fieldset>
|
|
|
|
<label for="encode-address-lat">Latitude</label>
|
|
|
|
<input id="encode-address-lat" type="text" />
|
|
|
|
<br>
|
|
|
|
<label for="encode-address-lon">Longitude</label>
|
|
|
|
<input id="encode-address-lon" type="text" />
|
|
|
|
<br>
|
|
|
|
<label for="encode-address-result">encode-address-result</label>
|
|
|
|
<input disabled id="encode-address-result" />
|
|
|
|
<br>
|
|
|
|
<p type="text" id="encode-address-error"></p>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<label for="decode-address-input">decode-address-input</label>
|
|
|
|
<input id="decode-address-input" type="text" />
|
|
|
|
<br>
|
|
|
|
<label for="decode-address-lat">Latitude</label>
|
|
|
|
<input disabled id="decode-address-lat" type="text" />
|
|
|
|
<br>
|
|
|
|
<label for="decode-address-lon">Longitude</label>
|
|
|
|
<input disabled id="decode-address-lon" type="text" />
|
|
|
|
<br>
|
|
|
|
<p type="text" id="decode-address-error"></p>
|
|
|
|
</fieldset>
|
|
|
|
|
2023-02-25 14:12:18 -05:00
|
|
|
<script>
|
2023-02-25 14:49:09 -05:00
|
|
|
const encodeAddressResult = document.getElementById("encode-address-result");
|
|
|
|
const encodeAddressError = document.getElementById("encode-address-error");
|
|
|
|
const encodeAddressLat = document.getElementById("encode-address-lat");
|
|
|
|
const encodeAddressLon = document.getElementById("encode-address-lon");
|
|
|
|
|
|
|
|
const decodeAddressInput = document.getElementById("decode-address-input");
|
|
|
|
const decodeAddressError = document.getElementById("decode-address-error");
|
|
|
|
const decodeAddressLat = document.getElementById("decode-address-lat");
|
|
|
|
const decodeAddressLon = document.getElementById("decode-address-lon");
|
2023-02-25 14:12:18 -05:00
|
|
|
</script>
|
|
|
|
<script type="module" src="index.js">
|
2023-02-25 11:37:52 -05:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|