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> <title> WAS test </title> | |
<style> | |
body { margin: 1rem auto; max-width: 35rem; padding: 0 .5rem; } | |
</style> | |
<h1> WAS test </h1> | |
<p><input type="reset" name="reset" value="Clear Form"></p> |
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> <title> Infinite content trap </title> | |
<style> | |
body { margin: 1rem auto; max-width: 35rem; } | |
button, | |
[ role *= button ] { | |
background: #eee; | |
border: 1px solid #ccc; | |
border-radius: 1px solid #ccc; |
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> <title> Exchange rate live-region </title> | |
<style> | |
body { font: 1rem sans-serif; margin: 1rem auto; max-width: 36rem; } | |
label { display: inline-block; width: 10rem; } | |
input { font-size: inherit; padding: .2rem 1rem; } | |
:invalid { background-color: pink; border-color: red; } | |
/* For screen readers. | |
*/ |
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
/** | |
* Calculate countdown in days, hours, minutes and seconds. | |
* | |
* @author Nick Freear, 06-May-2022. | |
* | |
* @see https://geeksforgeeks.org/create-countdown-timer-using-javascript/ | |
*/ | |
console.log('Countdown:', calcCountdown('2022-05-19')); | |
console.log('Countdown:', calcCountdown('dec 31, 2022 00:00:00.000 ')); |
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
/*! | |
ARIA Live Region Monitor Bookmarklet. | |
NDF, 29-April-2022. | |
https://stackoverflow.com/questions/3219758/detect-changes-in-the-dom, | |
https://developer.mozilla.org/en-US/docs/web/api/mutationobserver, | |
https://whatsock.github.io/visual-aria/github-bookmarklet/visual-aria.htm, | |
*/ |
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
/*auto-generated: 2022-04-18T21:50:42+01:00 */ | |
/*! | |
* jquery oembed plugin | |
* | |
* Copyright (c) 2009 Richard Chamorro | |
* Licensed under the MIT license | |
* | |
* Author: Richard Chamorro | |
*/ |
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> <title> Keyboard trap </title> | |
<style> | |
* { | |
outline-offset: 2px; | |
} | |
input { | |
X-border-radius: .2rem; | |
font-size: medium; |
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> <title> Animated Glow </title> | |
<style> | |
@keyframes glowing { | |
0% { | |
X-background-color: #2ba805; | |
X-box-shadow: 0 0 5px #2ba805; | |
outline-width: 0; | |
} |
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 lang="en"> <title> Grammar and spelling error tests </title> | |
<h1> Grammar and spelling error tests </h1> | |
<ul class="test" contenteditable="true"> | |
<li> I cantain spelling errors. </li> | |
<li> And, Ive got a missing apostrophe. </li> |