This file contains hidden or 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
| /** | |
| * @class DOMWatcher | |
| * Observes the DOM for elements matching CSS selectors | |
| * | |
| * Monitors the DOM tree for elements that match specified selectors, triggering | |
| * callbacks when matching elements are added. Handles both immediate detection | |
| * of existing elements and observation of future additions. | |
| * | |
| * @example | |
| * // Create a watcher instance |
This file contains hidden or 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
| # Password-protect all ZIP files in current directory | |
| # Password format: BasePassword + first digit found in filename | |
| $basePassword = "PLACEHOLDER" | |
| $sevenZipPath = "C:\Program Files\7-Zip\7z.exe" | |
| # Verify 7-Zip is installed | |
| if (-not (Test-Path $sevenZipPath)) { | |
| Write-Host "ERROR: 7-Zip not found at $sevenZipPath" -ForegroundColor Red | |
| Write-Host "Please install 7-Zip or update the path in the script" |
This file contains hidden or 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
| /** | |
| * Finds the nearest element matching the querySelector based on DOM traversal distance. | |
| * Can be added to Element.prototype for convenient use like Element.closest() | |
| * | |
| * @example | |
| * // Standalone usage | |
| * const result = nearest(element, '.target'); | |
| * | |
| * @example | |
| * // Add to prototype (optional) |
This file contains hidden or 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
| /** | |
| * SpanAwareMasonry (SAM) - A span-aware masonry-style grid layout system | |
| * | |
| * @class SpanAwareMasonry | |
| * @description | |
| * Creates a packed grid layout that combines CSS Grid auto-placement with masonry-style | |
| * vertical stacking. Unlike native CSS Masonry (grid-template-rows: masonry), SAM maintains | |
| * left-to-right sequential placement while optimizing vertical space usage. | |
| * | |
| * @features |
OlderNewer