- Posts: 32
- Thank you received: 0
Site will not scroll properly
-
graeme
Inactive member - Topic Author
- Member
Less
More
3 years 3 months ago #48045
by graeme
Replied by graeme on topic Site will not scroll properly
How do I turn it off, I have been through every row setting, can this be overidden somewhere?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
3 years 3 months ago - 3 years 3 months ago #48047
by milos
Replied by milos on topic Site will not scroll properly
Hello,
Edit this file /templates/hot_plumber/js/sparky-footer-id92-210910103154.js and delete this:
Regards,
Milos
Edit this file /templates/hot_plumber/js/sparky-footer-id92-210910103154.js and delete this:
Code:
// jQuery.appear
// Copyright (c) 2009 Michael Hixson
// Copyright (c) 2012-2014 Alexander Brovikov
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
// Source: https://github.com/bas2k/jquery.appear/
!function(a){a.fn.appear=function(t,e){var i=a.extend({data:void 0,one:!0,accX:0,accY:0},e);return this.each(function(){var e=a(this);if(e.appeared=!1,!t)return void e.trigger("appear",i.data);var n=a(window),r=function(){if(!e.is(":visible"))return void(e.appeared=!1);var a=n.scrollLeft(),t=n.scrollTop(),r=e.offset(),p=r.left,o=r.top,c=i.accX,s=i.accY,d=e.height(),f=n.height(),h=e.width(),l=n.width();o+d+s>=t&&t+f+s>=o&&p+h+c>=a&&a+l+c>=p?e.appeared||e.trigger("appear",i.data):e.appeared=!1},p=function(){if(e.appeared=!0,i.one){n.unbind("scroll",r);var p=a.inArray(r,a.fn.appear.checks);p>=0&&a.fn.appear.checks.splice(p,1)}t.apply(this,arguments)};i.one?e.one("appear",i.data,p):e.bind("appear",i.data,p),n.scroll(r),a.fn.appear.checks.push(r),r()})},a.extend(a.fn.appear,{checks:,timeout:null,checkAll:function(){var t=a.fn.appear.checks.length;if(t>0)for(;t--;)a.fn.appear.checks[t]()},run:function(){a.fn.appear.timeout&&clearTimeout(a.fn.appear.timeout),a.fn.appear.timeout=setTimeout(a.fn.appear.checkAll,20)}}),a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,e){var i=a.fn[e];i&&;(a.fn[e]=function(){var t=i.apply(this,arguments);return a.fn.appear.run(),t})})}(jQuery),jQuery(document).ready(function(a){a(".img-with-animation").each(function(){a(this).appear(function(){"fade-in-from-left"==a(this).attr("data-animation")?a(this).delay(a(this).attr("data-delay")).animate({opacity:1,left:"0px"},800,"easeOutSine"):"fade-in-from-right"==a(this).attr("data-animation")?a(this).delay(a(this).attr("data-delay")).animate({opacity:1,right:"0px"},800,"easeOutSine"):"fade-in-from-bottom"==a(this).attr("data-animation")?a(this).delay(a(this).attr("data-delay")).animate({opacity:1,bottom:"0px"},800,"easeOutSine"):"fade-in"==a(this).attr("data-animation")?a(this).delay(a(this).attr("data-delay")).animate({opacity:1},800,"easeOutSine"):"grow-in"==a(this).attr("data-animation")&&a(this).delay(a(this).attr("data-delay")).animate({transform:"scale(1,1)",opacity:1},800,"easeOutSine")},{accX:0,accY:-105},"easeInCubic")})});
// Floating row
jQuery(document).ready(function() {
jQuery(window).scroll(function() {
var stopScrollHeight = 300;
var currentScrollLevel = jQuery(window).scrollTop();
if ( currentScrollLevel >= stopScrollHeight ) {
jQuery(".floating").addClass("fix_menu topmenushow");
}else{
jQuery(".floating").removeClass("fix_menu topmenushow");
}
});
});
Regards,
Milos
Last edit: 3 years 3 months ago by milos.
Please Log in to join the conversation.
-
graeme
Inactive member - Topic Author
- Member
Less
More
- Posts: 32
- Thank you received: 0
3 years 3 months ago #48048
by graeme
Replied by graeme on topic Site will not scroll properly
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
3 years 3 months ago #48049
by milos
Replied by milos on topic Site will not scroll properly
My bad, sorry. Edit file "sparky_js_footer.php" and then delete everything under this comment:
and everything under this comment:
When it's done, go to the template settings, and save the settings once.
Thanks
Code:
////////////// jQuery Appear
////////////////////////////
and everything under this comment:
Code:
////////////// Floating row
///////////////////////////
When it's done, go to the template settings, and save the settings once.
Thanks
Please Log in to join the conversation.
-
graeme
Inactive member - Topic Author
- Member
Less
More
- Posts: 32
- Thank you received: 0
3 years 3 months ago #48050
by graeme
Replied by graeme on topic Site will not scroll properly
Done, unfortunately not solved. Sorry
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
3 years 3 months ago #48051
by milos
Replied by milos on topic Site will not scroll properly
If you delete this from "sparky_js_footer.php" and if you saved template settings, then this code must not be in the dynamically generated JS file. However, this code is still there and one of the rows is still floating.
So, you are probably editing the wrong files or wrong Joomla instance, not the one for www.posterworks.co.za/index.php
Please double check this.
So, you are probably editing the wrong files or wrong Joomla instance, not the one for www.posterworks.co.za/index.php
Please double check this.
Please Log in to join the conversation.
Time to create page: 0.095 seconds