forked from leongersen/noUiSlider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configurations.php
53 lines (43 loc) · 1 KB
/
configurations.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
$title = "noUiSlider - Configurations";
$description = "";
$direction = ($_GET['dir'] ?? null) === 'rtl' ? 'dir="rtl"' : 'ltr';
?>
<html <?php echo $direction; ?>></html>
<style>
.configuration {
margin: 50px;
width: 300px;
}
h2 {
margin-bottom: 20px;
}
.vertical {
height: 300px;
display: inline-block;
}
.vertical .noUi-target {
height: 100%;
}
</style>
<input placeholder="Test for focus">
<div class="configuration">
<h2>Horizontal - LTR</h2>
<div id="horizontal-ltr"></div>
</div>
<div class="configuration">
<h2>Horizontal - RTL</h2>
<div id="horizontal-rtl"></div>
</div>
<div class="configuration vertical">
<h2>Vertical - LTR</h2>
<div id="vertical-ltr"></div>
</div>
<div class="configuration vertical">
<h2>Vertical - RTL</h2>
<div id="vertical-rtl"></div>
</div>
<?php run('horizontal-ltr'); ?>
<?php run('horizontal-rtl'); ?>
<?php run('vertical-ltr'); ?>
<?php run('vertical-rtl'); ?>