Compare commits
5 Commits
1a2b535fc0
...
bbea358faa
Author | SHA1 | Date |
---|---|---|
Florine W. Dekker | bbea358faa | |
Luc Everse | 01624f4bfb | |
Luc Everse | d3f3b54cae | |
Luc Everse | d0d2be80ef | |
Luc Everse | 035fa6a34b |
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "debreviator",
|
"name": "debreviator",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"description": "Creates meaning by undoing your abbreviation.",
|
"description": "Creates meaning by undoing your abbreviation.",
|
||||||
"author": "Florine W. Dekker",
|
"author": "Florine W. Dekker",
|
||||||
"browser": "dist/bundle.js",
|
"browser": "dist/bundle.js",
|
||||||
|
|
|
@ -59,11 +59,13 @@
|
||||||
<input id="abbreviation" type="text" autofocus />
|
<input id="abbreviation" type="text" autofocus />
|
||||||
<small id="abbreviation-hint" data-hint-for="abbreviation"></small>
|
<small id="abbreviation-hint" data-hint-for="abbreviation"></small>
|
||||||
|
|
||||||
<button id="debreviate" type="button">Debreviate</button>
|
<button id="debreviate" type="submit">Debreviate</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<label for="debreviations">Debreviations</label>
|
<label for="debreviations">Debreviations</label>
|
||||||
<textarea id="debreviations" readonly></textarea>
|
<textarea id="debreviations" readonly></textarea>
|
||||||
|
|
||||||
|
<p id="abbreviation-error"></p>
|
||||||
</section>
|
</section>
|
||||||
<footer id="footer"></footer>
|
<footer id="footer"></footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,7 +28,7 @@ doAfterLoad(() => {
|
||||||
|
|
||||||
const debreviate = () => {
|
const debreviate = () => {
|
||||||
clearFormValidity(debreviateForm);
|
clearFormValidity(debreviateForm);
|
||||||
const abbreviation = abbreviationInput.value.trim();
|
const abbreviation = abbreviationInput.value.trim().toLowerCase();
|
||||||
if (abbreviation === "") {
|
if (abbreviation === "") {
|
||||||
showInputInvalid(abbreviationInput, "Abbreviation should be non-empty.");
|
showInputInvalid(abbreviationInput, "Abbreviation should be non-empty.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue