File: /home/kashmira/public_html/razitahir.com/wp-content/themes/upress/inc/footer-scripts.php
<script>
    smoothScroll.init({updateURL: false});
</script>
<script type="text/javascript">
jQuery(document).ready(function(){
  jQuery('#breakingNews').ticker();
});
</script>
<?php 
	if(get_theme_mod('preloader_setting') == true) {
?>
<!-- Preloader -->
<script type="text/javascript">
	//<![CDATA[
		jQuery(window).load(function() { // makes sure the whole site is loaded
			jQuery('#loader').fadeOut(); // will first fade out the loading animation
			jQuery('#loader-wrapper').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
			jQuery('body').delay(350).css({'overflow':'visible'});
		})
	//]]>
function close_preloader () {
	jQuery('#loader-wrapper').delay(350).fadeOut('slow');
	jQuery('body').delay(350).css({'overflow':'visible'});
}
</script>
<?php } else { ?>
<style type="text/css" media="screen">
body{
	overflow: visible;
}	
</style>
<?php } ?>
<?php
	if(get_theme_mod('stickynav_setting',false) && get_theme_mod('stickynav_setting') == true) {
?>
<script>
(function($) {
        
	$(window).scroll(function(){
        if ($(this).scrollTop() > 400) {
            $('#main-nav').addClass("sticknav animated fadeIn");
        } else {
            $('#main-nav').removeClass("sticknav animated fadeIn");
        }
    });
       
})(jQuery);
</script>
<?php } ?>
<?php 
	if(get_theme_mod('backtotop_setting',true) && get_theme_mod('backtotop_setting') == true) {
?>
<script>
(function($) {
        
	$(window).scroll(function(){
        if ($(this).scrollTop() > 200) {
            $('#scrollup').fadeIn(300);
        } else {
            $('#scrollup').fadeOut(300);
        }
    });
       
})(jQuery);
</script>
<?php } ?>
<?php if(get_theme_mod('backtotop_setting', true) == true) {?>
<a data-scroll href="#masthead" id="scrollup"><i class="icon-up-open"></i></a>
<?php } ?>
<script type="text/javascript">
	var ww = document.body.clientWidth;
	$(document).ready(function() {
	    $(".menu li a").each(function() {
	        if ($(this).next().length > 0) {
	            $(this).addClass("parent");
	        };
	    })
	    adjustMenu();
	})
	$(window).bind('resize orientationchange', function() {
	    ww = document.body.clientWidth;
	    adjustMenu();
	});
	var adjustMenu = function() {
	    if (ww < 768) {
	        $(".menu li").unbind('mouseenter mouseleave');
	        $(".menu li a.parent").unbind('click').bind('click', function(e) {
	            // must be attached to anchor element to prevent bubbling
	            e.preventDefault();
	            $(this).parent("li").toggleClass("hover");
	        });
	    } else if (ww >= 768) {
	        $(".menu").show();
	        $(".menu li").removeClass("hover");
	        $(".menu li a").unbind('click');
	        $(".menu li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() {
	            // must be attached to li so that mouseleave is not triggered when hover over submenu
	            $(this).toggleClass('hover');
	        });
	    }
	}
</script>