|
@@ -303,3 +303,23 @@ $(".nav-link").hover(function(){
|
|
|
// });
|
|
// });
|
|
|
// };
|
|
// };
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// Deep-link support for the URL hash on load.
|
|
|
|
|
+// - #zw: friendly alias from the main site's "Zeken Woözer Enterprises" link —
|
|
|
|
|
+// scroll to the What section and open the zw card modal.
|
|
|
|
|
+// - otherwise: if the hash names a Bootstrap .modal, open it.
|
|
|
|
|
+document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
|
+ var hash = window.location.hash;
|
|
|
|
|
+ if (!hash) return;
|
|
|
|
|
+ if (hash === '#zw') {
|
|
|
|
|
+ var what = document.getElementById('what');
|
|
|
|
|
+ if (what) what.scrollIntoView();
|
|
|
|
|
+ var zw = document.getElementById('zw-card-modal');
|
|
|
|
|
+ if (zw && window.bootstrap) bootstrap.Modal.getOrCreateInstance(zw).show();
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ var target = document.querySelector(hash);
|
|
|
|
|
+ if (target && target.classList.contains('modal') && window.bootstrap) {
|
|
|
|
|
+ bootstrap.Modal.getOrCreateInstance(target).show();
|
|
|
|
|
+ }
|
|
|
|
|
+});
|