Welcome to mirror list, hosted at ThFree Co, Russian Federation.

custom-slider.js « js « static - github.com/geschke/hugo-tikva.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cdd0ee0d3dbd52f18a2c055d0704f8d83752641d (plain)
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
/* global jQuery */
/* global wp */


/**
 * Customizer Control: JavaScript part of slider control
 *
 * @package     Azbalac Controls
 * @subpackage  Controls
 * @copyright   Copyright (c) 2018, Ralf Geschke
 * @license     https://opensource.org/licenses/MIT
 * @since       0.1
 */

(function ($) {

   
wp.customize.controlConstructor.azbalac_slider = wp.customize.Control.extend( {


    ready: function() {
        var control = this;
             
        var element = $(this.container).find('.customize-control-slider-value');
               
        $(element).on('change paste keyup', function(event) {
            control.setting.set( element.val() );
            return true;
        });
     
    },

   

} );
  

})(jQuery);