Skip to content

Instantly share code, notes, and snippets.

<script>
var projectTitle;
var projectTitleText = document.querySelector('.centered-content > h4');
var checkGallery = document.querySelector('.gallery-section')
var link = window.location.href + '?format=json-pretty';
fetch(link).then(response => {
console.log('success', response);
return response.json();
}).then(data => {
console.log(data.collection.title);
<script>
var newSummaryCTA = 'Learn More About This';
var getSummaryCTA = document.querySelectorAll('.summary-read-more-link');
getSummaryCTA.forEach(item => {item.textContent = newSummaryCTA });
</script>
figcaption.image-caption-wrapper {
height: 100% !important;
top: 0 !important;
max-height: 100% !important;
display: flex;
justify-content: center;
align-items: center;
}
/* Add this code to Design -> Custom CSS */
header.Header.Header--top, .sqs-announcement-bar-dropzone {
position:fixed !important;
width: 100%;
z-index: 999 !important;
}
/* Add this code to Design -> Custom CSS */
.arch-style {
/* add your styles here */
}
// Add this code to Settings -> Advanced -> Code Injection -> Footer
<script>
window.addEventListener('load', function(){
var getBleedImages = document.querySelectorAll('img[alt*="bleed"]');
getBleedImages.forEach(item => item.parentNode.parentNode.classList.add('full-width'));
});
</script>
<script>
var mainHeader = document.querySelector('header');
var mainHeaderHeight = mainHeader.getBoundingClientRect().height
var addBg = function(){
mainHeader.classList.add('new-bg');
}
var removeBg = function(){
@ryandejaegher
ryandejaegher / menu.html
Created June 24, 2020 20:15
Custom Overlay menu
<header class="custom-header">
<div class="custom-header-left">
<button onclick="toggleOverlay()"><svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 9.00369C24.8295 9.00369 25.5019 8.3313 25.5019 7.50185C25.5019 6.6724 24.8295 6 24 6C23.1706 6 22.4982 6.6724 22.4982 7.50185C22.4982 8.3313 23.1706 9.00369 24 9.00369Z" fill="black"/>
<path d="M24 14.4998C24.8295 14.4998 25.5019 13.8274 25.5019 12.9979C25.5019 12.1685 24.8295 11.4961 24 11.4961C23.1706 11.4961 22.4982 12.1685 22.4982 12.9979C22.4982 13.8274 23.1706 14.4998 24 14.4998Z" fill="black"/>
<path d="M24 20.0008C24.8295 20.0008 25.5019 19.3283 25.5019 18.4989C25.5019 17.6695 24.8295 16.9971 24 16.9971C23.1706 16.9971 22.4982 17.6695 22.4982 18.4989C22.4982 19.3283 23.1706 20.0008 24 20.0008Z" fill="black"/>
<path d="M24 25.5019C24.8295 25.5019 25.5019 24.8295 25.5019 24C25.5019 23.1706 24.8295 22.4982 24 22.4982C23.1706 22.4982 22.4982 23.1706 22.4982 24C22.4982 24.8295 23.1706 25.5019 24 2
@ryandejaegher
ryandejaegher / menu.html
Created June 24, 2020 20:15
Custom Overlay menu
<header class="custom-header">
<div class="custom-header-left">
<button onclick="toggleOverlay()"><svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24 9.00369C24.8295 9.00369 25.5019 8.3313 25.5019 7.50185C25.5019 6.6724 24.8295 6 24 6C23.1706 6 22.4982 6.6724 22.4982 7.50185C22.4982 8.3313 23.1706 9.00369 24 9.00369Z" fill="black"/>
<path d="M24 14.4998C24.8295 14.4998 25.5019 13.8274 25.5019 12.9979C25.5019 12.1685 24.8295 11.4961 24 11.4961C23.1706 11.4961 22.4982 12.1685 22.4982 12.9979C22.4982 13.8274 23.1706 14.4998 24 14.4998Z" fill="black"/>
<path d="M24 20.0008C24.8295 20.0008 25.5019 19.3283 25.5019 18.4989C25.5019 17.6695 24.8295 16.9971 24 16.9971C23.1706 16.9971 22.4982 17.6695 22.4982 18.4989C22.4982 19.3283 23.1706 20.0008 24 20.0008Z" fill="black"/>
<path d="M24 25.5019C24.8295 25.5019 25.5019 24.8295 25.5019 24C25.5019 23.1706 24.8295 22.4982 24 22.4982C23.1706 22.4982 22.4982 23.1706 22.4982 24C22.4982 24.8295 23.1706 25.5019 24 2