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
| // === SPA-safe colorizer + sticky layout for #divMrViewer (ASP.NET host) === | |
| (function () { | |
| const TARGET = '#divMrViewer'; | |
| const STYLE_ID = 'spa-colorize-divMrViewer'; | |
| // -------------------------- | |
| // Utilities | |
| // -------------------------- | |
| const raf = (fn) => (window.requestAnimationFrame ? requestAnimationFrame(fn) : setTimeout(fn, 0)); | |
| const debounce = (fn, ms = 100) => { let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); }; }; |