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 | |
/** | |
* GMIP | |
* | |
* @package GMIP | |
* @author Stephan Nijman | |
* @copyright 2024 Granmedia | |
* @license GPL-2.0-or-later | |
* @version 1.0.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"> | |
<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> |
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" |
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; |
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> | |
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> | |
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> | |
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 ); | |
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"); | |
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"); | |
}); |
NewerOlder