Plugin Directory

Changeset 1600288


Ignore:
Timestamp:
02/21/2017 05:09:13 AM (9 years ago)
Author:
skoldin
Message:

tagging version 1.3.2

Location:
click-to-scroll
Files:
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • click-to-scroll/tags/1.3.2/assets/js/front.js

    r1564827 r1600288  
    1313            e.preventDefault();
    1414
    15 
    16 
    1715            $('html, body').animate({scrollTop: 0}, animationSpeed, 'linear');
    1816        });
    1917
    2018
    21         if ( jsSettings && jsSettings.scroll_to_anchor === 1) {
    22             $('a[href^="#"]').not('a[href="#"]').on('click', function (e) {
     19        if ( jsSettings && +jsSettings.scroll_to_anchor === 1) {
     20            $('a[href*="#"]').not('a[href="#"]').not('a[href$="#"]').on('click', function (e) {
    2321                e.preventDefault();
    2422
    25                 var selector = $(this).attr('href'),
     23                var url = $(this).attr('href'),
     24                    selector = url.slice(url.indexOf('#')),
    2625                    $elem = $(selector);
    2726
  • click-to-scroll/tags/1.3.2/assets/js/front.min.js

    r1564827 r1600288  
    1 (function(a){var c=a(".js_settings").val(),d=a(".cts-button"),f=(c=c?JSON.parse(c):null)&&c.animation_speed?parseInt(c.animation_speed):400;a(window).load(function(){d.on("click",function(b){b.preventDefault();a("html, body").animate({scrollTop:0},f,"linear")});if(c&&1===c.scroll_to_anchor)a('a[href^="#"]').not('a[href="#"]').on("click",function(b){b.preventDefault();b=a(this).attr("href");var e=a(b);if(e.length){b=e.offset().top;var d=a("#wpadminbar");d.length&&"fixed"===d.css("position")&&(b-=d.height());
    2     c.global_offset&&(b-=parseInt(c.global_offset));(e=e.data("offset"))&&(b-=parseInt(e));a("html, body").animate({scrollTop:b},f,"linear")}})});a(window).on("scroll",function(){var b=a(window).height()/2;a("body").scrollTop()>b?d.addClass("active"):d.removeClass("active")})})(jQuery);
     1(function(b){var c=b(".js_settings").val(),d=b(".cts-button"),f=(c=c?JSON.parse(c):null)&&c.animation_speed?parseInt(c.animation_speed):400;b(window).load(function(){d.on("click",function(a){a.preventDefault();b("html, body").animate({scrollTop:0},f,"linear")});if(c&&1===+c.scroll_to_anchor)b('a[href*="#"]').not('a[href="#"]').not('a[href$="#"]').on("click",function(a){a.preventDefault();a=b(this).attr("href");a=a.slice(a.indexOf("#"));var e=b(a);if(e.length){a=e.offset().top;var d=b("#wpadminbar");
     2  d.length&&"fixed"===d.css("position")&&(a-=d.height());c.global_offset&&(a-=parseInt(c.global_offset));(e=e.data("offset"))&&(a-=parseInt(e));b("html, body").animate({scrollTop:a},f,"linear")}})});b(window).on("scroll",function(){var a=b(window).height()/2;b("body").scrollTop()>a?d.addClass("active"):d.removeClass("active")})})(jQuery);
  • click-to-scroll/tags/1.3.2/click-to-scroll.php

    r1564827 r1600288  
    1313 * Plugin Name:       Click to Scroll
    1414 * Description:       Add a customizable scroll-to-top button to your site and the admin area
    15  * Version:           1.3.1
     15 * Version:           1.3.2
    1616 * Author:            Igor Skoldin
    1717 * Author URI:        https://profiles.wordpress.org/skoldin/
  • click-to-scroll/tags/1.3.2/readme.txt

    r1564827 r1600288  
    44Tags: wordpress,plugin,button,navigation,free
    55Stable tag: trunk
    6 Tested up to: 4.6
     6Tested up to: 4.7.2
    77Requires at least:
    88License: GPLv2 or later
     
    6262
    6363= 1.3.1 =
     64* Fix: enabled scroll anchor option might be ignored
     65* Fix: scroll to anchor even if the URL contains not only hash
     66
     67= 1.3.1 =
    6468* Fix: undefined use_image offset
    6569* Fix: scroll to anchor option
  • click-to-scroll/trunk/assets/js/front.js

    r1564827 r1600288  
    1313            e.preventDefault();
    1414
    15 
    16 
    1715            $('html, body').animate({scrollTop: 0}, animationSpeed, 'linear');
    1816        });
    1917
    2018
    21         if ( jsSettings && jsSettings.scroll_to_anchor === 1) {
    22             $('a[href^="#"]').not('a[href="#"]').on('click', function (e) {
     19        if ( jsSettings && +jsSettings.scroll_to_anchor === 1) {
     20            $('a[href*="#"]').not('a[href="#"]').not('a[href$="#"]').on('click', function (e) {
    2321                e.preventDefault();
    2422
    25                 var selector = $(this).attr('href'),
     23                var url = $(this).attr('href'),
     24                    selector = url.slice(url.indexOf('#')),
    2625                    $elem = $(selector);
    2726
  • click-to-scroll/trunk/assets/js/front.min.js

    r1564827 r1600288  
    1 (function(a){var c=a(".js_settings").val(),d=a(".cts-button"),f=(c=c?JSON.parse(c):null)&&c.animation_speed?parseInt(c.animation_speed):400;a(window).load(function(){d.on("click",function(b){b.preventDefault();a("html, body").animate({scrollTop:0},f,"linear")});if(c&&1===c.scroll_to_anchor)a('a[href^="#"]').not('a[href="#"]').on("click",function(b){b.preventDefault();b=a(this).attr("href");var e=a(b);if(e.length){b=e.offset().top;var d=a("#wpadminbar");d.length&&"fixed"===d.css("position")&&(b-=d.height());
    2     c.global_offset&&(b-=parseInt(c.global_offset));(e=e.data("offset"))&&(b-=parseInt(e));a("html, body").animate({scrollTop:b},f,"linear")}})});a(window).on("scroll",function(){var b=a(window).height()/2;a("body").scrollTop()>b?d.addClass("active"):d.removeClass("active")})})(jQuery);
     1(function(b){var c=b(".js_settings").val(),d=b(".cts-button"),f=(c=c?JSON.parse(c):null)&&c.animation_speed?parseInt(c.animation_speed):400;b(window).load(function(){d.on("click",function(a){a.preventDefault();b("html, body").animate({scrollTop:0},f,"linear")});if(c&&1===+c.scroll_to_anchor)b('a[href*="#"]').not('a[href="#"]').not('a[href$="#"]').on("click",function(a){a.preventDefault();a=b(this).attr("href");a=a.slice(a.indexOf("#"));var e=b(a);if(e.length){a=e.offset().top;var d=b("#wpadminbar");
     2  d.length&&"fixed"===d.css("position")&&(a-=d.height());c.global_offset&&(a-=parseInt(c.global_offset));(e=e.data("offset"))&&(a-=parseInt(e));b("html, body").animate({scrollTop:a},f,"linear")}})});b(window).on("scroll",function(){var a=b(window).height()/2;b("body").scrollTop()>a?d.addClass("active"):d.removeClass("active")})})(jQuery);
  • click-to-scroll/trunk/click-to-scroll.php

    r1564827 r1600288  
    1313 * Plugin Name:       Click to Scroll
    1414 * Description:       Add a customizable scroll-to-top button to your site and the admin area
    15  * Version:           1.3.1
     15 * Version:           1.3.2
    1616 * Author:            Igor Skoldin
    1717 * Author URI:        https://profiles.wordpress.org/skoldin/
  • click-to-scroll/trunk/readme.txt

    r1564827 r1600288  
    44Tags: wordpress,plugin,button,navigation,free
    55Stable tag: trunk
    6 Tested up to: 4.6
     6Tested up to: 4.7.2
    77Requires at least:
    88License: GPLv2 or later
     
    6262
    6363= 1.3.1 =
     64* Fix: enabled scroll anchor option might be ignored
     65* Fix: scroll to anchor even if the URL contains not only hash
     66
     67= 1.3.1 =
    6468* Fix: undefined use_image offset
    6569* Fix: scroll to anchor option
Note: See TracChangeset for help on using the changeset viewer.