text: /*! Nobel Portfolio v0.0.1 | (c) 2020 Nobel Dahal | MIT License | http://link-to-your-git-repo.com */
  /*! Nobel Portfolio v0.0.1 | (c) 2020 Nobel Dahal | MIT License | http://link-to-your-git-repo.com */
  $(document).ready((function(){"use strict";function o(){$(window).scrollTop()>0?$(".header").addClass("active"):$(".header").removeClass("active")}function e(o){Array.from(document.querySelectorAll(o)).forEach((function(o){o.addEventListener("input",(function(e){""===e.target.value&&(o.dataset.touched=!1)})),o.addEventListener("invalid",(function(){o.dataset.touched=!0})),o.addEventListener("blur",(function(){""!==o.value&&(o.dataset.touched=!0)}))}))}$(".mobile-btn, .close-mob-menu").on("click",(function(){$(".mob-menu-wrapper").toggleClass("active")})),$(".mobile-menu ul li a").on("click",(function(){$(".mob-menu-wrapper").removeClass("active")})),$('.main-menu ul li a[href*="#"], .mobile-menu ul li a[href*="#"]').on("click",(function(o){o.preventDefault();var e=$(".header").outerHeight(),t=$(this);$("html, body").stop().animate({scrollTop:$(t.attr("href")).offset().top-e},800)})),$("div").is(".portfolio")&&mixitup(".portfolio",{animation:{duration:400,effectsIn:"fade translateY(-100%)",effectsOut:"fade translateY(-100%)"},selectors:{control:"[data-mixitup-control]"}}),$("#portfolio-modal").on("show.bs.modal",(function(o){var e=$(o.relatedTarget).data("name");$(this).find(".modal-body").hide(),$(".modal-body[data-name = "+e+"]").show()})),o(),$(window).on("scroll",(function(){o()})),$(document).on("hidden.bs.modal",".modal",(function(){$(".modal:visible").length?($(document.body).addClass("modal-open"),$(window).width()>991&&$(document.body).css({paddingRight:"17px"})):$(document.body).css({paddingRight:0})})),e(".js-modal-form .form-field"),e(".js-footer-form .form-field");var t=document.querySelector(".js-modal-form"),a=document.querySelector(".js-footer-form");function n(o,e){o.preventDefault();var t={name:$(e+" .js-field-name").val(),email:$(e+" .js-field-email").val(),message:$(e+" .js-field-message").val()};$.ajax({type:"POST",data:t,url:'https://formspree.io/mnqplrqy',success:function(){$("#contact-modal").modal("hide"),$("#thanks-modal").modal("show")},error:function(){console.log("error"),$("#contact-modal").modal("hide"),$("#thanks-modal").modal("show")}})}t.addEventListener("submit",(function(o){n(o,".js-modal-form")})),a.addEventListener("submit",(function(o){n(o,".js-footer-form")}))}));