-
-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dockerize the documentation * Fix linting rule * Add keyboardMultiplier option * Polishing the readme and documentation * Formatting * Remove dockerisation
- Loading branch information
Showing
5 changed files
with
94 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var keyboardSupportValue = document.getElementById('slider-keyboard-value'); | ||
keyboardSupport.noUiSlider.on('update', function (values, handle) { | ||
keyboardSupportValue.innerHTML = values[handle]; | ||
}); | ||
|
||
var keyboardSupport2Value = document.getElementById('slider-keyboard-2-value'); | ||
keyboardSupport2.noUiSlider.on('update', function (values, handle) { | ||
keyboardSupport2Value.innerHTML = values[handle]; | ||
}); |
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,12 +1,33 @@ | ||
var keyboardSlider = document.getElementById('slider-keyboard'); | ||
/** | ||
* Example 1 | ||
*/ | ||
var keyboardSupport = document.getElementById('slider-keyboard') | ||
|
||
noUiSlider.create(keyboardSlider, { | ||
start: [10, 90], | ||
keyboardSupport: true, // Default true | ||
noUiSlider.create(keyboardSupport, { | ||
start: 10, | ||
keyboardSupport: true, // Default true | ||
keyboardDefaultStep: 5, // Default 10 | ||
keyboardPageMultiplier: 10, // Default 5 | ||
keyboardDefaultStep: 5, // Default 10 | ||
range: { | ||
'min': 0, | ||
'max': 100 | ||
} | ||
}); | ||
|
||
/** | ||
* Example 2 | ||
*/ | ||
var keyboardSupport2 = document.getElementById('slider-keyboard-2') | ||
|
||
noUiSlider.create(keyboardSupport2, { | ||
start: 100, | ||
step: 1, | ||
keyboardSupport: true, // Default true | ||
keyboardDefaultStep: 5, // Default 10 | ||
keyboardPageMultiplier: 100,// Default 5 | ||
keyboardMultiplier: 50, // Default 1 | ||
range: { | ||
'min': 0, | ||
'max': 1000 | ||
} | ||
}); |
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