This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Grab the prefers reduced media query. | |
const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)"); | |
const locationSection = document.querySelector("#location"); | |
const headingAnimation = document.querySelector("#heading"); | |
const fourUp = document.querySelectorAll(".four-up-image"); | |
const fourUpOne = document.querySelector(".four-up-image._1"); | |
const fourUpTwo = document.querySelector(".four-up-image._2"); | |
const fourUpThree = document.querySelector(".four-up-image._3"); | |
const fourUpFour = document.querySelector(".four-up-image._4"); | |
const locationLarge = document.querySelector("#location-large"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, merge, | |
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or | |
substantial portions of the Software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to the following | |
conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const submit = document.querySelector("#submit"); | |
const honeypot = document.querySelector("#work-email"); | |
honeypot.oninput = function () { | |
if (honeypot.value.length > 0) { | |
submit.disabled = true; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.business { | |
position: absolute; | |
left: 0%; | |
top: 0%; | |
right: auto; | |
bottom: auto; | |
z-index: -1; | |
overflow: hidden; | |
width: 0px; | |
height: 0px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = input.config({ | |
title: "Script Settings", | |
items: [ | |
input.config.text("webflowAPI", { | |
label: "Webflow API Key", | |
}), | |
input.config.text("collectionID", { | |
label: "Collection ID", | |
}), | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://player.vimeo.com/api/player.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On document ready, let's fetch some data | |
window.addEventListener("DOMContentLoaded", (event) => { | |
const handleError = (response) => { | |
if (!response.ok) { | |
throw Error(` ${response.status} ${response.statusText}`); | |
} else { | |
return response.json(); | |
} | |
}; //handler function that throws any encountered error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function writeJobs() { | |
jobIds.forEach((jobId) => { | |
const handleError = (response) => { | |
if (!response.ok) { | |
throw Error(` ${response.status} ${response.statusText}`); | |
} else { | |
return response.json(); | |
} | |
}; | |
fetch( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Triggers when the DOM is ready | |
window.addEventListener("DOMContentLoaded", (event) => { | |
const handleError = (response) => { | |
if (!response.ok) { | |
throw Error(` ${response.status} ${response.statusText}`); | |
} else { | |
return response.json(); | |
} | |
}; | |
fetch( |