Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Scroll to top when clicking logo on home page.
Rakshit Chauhan35ed477b324b
diff --git a/web/src/portico/landing-page.ts b/web/src/portico/landing-page.tsindex 33e97106b5a..26138730635 100644--- a/web/src/portico/landing-page.ts+++ b/web/src/portico/landing-page.ts@@ -242,6 +242,13 @@ $(document).on("click", ".markdown h1, .markdown h2, .markdown h3", function ()window.location.hash = $(this).attr("id")!;});+$(document).on("click", ".nav-zulip-logo", (e) => {+ if (document.querySelector(".portico-hello-page")) {+ e.preventDefault();+ window.scrollTo({top: 0, behavior: "smooth"});+ }+});+$(document).on("click", ".pricing-tab", function () {const id = $(this).attr("id")!;const $pricing_wrapper = $(".portico-pricing");