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
/* | |
* Add hover effect showing alt tag of images | |
* with Squarespace 7.1 fluid image containers | |
* John F Morton - https://supergeekery.com | |
*/ | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
const imageContainers = document.querySelectorAll('.fluid-image-container.sqs-image-content') |
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
webimage_extra_packages: | |
[ | |
gconf-service, | |
libasound2, | |
libatk1.0-0, | |
libcairo2, | |
libgconf-2-4, | |
libgdk-pixbuf2.0-0, | |
libgtk-3-0, | |
libnspr4, |
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
{ | |
"HTML.SafeIframe": true, | |
"URI.SafeIframeRegexp": "%^(https?:)?//(www.youtube.com/|youtube.com/|youtu.be/|player.vimeo.com/)%" | |
} |
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
document.addEventListener('DOMContentLoaded', (event) => { | |
// Find all oembed elements | |
const oembedElements = document.querySelectorAll('oembed[url]'); | |
oembedElements.forEach(element => { | |
const url = element.getAttribute('url'); | |
let videoId: string | null; | |
if (!url) return; | |
videoId = extractYouTubeId(url); |
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
{ | |
"alignment": { | |
"options": [ | |
"left", | |
"center", | |
"right" | |
] | |
}, | |
"code": { | |
"indentSequence": " " |
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> | |
document.addEventListener('DOMContentLoaded', (event) => { | |
// Find all oembed elements | |
const oembedElements = document.querySelectorAll('oembed[url]'); | |
oembedElements.forEach(element => { | |
const url = element.getAttribute('url'); | |
const videoId = extractYouTubeId(url); | |
if (videoId) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Don't iFrame Me, Bro.</title> | |
<style type="text/css"> | |
body { | |
background: white; | |
font-size: 2rem; |
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
/* | |
References for this reset | |
Video explanation: | |
https://youtu.be/345V2MU3E_w?si=DCYNR9sQjp-cirs9 | |
The Ultimate Low-Quality Image Placeholder Technique: | |
https://csswizardry.com/2023/09/the-ultimate-lqip-lcp-technique/ |
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
// This is a small fix for the sticky header position for Doxter, https://github.com/verbb/doxter | |
// I've included it in the Craft CMS control panel with another plugin, https://github.com/doublesecretagency/craft-cpjs | |
// but it could also be included in a custom module. | |
let resizeTimeout | |
let styleTag | |
let ruleIndex | |
window.addEventListener('resize', () => { | |
clearTimeout(resizeTimeout) |
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
version: "3.3" | |
services: | |
mail: | |
image: bytemark/smtp | |
networks: | |
- default | |
restart: always | |
plausible_db: | |
# supported versions are 12, 13, and 14 |
NewerOlder