Rework Mobile SDK explorer into module tile grid, polish nav styling
CI / build (push) Canceled after 0s
CI / build (push) Canceled after 0s
Replace the tab/scrubber UI with a module tile grid, drop the leaked real phone number from the call-scam demo script, and simplify nav scroll background handling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -161,6 +161,7 @@ function showPage(id, navId) {
|
||||
// Show target page
|
||||
var pg = document.getElementById("pg-" + id);
|
||||
if (pg) pg.style.display = "block";
|
||||
document.body.setAttribute("data-active-page", id);
|
||||
|
||||
// Update nav active states
|
||||
document.querySelectorAll("[data-nav]").forEach(function (btn) {
|
||||
@@ -217,10 +218,8 @@ function onScroll() {
|
||||
var nav = document.getElementById("bd-nav");
|
||||
if (!nav) return;
|
||||
if (window.scrollY > 50) {
|
||||
nav.style.background = "rgba(1,59,73,.97)";
|
||||
nav.style.borderBottomColor = "rgba(255,255,255,.07)";
|
||||
} else {
|
||||
nav.style.background = "rgba(1,59,73,.4)";
|
||||
nav.style.borderBottomColor = "transparent";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user