????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls-2/js/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls-2/js/custom.js |
jQuery(document).ready(function($) {
$(".image-cs-tab a").click(function(event) {
event.preventDefault();
// $(this).parent().addClass("current");
// $(this).parent().siblings().removeClass("current");
var tab = $(this).attr("href");
$(".img-tab-content").not(tab).css("display", "none");
$(tab).fadeIn();
});
$(".image-cs-tab2 a").click(function(event) {
event.preventDefault();
// $(this).parent().addClass("current");
// $(this).parent().siblings().removeClass("current");
var tab = $(this).attr("href");
$(".img-tab-content2").not(tab).css("display", "none");
$(tab).fadeIn();
});
$(".color-icon-img-item a").click(function(event) {
event.preventDefault();
// $(this).parent().addClass("current");
// $(this).parent().siblings().removeClass("current");
var tab = $(this).attr("href");
$(".color-icon-text-item").not(tab).css("display", "none");
$(tab).fadeIn();
});
$(".color-icon-img-item a").hover(function(event) {
event.preventDefault();
// $(this).parent().addClass("current");
// $(this).parent().siblings().removeClass("current");
var tab = $(this).attr("href");
$(".color-icon-text-item").not(tab).css("display", "none");
$(tab).fadeIn();
});
$('.expand-reviews').click(function(e){
e.preventDefault();
$('.des-testi2').show();
$('.des-testi1').hide();
$('.expand-reviews').hide();
});
$('.m-menu-btn').click(function(){
$('.sticky-mobile-menu').show();
});
$('.ms-close-arrow').click(function(){
$('.sticky-mobile-menu').hide();
});
if ($("video")[0] !== undefined) $("video")[0].autoplay = true;
// $("video").click( function (){
// $(this).prop('muted', !$(this).prop('muted'));
// });
$('#slide-147-layer-2').attr('data-volumes="mutes"');
$(window).scroll(function(){
var sticky = $('.sticky-top-header'),
scroll = $(window).scrollTop();
if (scroll >= 100) sticky.addClass('');
else sticky.removeClass('');
});
});