forked from saucelabs/the-internet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the example explanation copy and added a slider output value
- Loading branch information
Dave Haeffner
committed
Jul 16, 2016
1 parent
d887b33
commit 6a32367
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<div class="example"> | ||
<h3>Horizontal Slider</h3> | ||
<h4 class="subheader">Set the focus on the slider (click) and use the arrow keys to move it right and left.</h4> | ||
<h4 class="subheader">Set the focus on the slider (by clicking on it) and use the arrow keys to move it right and left. Or click and drag the slider with your mouse. It will indicate the value of the slider to the right.</h4> | ||
<div class="sliderContainer"> | ||
<input type="range" min="0.0" max="5.0" step="0.5"> | ||
<div class="sliderTicks"><span></span><span></span><span></span><span></span><span></span><span></span></div> | ||
<input type="range" min="0.0" max="5.0" step="0.5" value="0" onchange="showValue(this.value)"> | ||
| ||
<span id="range">0</span> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
function showValue(newValue) { $("#range").html(newValue); } | ||
</script> |