Server IP : 150.95.80.236 / Your IP : 18.218.19.160 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/documentation/forms/ |
Upload File : |
"use strict"; // Class definition var KTFormsNouisliderDemos = function() { // Private functions var _exampleBasic = function() { var slider = document.querySelector("#kt_slider_basic"); var valueMin = document.querySelector("#kt_slider_basic_min"); var valueMax = document.querySelector("#kt_slider_basic_max"); noUiSlider.create(slider, { start: [20, 80], connect: true, range: { "min": 0, "max": 100 } }); slider.noUiSlider.on("update", function (values, handle) { if (handle) { valueMax.innerHTML = values[handle]; } else { valueMin.innerHTML = values[handle]; } }); } var _exampleSizes = function() { var slider1 = document.querySelector("#kt_slider_sizes_sm"); var slider2 = document.querySelector("#kt_slider_sizes_default"); var slider3 = document.querySelector("#kt_slider_sizes_lg"); noUiSlider.create(slider1, { start: [20, 80], connect: true, range: { "min": 0, "max": 100 } }); noUiSlider.create(slider2, { start: [20, 80], connect: true, range: { "min": 0, "max": 100 } }); noUiSlider.create(slider3, { start: [20, 80], connect: true, range: { "min": 0, "max": 100 } }); } var _exampleVertical = function() { var slider = document.querySelector("#kt_slider_vertical"); noUiSlider.create(slider, { start: [60, 160], connect: true, orientation: "vertical", range: { "min": 0, "max": 200 } }); } var _exampleTooltip = function() { var slider = document.querySelector("#kt_slider_tooltip"); noUiSlider.create(slider, { start: [20, 80, 120], tooltips: [false, wNumb({decimals: 1}), true], range: { "min": 0, "max": 200 } }); } var _exampleSoftLimits = function() { var slider = document.querySelector("#kt_slider_soft_limits"); noUiSlider.create(slider, { start: 50, range: { min: 0, max: 100 }, pips: { mode: "values", values: [20, 80], density: 4 } }); } return { // Public Functions init: function(element) { _exampleBasic(); _exampleSizes(); _exampleVertical(); _exampleTooltip(); _exampleSoftLimits(); } }; }(); // On document ready KTUtil.onDOMContentLoaded(function() { KTFormsNouisliderDemos.init(); });