diff --git a/assets/js/script.js b/assets/js/script.js index e33b662..91a9a4d 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -19,21 +19,6 @@ $( document ).ready(function() { }); }); - $('#slider_1').owlCarousel({ - loop:true, - margin:10, - nav:false, - dots: true, - items: 1, - }) - $('#test-slider').owlCarousel({ - loop:true, - margin:10, - nav:false, - dots: true, - items: 1, - }) - $("#contactForm").submit(function(e){ e.preventDefault(); diff --git a/assets/js/script.min.js b/assets/js/script.min.js index ce5b3b2..e52aaf4 100644 --- a/assets/js/script.min.js +++ b/assets/js/script.min.js @@ -1 +1 @@ -$(document).ready(function(){$(window).scroll(function(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")}),$(function(){$("a.page-scroll").bind("click",function(t){var e=$(this);$("html, body").stop().animate({scrollTop:$(e.attr("href")).offset().top},1500,"easeInOutExpo"),t.preventDefault()})}),$("#slider_1").owlCarousel({loop:!0,margin:10,nav:!1,dots:!0,items:1}),$("#test-slider").owlCarousel({loop:!0,margin:10,nav:!1,dots:!0,items:1}),$("#contactForm").submit(function(t){t.preventDefault();var e=jQuery,a=e(this).serializeArray(),s=e(this).attr("action"),o=e("#contactFormResponse"),r=e("#cfsubmit"),n=r.text();return r.text("Sending..."),e.ajax({url:s,type:"POST",data:a,success:function(t){o.html(t),r.text(n)},error:function(t){alert("Error occurd! Please try again")}}),!1})}),$("#subscription-form").submit(function(t){t.preventDefault();var e=$("#subscription-form"),a=$("#subscribe-button"),s=$("#subscription-response"),o=$("#subscriber-email").val();$.ajax({type:"POST",url:"php/subscribe.php",dataType:"json",data:{email:o},cache:!1,beforeSend:function(t){a.html("Working...")},success:function(t){1==t.sendstatus?(s.html(t.message),e.fadeOut(500)):(s.html(t.message),a.html(' Get it'))},error:function(){a.html(' Get it')}})}); \ No newline at end of file +$(document).ready(function(){$(window).scroll(function(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")}),$(function(){$("a.page-scroll").bind("click",function(t){var e=$(this);$("html, body").stop().animate({scrollTop:$(e.attr("href")).offset().top},1500,"easeInOutExpo"),t.preventDefault()})}),$("#contactForm").submit(function(t){t.preventDefault();var e=jQuery,a=e(this).serializeArray(),s=e(this).attr("action"),n=e("#contactFormResponse"),o=e("#cfsubmit"),r=o.text();return o.text("Sending..."),e.ajax({url:s,type:"POST",data:a,success:function(t){n.html(t),o.text(r)},error:function(t){alert("Error occurd! Please try again")}}),!1})}),$("#subscription-form").submit(function(t){t.preventDefault();var e=$("#subscription-form"),a=$("#subscribe-button"),s=$("#subscription-response"),n=$("#subscriber-email").val();$.ajax({type:"POST",url:"php/subscribe.php",dataType:"json",data:{email:n},cache:!1,beforeSend:function(t){a.html("Working...")},success:function(t){1==t.sendstatus?(s.html(t.message),e.fadeOut(500)):(s.html(t.message),a.html(' Get it'))},error:function(){a.html(' Get it')}})}); \ No newline at end of file