Changeset 1600288
- Timestamp:
- 02/21/2017 05:09:13 AM (9 years ago)
- Location:
- click-to-scroll
- Files:
-
- 4 edited
- 6 copied
-
tags/1.3.2 (copied) (copied from click-to-scroll/trunk)
-
tags/1.3.2/assets/js/front.js (copied) (copied from click-to-scroll/trunk/assets/js/front.js) (1 diff)
-
tags/1.3.2/assets/js/front.min.js (copied) (copied from click-to-scroll/trunk/assets/js/front.min.js) (1 diff)
-
tags/1.3.2/click-to-scroll.php (copied) (copied from click-to-scroll/trunk/click-to-scroll.php) (1 diff)
-
tags/1.3.2/inc/CTS_Frontend.php (copied) (copied from click-to-scroll/trunk/inc/CTS_Frontend.php)
-
tags/1.3.2/readme.txt (copied) (copied from click-to-scroll/trunk/readme.txt) (2 diffs)
-
trunk/assets/js/front.js (modified) (1 diff)
-
trunk/assets/js/front.min.js (modified) (1 diff)
-
trunk/click-to-scroll.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
click-to-scroll/tags/1.3.2/assets/js/front.js
r1564827 r1600288 13 13 e.preventDefault(); 14 14 15 16 17 15 $('html, body').animate({scrollTop: 0}, animationSpeed, 'linear'); 18 16 }); 19 17 20 18 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) { 23 21 e.preventDefault(); 24 22 25 var selector = $(this).attr('href'), 23 var url = $(this).attr('href'), 24 selector = url.slice(url.indexOf('#')), 26 25 $elem = $(selector); 27 26 -
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 13 13 * Plugin Name: Click to Scroll 14 14 * Description: Add a customizable scroll-to-top button to your site and the admin area 15 * Version: 1.3. 115 * Version: 1.3.2 16 16 * Author: Igor Skoldin 17 17 * Author URI: https://profiles.wordpress.org/skoldin/ -
click-to-scroll/tags/1.3.2/readme.txt
r1564827 r1600288 4 4 Tags: wordpress,plugin,button,navigation,free 5 5 Stable tag: trunk 6 Tested up to: 4. 66 Tested up to: 4.7.2 7 7 Requires at least: 8 8 License: GPLv2 or later … … 62 62 63 63 = 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 = 64 68 * Fix: undefined use_image offset 65 69 * Fix: scroll to anchor option -
click-to-scroll/trunk/assets/js/front.js
r1564827 r1600288 13 13 e.preventDefault(); 14 14 15 16 17 15 $('html, body').animate({scrollTop: 0}, animationSpeed, 'linear'); 18 16 }); 19 17 20 18 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) { 23 21 e.preventDefault(); 24 22 25 var selector = $(this).attr('href'), 23 var url = $(this).attr('href'), 24 selector = url.slice(url.indexOf('#')), 26 25 $elem = $(selector); 27 26 -
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 13 13 * Plugin Name: Click to Scroll 14 14 * Description: Add a customizable scroll-to-top button to your site and the admin area 15 * Version: 1.3. 115 * Version: 1.3.2 16 16 * Author: Igor Skoldin 17 17 * Author URI: https://profiles.wordpress.org/skoldin/ -
click-to-scroll/trunk/readme.txt
r1564827 r1600288 4 4 Tags: wordpress,plugin,button,navigation,free 5 5 Stable tag: trunk 6 Tested up to: 4. 66 Tested up to: 4.7.2 7 7 Requires at least: 8 8 License: GPLv2 or later … … 62 62 63 63 = 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 = 64 68 * Fix: undefined use_image offset 65 69 * Fix: scroll to anchor option
Note: See TracChangeset
for help on using the changeset viewer.