| Server IP : 109.122.246.182 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux host3.abrin.cloud 6.1.0-52-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 User : sinah533 ( 1085) PHP Version : 8.1.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sinah533/public_html/wp-includes/js/dist/script-modules/interactivity-router/ |
Upload File : |
// packages/interactivity-router/build-module/full-page.mjs
var isValidLink = (ref) => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === "_self") && ref.origin === window.location.origin && !ref.pathname.startsWith("/wp-admin") && !ref.pathname.startsWith("/wp-login.php") && !ref.getAttribute("href").startsWith("#") && !new URL(ref.href).searchParams.has("_wpnonce");
var isValidEvent = (event) => event && event.button === 0 && // Left clicks only.
!event.metaKey && // Open in new tab (Mac).
!event.ctrlKey && // Open in new tab (Windows).
!event.altKey && // Download.
!event.shiftKey && !event.defaultPrevented;
document.addEventListener("click", async (event) => {
const ref = event.target.closest("a");
if (isValidLink(ref) && isValidEvent(event)) {
event.preventDefault();
const { actions } = await import("@wordpress/interactivity-router");
actions.navigate(ref.href);
}
});
document.addEventListener(
"mouseenter",
async (event) => {
if (event.target?.nodeName === "A") {
const ref = event.target.closest("a");
if (isValidLink(ref) && isValidEvent(event)) {
const { actions } = await import("@wordpress/interactivity-router");
actions.prefetch(ref.href);
}
}
},
true
);