|
@@ -20,11 +20,14 @@
|
|
|
<p><a href="http://www.unicode.org/charts/PDF/U12000.pdf">unicode cuneiform</a></p>
|
|
|
</footer>
|
|
|
<script>
|
|
|
+ // Update the cuneiform whenever the input changes.
|
|
|
var input = document.querySelector('input');
|
|
|
input.addEventListener('input', function(event) {
|
|
|
var cuneiform = convert(event.target.value);
|
|
|
document.querySelector('#cuneiform').textContent = cuneiform;
|
|
|
});
|
|
|
+ // Handle any preloaded transliteration text.
|
|
|
+ input.dispatchEvent(new Event('input'));
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|