diff options
author | Martin Fischer <martin@push-f.com> | 2025-04-30 17:38:01 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-30 17:38:05 +0200 |
commit | 65fbdeb0d09a61ec2b29292e1a14bfa9bf1c5941 (patch) | |
tree | a7c724c35d4f3c9479573a2b6620169c93edc847 | |
parent | ae67ef4f60656557d2408f3a4c2ba01959eef2c5 (diff) |
feat: add placeholder
To clarify which input format is expected.
-rw-r--r-- | script.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ function route() { if (!latLon) { document.title = 'Share a location'; content.append(createEl('h1', {}, [document.title])); - const input = createEl('input'); + const input = createEl('input', { placeholder: '55.7, 12.5' }); const button = createEl('button', {}, ['Share']); const inputGroup = createEl('div', { class: 'input-group' }, [input, button]); const errorDiv = createEl('div', { class: 'error' }); |