1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<?php sect('html5'); ?>
<h1>Using HTML5 input elements</h1>
<section>
<div class="view">
<p>noUiSlider's <code>'update'</code> method is useful for synchronizing with other elements, such as <code><input></code> (<code>type="number"</code>) and <code><select></code>.</p>
<div class="example">
<div id="html5"></div>
<select id="input-select"></select>
<input type="number" min="-20" max="40" step="1" id="input-number">
<?php run('html5-append'); ?>
<?php run('html5-slider'); ?>
<?php run('html5-link'); ?>
</div>
</div>
<div class="side">
<div class="viewer-header">Appending <code><option></code> elements</div>
<div class="viewer-content">
<?php code('html5-append', true); ?>
</div>
<div class="viewer-header">Initializing the slider</div>
<div class="viewer-content">
<?php code('html5-slider'); ?>
</div>
<div class="viewer-header">Updating the <code><select></code> and <code><input></code></div>
<div class="viewer-content">
<?php code('html5-link'); ?>
</div>
<div class="viewer-header">Example CSS</div>
<div class="viewer-content">
<?php loadShowCSS('html5'); ?>
</div>
</div>
</section>
|