JSFiddle

  • IRS - sum of 2 sliders #7 is the latest revision

    Connect 2 sliders and calc sum of their values

    var $range1 = $(".js-range-slider-1"),
        $range2 = $(".js-range-slider-2"),
        $result = $(".js-result"),
        v1 = 0,
        v2 = 0;
    
    var calc = function (data) {
        var res;
        
        res = v1 + " + " + v2 ...
  • ion.rangeSlider test playground #5 is the latest revision

    jQuery (edge), HTML, CSS, JavaScript

    var $range = $(".js-range-slider"),
        $btn = $("#get_value");
    
    $range.ionRangeSlider({
        type: "single",
        min: 100,
        max: 1000,
        from: 550
    });
    
    $btn.on("click", function () {
        var ...
  • ion.rangeSlider test playground #36 is the latest revision

    jQuery (edge), HTML, CSS, JavaScript

    var $range = $(".js-range-slider"),
        $result = $(".js-result"),
        $getvalues = $(".js-get-values"),
        
        from = 0,
        to = 0;
    
    var saveResult = function (data) {
        from = data.from;
        to = data ...
  • ion.rangeSlider test playground

    jQuery (edge), HTML, CSS, JavaScript

    var $continer = $('.js-container'),
        $range = $(".js-range-slider");
    
    var hide = function (obj) {
        if (obj.from === 0) {
            $continer.addClass("hidden");
        }
    };
    
    $range.ionRangeSlider({
        type: "single ...
  • ion.rangeSlider test playground

    jQuery (edge), HTML, CSS, JavaScript

    var $range = $(".js-range-slider");
    
    $range.ionRangeSlider({
        type: "single",
        values: [
            1,2,3,4,5,6,7,8,9,10,
            11,12 ...
  • Chains to 10

    No-Library (pure JS), HTML, CSS, JavaScript

    // Denis Ineshin (IonDen.com)
    
    var getChains = function (array) {
        var sort = function (a, b) {
            if (a < b) {
                return -1;
            }
            if (a > b) {
                return 1;
            }
    
            return 0 ...
  • Find all 10-s

    jQuery Compat (edge), HTML, CSS, JavaScript, Firebug Lite 1.4.0

    var $result = document.getElementById('result'),
        save = {},
        test = [1, 2, 3, 4, 5, 6, 7, 8, 9],
        i, item;
    
    for (i ...
  • One sec function

    No-Library (pure JS), HTML, CSS, JavaScript

    // Denis Ineshin (IonDen.com)
    
    var $body = document.body,
        $test = document.getElementById('test');
    
    
    var Delayed = function (scope, callback) {
        this.scope = scope ...
  • One sec function

    No-Library (pure JS), HTML, CSS, JavaScript

    // Denis Ineshin (IonDen.com)
    
    var $body = document.body,
        $test = document.getElementById('test'),
        past = 0;
    
    var delayed = function () {
        var now = new ...
  • One sec function

    No-Library (pure JS), HTML, CSS, JavaScript

    // Denis Ineshin (IonDen.com)
    
    var $body = document.body,
        $test = document.getElementById('test'),
        interval, event;
    
    var mousemove = function (e) {
        event = e ...