mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 21:33:07 +00:00
18 lines
371 B
JavaScript
18 lines
371 B
JavaScript
(function () {
|
|
const highlight = (attempt = 0) => {
|
|
if (window.hljs) {
|
|
window.hljs.highlightAll();
|
|
return;
|
|
}
|
|
if (attempt < 10) {
|
|
setTimeout(() => highlight(attempt + 1), 100);
|
|
}
|
|
};
|
|
|
|
if (document.readyState === "loading") {
|
|
document.addEventListener("DOMContentLoaded", () => highlight());
|
|
} else {
|
|
highlight();
|
|
}
|
|
})();
|