View --color-rgb-varying-opacity-example.html
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, width=device-width"> | |
<style visible> | |
:root { --color-rgb: 8, 10, 60 } | |
</style> | |
<style> |
View ios-safari-box-shadow-circle-bug-repro.html
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
<title>iOS Safari bug: incorrect rendering of box-shadow on 19.2px square element with 50% border-radius</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, width=device-width"> | |
<style> | |
html { | |
font-size: 16px; | |
} |
View plink-plonk.js
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
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
View pre-2020-google-search-results.css
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. Updated Sep 5, 2022 */ | |
#search a:has(>br):has(>h3):has(>div) br { | |
display: none; | |
} | |
#search a:has(>br):has(>h3):has(>div) h3 { | |
display: block; | |
} |
View scroll-overflow-proof-of-concept.html
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> | |
<title>­</title> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
View subdomain-input.html
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
<form> | |
<div prefix-editor suffix=".adamschwartz.com" spellcheck="false" autocomplete="false"> | |
<input type="text"> | |
</div> | |
</form> | |
<script> | |
(() => { | |
const editorEl = document.querySelector('[prefix-editor]') | |
const inputEl = editorEl.querySelector('input') |
View rainbow-donut-spinner.html
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
<style> | |
:root { | |
--background: #000; | |
--rainbow-1: #e91e63; | |
--rainbow-2: #9c27b0; | |
--rainbow-3: #3f51b5; | |
--rainbow-4: #2196f3; | |
--rainbow-5: #00bcd4; | |
--rainbow-6: #4caf50; | |
--rainbow-7: #cddc39; |
View gist:099acd44bd6a1b6eb9e6b716eb0dfd16
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
▲ ● ■ |
View matter-js-fix-compound-body-hull-after-part-position-change.html
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
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.12.0/matter.js"></script> | |
<script> | |
const Engine = Matter.Engine | |
const Render = Matter.Render | |
const Runner = Matter.Runner | |
const MouseConstraint = Matter.MouseConstraint | |
const Mouse = Matter.Mouse | |
const World = Matter.World |
View matter-js-compound-body-set-position-then-set-parts.html
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
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.12.0/matter.js"></script> | |
<script> | |
const Engine = Matter.Engine | |
const Render = Matter.Render | |
const Runner = Matter.Runner | |
const MouseConstraint = Matter.MouseConstraint | |
const Mouse = Matter.Mouse | |
const World = Matter.World |
NewerOlder