D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
designpitara.com
/
js
/
Filename :
main.js
back
Copy
!function(e){"use strict";e(window).on("load",function(){e("#preloader").fadeOut("slow",function(){e(this).remove()})}),e(".venobox").venobox(),e(".search-option").hide(),e(".main-search").on("click",function(){e(".search-option").animate({height:"toggle"})});var o=e(window),t=e("#sticker");o.on("scroll",function(){o.scrollTop()<100?t.removeClass("stick"):t.addClass("stick")}),e("nav#dropdown").meanmenu(),e.scrollUp({scrollText:'<i class="fa fa-angle-up"></i>',easingType:"linear",scrollSpeed:900,animation:"fade"}),e(".counter").counterUp({delay:40,time:3e3});var i=e(".panel-heading a");function a(){e("#contactForm").removeClass().addClass("shake animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e(this).removeClass()})}function n(o,t){if(o)var i="h3 text-center tada animated text-success";else i="h3 text-center text-danger";e("#msgSubmit").removeClass().addClass(i).text(t)}i.on("click",function(){i.removeClass("active"),e(this).addClass("active")}),e(window).stellar({responsive:!0,positionProperty:"position",horizontalScrolling:!1}),e(".video-play").magnificPopup({type:"iframe"}),e(".intro-carousel").owlCarousel({loop:!0,nav:!0,autoplay:!0,dots:!1,navText:["<i class='icon icon-chevron-left'></i>","<i class='icon icon-chevron-right'></i>"],responsive:{0:{items:1},600:{items:1},1000:{items:1}}}),e(".project-carousel").owlCarousel({loop:!0,nav:!1,autoplay:!0,dots:!1,responsive:{0:{items:1},700:{items:2},1000:{items:4}}}),e(".team-carousel").owlCarousel({loop:!0,nav:!1,autoplay:!0,dots:!1,margin:30,responsive:{0:{items:1},700:{items:1},1000:{items:2}}}),e(window).on("load",function(){var o=e(".project-content");o.isotope({filter:"*",animationOptions:{duration:750,easing:"linear",queue:!1}}),e(".project-menu li a").on("click",function(){e(".project-menu li a.active").removeClass("active"),e(this).addClass("active");var t=e(this).attr("data-filter");return o.isotope({filter:t,animationOptions:{duration:750,easing:"linear",queue:!1}}),!1})}),e(".header-right-link .slice-btn").length&&(e(".header-right-link .slice-btn").on("click",function(o){o.preventDefault(),e("body").addClass("visible-appointment")}),e(".appointment-wrapper .appoint-box .cross-icon,.layer-drop").on("click",function(o){o.preventDefault(),e("body").removeClass("visible-appointment")})),e(".testimonial-carousel").owlCarousel({loop:!0,nav:!1,margin:15,lazyLoad:!0,dots:!0,autoplay:!0,responsive:{0:{items:1},768:{items:2},1000:{items:2}}}),e(".project-carousel-2").owlCarousel({loop:!0,nav:!0,autoplay:!0,navText:["<i class='icon icon-chevron-left'></i>","<i class='icon icon-chevron-right'></i>"],dots:!1,responsive:{0:{items:1},600:{items:1},1000:{items:1}}}),e("#contactForm").on("submit",function(o){var t,i,s,l;o.isDefaultPrevented()?(a(),n(!1,"Did you fill in the form properly?")):(o.preventDefault(),t=e("#name").val(),i=e("#email").val(),s=e("#msg_subject").val(),l=e("#message").val(),e.ajax({type:"POST",url:"assets/contact.php",data:"name="+t+"&email="+i+"&msg_subject="+s+"&message="+l,success:function(o){"success"===o?(e("#contactForm")[0].reset(),n(!0,"Message Submitted!")):(a(),n(!1,o))}}))})}(jQuery);