We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6194d24 + 939ea4b commit 3fcaafdCopy full SHA for 3fcaafd
src/templates/page-mailto-generator.php
@@ -32,15 +32,15 @@
32
</div> <!-- application -->
33
34
<script>
35
- const input = document.getElementById('mail')
36
- const output = document.getElementById('output')
+ const input = document.querySelector('input[name="mail"]');
+ const output = document.getElementById('output');
37
38
input.addEventListener('input', function() {
39
const addressInput = input.value;
40
- let addressOutput = ''
+ let addressOutput = '';
41
42
for (let character of addressInput) {
43
- addressOutput += character.charCodeAt() + ';'
+ addressOutput += character.charCodeAt() + ';';
44
}
45
addressOutput = addressOutput.slice(0, -1);
46
0 commit comments