From 79e10e97b7208ed947103287cf20142711a828c5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 19 Mar 2025 16:16:27 +0100 Subject: [PATCH] Marked header h1 as clickable --- app/static/js/iframe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/js/iframe.js b/app/static/js/iframe.js index 2f87178..5db6f27 100644 --- a/app/static/js/iframe.js +++ b/app/static/js/iframe.js @@ -58,6 +58,9 @@ document.addEventListener("DOMContentLoaded", function () { // Add click event listener to header h1 to restore the original main content and style const headerH1 = document.querySelector("header h1"); if (headerH1) { + // Change the cursor to pointer to indicate clickability + headerH1.style.cursor = "pointer"; + headerH1.addEventListener("click", function () { // Restore the original content of the main element (removing the iframe) mainElement.innerHTML = originalContent; @@ -78,7 +81,6 @@ document.addEventListener("DOMContentLoaded", function () { if (customScrollbar) { customScrollbar.style.display = ""; } - adjustScrollContainerHeight() }); }