Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:zurb/foundation-sites into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Aug 29, 2017
2 parents cdb53da + bacdaa0 commit b268169
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/foundation.slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Slider extends Plugin {
pctOfBar = this._logTransform(pctOfBar);
break;
}
var value = (this.options.end - this.options.start) * pctOfBar + this.options.start;
var value = (this.options.end - this.options.start) * pctOfBar + parseFloat(this.options.start);

return value
}
Expand Down
30 changes: 30 additions & 0 deletions test/visual/slider/parseFloat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Foundation for Sites Testing</title>
<link href="../assets/css/foundation.css" rel="stylesheet" />
</head>
<body>
<div class="grid-container">
<div class="grid-x grid-padding-x">
<div class="cell">
<div class="slider" data-start="5.0" data-slider data-initial-start="50" data-end="200">
<span class="slider-handle" data-slider-handle role="slider" tabindex="1"></span>
<span class="slider-fill" data-slider-fill></span>
<input type="hidden">
</div>
</div>
</div>
</div>

<script src="../assets/js/vendor.js"></script>
<script src="../assets/js/foundation.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>

0 comments on commit b268169

Please sign in to comment.