View head-vs-header.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 lang="en"> | |
<head> | |
<!-- This is your document head.--> | |
<!-- It is not visible to the user, but it contains information for the browser,--> | |
<!-- like the title, seo meta tags and stylesheet links.--> | |
<!-- Docs; https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head --> | |
<title>Document</title> | |
</head> | |
<body> |
View steph.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
// Name: shoes | |
import "@johnlindquist/kit"; | |
let Jimp = await npm("jimp") | |
let text = await editor(` | |
## Enter a url per line | |
## Hit cmd+s to "continue" |
View RenderedBlocks.php
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
<?php | |
final class RenderedBlocks { | |
/** | |
* instance. | |
* | |
* @var RenderedBlocks $instance class instance. | |
*/ | |
private static $instance = null; |
View classlist-toggle-html.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
<div class="box"></div> | |
<button id="addClass">Add active class</button> | |
<button id="removeClass">Remove active class</button> | |
<button id="toggleClass">Toggle active class</button> | |
View classlist-remove-html.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
<div class="box"></div> | |
<button id="addClass">Add active class</button> | |
<button id="removeClass">Remove active class</button> | |
View classlist-add-html.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
<div class="box"></div> | |
<button id="addClass">Add active class</button> | |
View classlist-classname-basic.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
console.log( element.className ); | |
View classlist-contains-basic.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
element.classList.contains("classname"); | |
View classlist-toggle-js.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
const box = document.querySelector(".box"); | |
const toggleButton = document.querySelector('#toggleClass'); | |
toggleButton.addEventListener('click', () => { | |
box.classList.toggle("active"); | |
}); |
View classlist-toggle-basic.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
element.classList.toggle("classname"); | |
NewerOlder