This is boilerplate for issues https://github.com/Stryzhevskyi/rangeSlider/issues
Created
October 23, 2019 01:12
-
-
Save trinhtanloc789/c87ab447a832270cd2bdb353077a48cf to your computer and use it in GitHub Desktop.
RangeSlider pure [issue boilerplate]
This file contains hidden or 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
<div class="container"> | |
<input type="range"/> | |
<output data-output></output> | |
</div> |
This file contains hidden or 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
let tooltip; | |
const slider = document.querySelector('[type="range"]'); | |
const output = document.querySelector('[data-output]'); | |
rangeSlider.create(slider, {onSlide: (val) => { | |
console.log(val); | |
output.textContent = val; | |
}}); |
This file contains hidden or 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
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/range-slider.min.js"></script> |
This file contains hidden or 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
.container { | |
margin-top: 80px; | |
.rangeSlider { | |
margin-bottom: 32px; | |
} | |
[data-output] { | |
display: block; | |
width: 100%; | |
text-align: center; | |
font-family: sans-serif; | |
} | |
} |
This file contains hidden or 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
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/range-slider.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment