Hi
Please can you assist me, I need to get the code that appears at the bottom of my site away and am not sure how to do it.
My Site is http://www.centralstation.co.za
This is the code:
jQuery(function($) { var $body = $(‘body’); var adminbarHeight = $(’#wpadminbar’).outerHeight(); if ( $(’.x-navbar-fixed-top-active .x-navbar’).length > 1 ){ var navbarFixedTopHeight = $(’.x-navbar-fixed-top-active .x-navbar’).outerHeight(); } else { var navbarFixedTopHeight = $(’.x-masthead’).outerHeight(); } var locHash = null; var dragging = false; var locHashIndex = location.href.indexOf(’#’); if ( -1 !== locHashIndex ) { locHash = location.href.substr(locHashIndex).split(’/’)[0]; } $body.on(‘touchmove’, function() { dragging = true; } ); $body.on(‘touchstart’, function() { dragging = false; } ); // // Calculate the offset height for various elements and remove it from // the element’s top offset so that fixed elements don’t cover it up. // function animateOffset( element, ms, easing ) { if ( ! element ) { return; } try { var $el = $(element); } catch(error) { // abort on invalid selectors. see #610 return; } if ( ! $el || 0 == $el.length ) { return; } $(‘html, body’).animate({ scrollTop: $el.offset().top - adminbarHeight - navbarFixedTopHeight + 1 }, ms, easing); } // // Page load offset (if necessary). // $(window).load(function() { animateOffset(locHash, 1, ‘ease’); }); // // Scroll trigger. // $(‘a[href*="#"]’).on(‘touchend click’, function(e) { href = $(this).attr(‘href’); notComments = href.indexOf(’#comments’) === -1; if ( href !== ‘#’ && notComments ) { var theId = href.split(’#’).pop(); var $el = $(’#’ + theId); if ( $el.length > 0 ) { e.preventDefault(); if (dragging) { return; } animateOffset($el, 850, ‘easeInOutExpo’); } } }); });
