This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
js.316d108e.js
3 lines (3 loc) · 1.96 KB
/
js.316d108e.js
1
2
3
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"rIon":[function(require,module,exports) {
$(function(){$(".js-form").submit(function(e){e.preventDefault();var t="htraeDOTdlogdnarebmaATrebma ".replace("AT","@").replace("DOT",".").split("").reverse().join(""),n=$(this),a=$(this).parent(),r=a.find(".js--form-success-message"),s=a.find(".js--form-error-message"),i=function(e){for(var t=e.serializeArray(),n={date:(new Date).toISOString()},a=0;a<t.length;a++)n[t[a].name]=t[a].value;return JSON.stringify(n)}(n);$.ajax({type:"POST",url:"https://i5p14mqknl.execute-api.ap-southeast-2.amazonaws.com/Prod/submitForm",contentType:"application/json",data:i,beforeSend:function(){$(".js--submit-button").prop("disabled",!0)},success:function(e){n.addClass("m--hidden"),r.removeClass("m--hidden"),s.addClass("m--hidden")},error:function(e,n,a){s.append(t).removeClass("m--hidden")}})}),$("details button").click(function(e){var t=e.target.parentElement;t.removeAttribute("open"),t.parentElement.scrollIntoView(!0)})});
},{}]},{},["rIon"], null)