mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-03 13:53:09 +00:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
(function () {
|
|
const highlight = () => {
|
|
if (!window.hljs) { return; }
|
|
document.querySelectorAll('pre code[class^="language-"]').forEach((block) => {
|
|
window.hljs.highlightElement(block);
|
|
});
|
|
};
|
|
|
|
if (document.readyState === "loading") {
|
|
document.addEventListener("DOMContentLoaded", highlight);
|
|
} else {
|
|
highlight();
|
|
}
|
|
})();
|