Add examples in documentation forms.md

This commit is contained in:
bbe 2020-08-11 11:32:11 +02:00
parent f5c102ea11
commit b4be7ae2d2

View file

@ -163,6 +163,15 @@ description: PaperCSS Forms
</div>
</label>
</fieldset>
<fieldset class="form-group">
<label for="input-range">Note /10 :</label>
<input type="range" name="note" id="input-range" min="0" max="10">
</fieldset>
<fieldset class="form-group">
<label for="percentage">Percentage (<code>.input-block</code>) :</label>
<input class="input-block" type="range" name="percentage" id="percentage" min="0" max="100" oninput="output.value = this.value + '%';">
<output id="output" for="percentage">50%</output>
</fieldset>
#### Code:
@ -322,4 +331,14 @@ description: PaperCSS Forms
</div>
</label>
</fieldset>
<fieldset class="form-group">
<label for="input-range">Note /10 :</label>
<input type="range" name="note" id="input-range" min="0" max="10">
</fieldset>
<fieldset class="form-group">
<label for="percentage">Percentage (<code>.input-block</code>) :</label>
<input class="input-block" type="range" name="percentage" id="percentage"
min="0" max="100" oninput="output.value = this.value + '%';">
<output id="output" for="percentage">50%</output>
</fieldset>
```