Display error message instead of 'style not valid yet...'

This commit is contained in:
Maximilian Krög
2019-10-03 16:57:20 +02:00
parent 8fe8302dc2
commit db49842f63
2 changed files with 31 additions and 27 deletions

View File

@@ -29,10 +29,8 @@ experimental: true
<option value="circles">Circles, size related to population</option>
</select>
<textarea style="width: 100%; height: 20rem; font-family: monospace; font-size: small;" id="style-editor"></textarea>
<small id="style-valid" style="display: none; color: forestgreen">
✓ style is valid
<small>
<span id="style-valid" style="display: none; color: forestgreen">✓ style is valid</span>
<span id="style-invalid" style="display: none; color: grey"><span>style not yet valid...</span></span>
&nbsp;
</small>
<small id="style-invalid" style="display: none; color: grey">
✗ style not yet valid...
</small>
<small>&nbsp;</small>