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