|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/rabbithabit.com/public_html/themes/3/js/ |
Upload File : |
jQuery.noConflict();
jQuery(document).ready(function($){
jQuery('.toggle_menu span').click(function(){
if (jQuery('.toggle_menu span').hasClass('fa-bars')) {
jQuery('.toggle_menu span').removeClass( "fa-bars") ;
}
else {
jQuery('.toggle_menu span').addClass( "fa-bars") ;
}
jQuery('.res_nav').slideToggle();
});
//jQuery('.carousel').carousel()
jQuery('.close_search').click(function(){
jQuery('.search_box').slideUp();
});
//Sub Menu
jQuery('.main_nav ul li.have_sub').hover( function () {
jQuery('.nav_masking').show(); },
function () {
jQuery('.nav_masking').hide();
}
);
jQuery(".top_right_menu ul li.src span").click(function(){
//jQuery(".top_search").toggle();
jQuery('.search_box').slideDown();
});
jQuery('#accordion').find('.accordion-toggle').click(function(){
//Expand or collapse this panel
jQuery(this).next().slideToggle('fast');
//changes arrow
if( jQuery(this).find('.arrow').hasClass('arrowUp')){
jQuery(this).find('.arrow').removeClass('arrowUp').addClass('arrowDown');
} else {
jQuery('#accordion').find('.arrow').removeClass('arrowUp').addClass('arrowDown');
jQuery(this).find('.arrow').removeClass('arrowDown').addClass('arrowUp');
}
//Hide the other panels
jQuery(".accordion-content").not(jQuery(this).next()).slideUp('fast');
});
jQuery('.top_alertbtn').click(function(){
jQuery('.top_alert').slideUp() ;
});
// Select all links with hashes
jQuery('.arrow_down a[href*="#"], .product_detail_nv ul li a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.click(function(event) {
// On-page links
if (
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '')
&&
location.hostname == this.hostname
) {
// Figure out element to scroll to
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
// Does a scroll target exist?
if (target.length) {
// Only prevent default if animation is actually gonna happen
event.preventDefault();
$('html, body').animate({ scrollTop: target.offset().top
}, 500, function() {
// Callback after animation
// Must change focus!
var $target = $(target);
$target.focus();
if ($target.is(":focus")) { // Checking if the target was focused
return false;
} else {
$target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
$target.focus(); // Set focus again
};
});
}
}
});
});
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > 500){
jQuery('.header').addClass("fix_header animated fadeInDown");
//jQuery('.bottom_left_menu').addClass("lt_scroll animateds fadeIn");
}
else{
jQuery('.header').removeClass("fix_header animated fadeInDown");
//jQuery('.bottom_left_menu').removeClass("lt_scroll animateds fadeIn");
}
});
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 80) {
jQuery('.product_detail_nv_box').addClass('product_detail_nv_box_fix');
jQuery('.product_detail_nv_box').addClass('animated fadeInDown');
//jQuery('.product_browse_sub_in .product_browse_sub').addClass('product_browse_sub_fix animated fadeInDown');
//jQuery('.product_browse_sub_in .product_browse_sub .product_browse_sub_in').addClass('wrapp2');
} else {
jQuery('.product_detail_nv_box').removeClass('product_detail_nv_box_fix');
jQuery('.product_detail_nv_box').removeClass('animated fadeInDown');
//jQuery('.product_browse_sub_in .product_browse_sub').removeClass('product_browse_sub_fix animated fadeInDown');
//jQuery('.product_browse_sub_in .product_browse_sub .product_browse_sub_in').removeClass('wrapp2');
}
});
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 50) {
jQuery('.total_box').addClass('total_box_fix animated fadeInDown');
} else {
jQuery('.total_box').removeClass('total_box_fix animated fadeInDown');
}
});
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 50) {
jQuery('.edp').addClass('product_detail_handler');
} else {
jQuery('.edp').removeClass('product_detail_handler');
}
});
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 190) {
jQuery('.search_box').hide();
}
});