File: hiding-tooltips.php

package info (click to toggle)
node-nouislider 15.8.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,936 kB
  • sloc: javascript: 5,234; php: 474; sh: 32; python: 28; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php sect('hiding-tooltips'); ?>
<h1>Only showing tooltips when sliding handles</h1>

<section>

	<div class="view">

		<p><a href="https://github.com/leongersen/noUiSlider/issues/836">Issue #836</a> requested a way to toggle tooltips after slider creation. This effect can be achieved by using the <code>.noUi-active</code> class to show and hide the tooltips. No additional JavaScript is involved.</p>

		<div class="example">
			<div class="slider" id="slider-hide"></div>

			<?php run('hiding-tooltips'); ?>
		</div>
	</div>

	<div class="side">

		<?php loadShowCSS('hiding-tooltips'); ?>
	</div>
</section>