portfolio/public/dist/app.min.js

2 lines
27 KiB
JavaScript
Raw Normal View History

2022-06-21 10:33:35 +00:00
/*! For license information please see app.min.js.LICENSE.txt */
2022-08-25 16:57:22 +00:00
(()=>{var e={"./assets/scripts/contact.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{contactFormSetup:()=>s});var n=o("./node_modules/axios/index.js"),r=o.n(n);function s(){const e=document.getElementById("contact-form");if(null==e)return;const t=document.getElementById("contact-form-name"),o=document.getElementById("contact-form-email"),n=document.getElementById("contact-form-subject"),s=document.getElementById("contact-form-message"),i=document.getElementById("contact-form-submit"),a=document.getElementById("contact-form-loading"),l=document.getElementById("contact-alert-success"),u=document.getElementById("contact-alert-error");e.onsubmit=e=>{e.preventDefault(),console.log("> Attempting to send a message",t.value,o.value,s.value);let c=i.textContent;a.style.display="block",i.style.display="none",r().post("https://contact-form.thingmill.fr/lefuturiste",{name:t.value,email:o.value,subject:n.value,message:s.value}).then((()=>{console.log("> Message sent"),l.style.display="block",a.style.display="none",i.style.display="block",i.textContent=c})).catch((e=>{u.style.display="block",console.error(e)}))}}},"./assets/scripts/mediaModal.js":(e,t,o)=>{"use strict";function n(){const e=document.getElementById("project-images-data");if(null==e)return;const t=JSON.parse(e.textContent);console.log("mediaData",t);let o=document.querySelector("#media-modal"),n=document.querySelector("#media-modal-content"),r=document.getElementById("caption"),s={},i=e=>{n.innerHTML="";let t=document.createAttribute("src");t.value=e.image;let o=null;o=document.createElement("img"),o.attributes.setNamedItem(t),n.appendChild(o),r.innerText=e.description};setTimeout((()=>{o.style=""}),500),window.openModal=e=>{o.style.visibility="visible",o.style.opacity=1,s=t.filter((t=>t.id===e))[0],i(s),document.body.style.overflow="hidden",document.body.style.touchAction="none",setTimeout((()=>{}),100)};window.closeModal=()=>{o.style.visibility="hidden",o.style.opacity=0,document.body.style.overflow="initial",document.body.style.height="initial",document.body.style.touchAction="initial"},window.navLeft=()=>{0!==t.indexOf(s)&&(s=t[t.indexOf(s)-1],i(s))},window.navRight=()=>{t.indexOf(s)+1!==t.length&&(s=t[t.indexOf(s)+1],i(s))}}o.r(t),o.d(t,{mediaModalSetup:()=>n})},"./assets/scripts/technologiesMosaic.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{technologiesMosaicSetup:()=>r});let n=!1;function r(){document.getElementById("tech-mosaic");const e=document.getElementById("tech-mosaic-container");document.getElementById("tech-mosaic-btn-container");window.openTechMosaic=()=>{e.className=n?e.className.replace(" opened"," closed"):e.className.replace(" closed"," opened"),n=!n}}},"./node_modules/axios/index.js":(e,t,o)=>{e.exports=o("./node_modules/axios/lib/axios.js")},"./node_modules/axios/lib/adapters/xhr.js":(e,t,o)=>{"use strict";var n=o("./node_modules/axios/lib/utils.js"),r=o("./node_modules/axios/lib/core/settle.js"),s=o("./node_modules/axios/lib/helpers/cookies.js"),i=o("./node_modules/axios/lib/helpers/buildURL.js"),a=o("./node_modules/axios/lib/core/buildFullPath.js"),l=o("./node_modules/axios/lib/helpers/parseHeaders.js"),u=o("./node_modules/axios/lib/helpers/isURLSameOrigin.js"),c=o("./node_modules/axios/lib/defaults/transitional.js"),d=o("./node_modules/axios/lib/core/AxiosError.js"),f=o("./node_modules/axios/lib/cancel/CanceledError.js"),p=o("./node_modules/axios/lib/helpers/parseProtocol.js");e.exports=function(e){return new Promise((function(t,o){var m,h=e.data,b=e.headers,x=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}n.isFormData(h)&&n.isStandardBrowserEnv()&&delete b["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",j=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";b.Authorization="Basic "+btoa(v+":"+j)}var _=a(e.baseURL,e.url);function E(){if(g){var n="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,s={data:x&&"text"!==x&&"json"!==x?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g};r((