Current File : /home/itiffy/public_html/blog/wp-content/themes/itiffyblog/assets/js/custom.js |
// JavaScript Document
wow = new WOW(
{
animateClass: 'animated',
offset: 100
}
);
wow.init();
if ($().appear) {
if (($.browser.mobile)||($.isiPad)) {
// disable animation on mobile
$("body").removeClass("withAnimation");
} else {
$('.withAnimation .animated').appear(function () {
var $this = $(this);
$this.each(function () {
$this.addClass('activate');
$this.addClass($this.data('fx'));
});
}, {accX: 50, accY: -150});
}
}
$(document).ready(function(){
$(".projects .project").each(function(e) {
if (e != 0)
$(this).hide();
});
$("#next").click(function(){
if ($(".projects .project:visible").next().length != 0)
$(".projects .project:visible").next().show().prev().hide();
else {
$(".projects .project:visible").hide();
$(".projects .project:first").show();
}
return false;
});
$("#prev").click(function(){
if ($(".projects .project:visible").prev().length != 0)
$(".projects .project:visible").prev().show().next().hide();
else {
$(".projects .project:visible").hide();
$(".projects .project:last").show();
}
return false;
});
});
$(document).ready(function(){
$(".latestprojects .latestproject").each(function(e) {
if (e != 0)
$(this).hide();
});
$("#next2").click(function(){
if ($(".latestprojects .latestproject:visible").next().length != 0)
$(".latestprojects .latestproject:visible").next().show().prev().hide();
else {
$(".latestprojects .latestproject:visible").hide();
$(".latestprojects .latestproject:first").show();
}
return false;
});
$("#prev2").click(function(){
if ($(".latestprojects .latestproject:visible").prev().length != 0)
$(".latestprojects .latestproject:visible").prev().show().next().hide();
else {
$(".latestprojects .latestproject:visible").hide();
$(".latestprojects .latestproject:last").show();
}
return false;
});
});
$(document).ready(function() {
$(".portfolio-banner-section03 ul li a").click(function() {
$('.portfolio-banner-section03 ul li a').removeClass();
$(this).addClass('active');
var index = $('.portfolio-banner-section03 ul li a').index($(this));
$('.portfolio-tab-details > div.tab-content').hide();
$('.portfolio-tab-details > div.tab-content').filter(':eq(' + index + ')').show();
});
});
$(document).ready(function() {
$(".tab-section ul li a").click(function() {
$('.tab-section ul li a').removeClass();
$(this).addClass('active');
var index = $('.tab-section ul li a').index($(this));
$('.tab-details > div.tab-content').hide();
$('.tab-details > div.tab-content').filter(':eq(' + index + ')').show();
});
});
jQuery(document).ready(function() {
jQuery('#menu-portfolio').click(function(d) {
d.preventDefault();
jQuery('#nav-portfolio').slideToggle(400);
jQuery('#nav-services').hide();
jQuery('#nav-all').hide();
});
});
jQuery(document).ready(function() {
jQuery('#menu-services').click(function(d) {
d.preventDefault();
jQuery('#nav-services').slideToggle(400);
jQuery('#nav-portfolio').hide();
jQuery('#nav-all').hide();
});
});
jQuery(document).ready(function() {
jQuery('#menu-all').click(function(d) {
d.preventDefault();
jQuery('#nav-all').slideToggle(400);
jQuery('#nav-portfolio').hide();
jQuery('#nav-services').hide();
});
jQuery("#paypal_form").click(function() {
jQuery(".form_paypal").show();
jQuery(".header-section").addClass('sudip2');
jQuery(".responsive-header-section").addClass('sudip2');
jQuery("body").addClass('sudip');
});
jQuery(".form_paypal .close").click(function() {
jQuery(".form_paypal").hide();
jQuery(".header-section").removeClass('sudip2');
jQuery(".responsive-header-section").removeClass('sudip2');
jQuery("body").removeClass('sudip');
});
});