Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Oct 9, 2021
1 parent b34fae4 commit 607c472
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion documentation/examples-content/click-pips.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="view">

<p><a href="https://github.com/leongersen/noUiSlider/issues/733">Issue #733</a> asks about clicking pips to move the slider to their value. noUiSlider 11 adds a <code>data-value</code> attribute to all <code>.noUi-value</code> elements that makes this easy.</code></code></p>
<p><a href="https://github.com/leongersen/noUiSlider/issues/733">Issue #733</a> asks about clicking pips to move the slider to their value. All <code>.noUi-value</code> elements have a <code>data-value</code> attribute to facilitate this.</code></code></p>

<div class="example">
<div class="slider" id="slider-pips"></div>
Expand Down
2 changes: 1 addition & 1 deletion documentation/examples-content/soft-limits.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="view">

<p>If you want to disable the edges of a slider, the set event can be used to reset the value if a limit is passed. Note how the handle 'bounces back' when it is released below <code>20</code> or above <code>80</code>. noUiSlider also supports disabling edges altogether, which can be done using the <a href="/nouislider/slider-options/#section-padding">padding option</a>.</p>
<p>To disable the edges of a slider, the set event can be used to reset the value if a limit is passed. Note how the handle 'bounces back' when it is released below <code>20</code> or above <code>80</code>. noUiSlider also supports disabling edges altogether, which can be done using the <a href="/nouislider/slider-options/#section-padding">padding option</a>.</p>

<div class="example">
<div id="soft"></div>
Expand Down
4 changes: 2 additions & 2 deletions documentation/examples/merging-tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ function mergeTooltips(slider, threshold, separator) {
var offset = 0;

poolPositions[poolIndex].forEach(function (value) {
offset += 1000 - 10 * value;
offset += 1000 - value;
});

var direction = isVertical ? 'bottom' : 'right';
var last = isRtl ? 0 : handlesInPool - 1;
var lastOffset = 1000 - 10 * poolPositions[poolIndex][last];
var lastOffset = 1000 - poolPositions[poolIndex][last];
offset = (textIsRtl && !isVertical ? 100 : 0) + (offset / handlesInPool) - lastOffset;

// Center this tooltip over the affected handles
Expand Down

0 comments on commit 607c472

Please sign in to comment.