dec.html, enc.html: make output textarea read-only
This commit is contained in:
parent
95be209339
commit
338c8ef371
2
dec.html
2
dec.html
@ -15,7 +15,7 @@
|
|||||||
<label for="password">Password: </label>
|
<label for="password">Password: </label>
|
||||||
<input id="password" type="password">
|
<input id="password" type="password">
|
||||||
<button id="decrypt">Decrypt</button>
|
<button id="decrypt">Decrypt</button>
|
||||||
<textarea id="plaintext"></textarea>
|
<textarea id="plaintext" readonly></textarea>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("decrypt").addEventListener("click", dec);
|
document.getElementById("decrypt").addEventListener("click", dec);
|
||||||
</script>
|
</script>
|
||||||
|
2
enc.html
2
enc.html
@ -15,7 +15,7 @@
|
|||||||
<label for="password">Password: </label>
|
<label for="password">Password: </label>
|
||||||
<input id="password" type="password">
|
<input id="password" type="password">
|
||||||
<button id="encrypt">Encrypt</button>
|
<button id="encrypt">Encrypt</button>
|
||||||
<textarea id="ciphertext"></textarea>
|
<textarea id="ciphertext" readonly></textarea>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("encrypt").addEventListener("click", enc);
|
document.getElementById("encrypt").addEventListener("click", enc);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user