Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 75 additions & 70 deletions docs/.vuepress/headFunctions.ts
Original file line number Diff line number Diff line change
@@ -1,76 +1,81 @@
import routes from './routes.json';

export default [
[
"script",
{
type: "text/javascript",
id: "hs-script-loader",
async: true,
defer: true,
src: "//js.hs-scripts.com/5408110.js",
},
],
[
"script",
{},
`
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T538N4K');
`,
],
[
"script",
{},
`
(function() {
var routes = ${JSON.stringify(routes)};

// Function to normalize a URL by removing a trailing slash and leading characters
function normalizeUrl(url) {
url = url.endsWith('/') ? url.slice(0, -1) : url;
url = url.startsWith('/') ? url.slice(1) : url;
url = url.startsWith('?') ? url.slice(1) : url;
return url;
}
[
"script",
{
type: "text/javascript",
id: "hs-script-loader",
async: true,
defer: true,
src: "//js.hs-scripts.com/5408110.js",
},
],
[
"script",
{},
`
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T538N4K');
`,
],
[
"script",
{},
`
(function() {
var routes = ${JSON.stringify(routes)};

var currentPath = window.location.pathname + window.location.search + window.location.hash;
currentPath = normalizeUrl(currentPath);

for (var route_url in routes) {
if (normalizeUrl(route_url) === currentPath) {
window.location.href = routes[route_url];
break; // Exit the loop after redirecting
}
}
})();
`,
],
[
"script",
{},
`
(function() {
// Trigger the scroll event without actually scrolling
function triggerScrollEvent() {
const targetElement = window;
const scrollEvent = new Event('scroll', {
bubbles: true,
cancelable: true,
});
targetElement.dispatchEvent(scrollEvent);
}
// Function to normalize a URL by removing a trailing slash and leading characters
function normalizeUrl(url) {
url = url.endsWith('/') ? url.slice(0, -1) : url;
url = url.startsWith('/') ? url.slice(1) : url;
url = url.startsWith('?') ? url.slice(1) : url;
return url;
}

var currentPath = window.location.pathname + window.location.search + window.location.hash;
currentPath = normalizeUrl(currentPath);

// Call the triggerScrollEvent and scrollBodyDown functions after the page is fully loaded
window.addEventListener('load', () => {
triggerScrollEvent();
});
})();
`,
]
];
for (var route_url in routes) {
if (normalizeUrl(route_url) === currentPath) {
window.location.href = routes[route_url];
break; // Exit the loop after redirecting
}
}
})();
`,
],
[
"script",
{},
`
(function() {
// Trigger the scroll event without actually scrolling
function triggerScrollEvent() {
const targetElement = window;
const scrollEvent = new Event('scroll', {
bubbles: true,
cancelable: true,
});
targetElement.dispatchEvent(scrollEvent);
}


// Call the triggerScrollEvent and scrollBodyDown functions after the page is fully loaded
window.addEventListener('load', () => {
triggerScrollEvent();
});
})();
`,
],
[
"meta",
{
name: "google-site-verification",
content: "5-Q2NFM8YQ1f64j819in5tsqnlwNjQXX6Y0PQzmBEcs",
},
],
];
1 change: 0 additions & 1 deletion docs/.vuepress/public/googled5ceee86bf34d3e8.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/.vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<div class="theme-container">
<meta name="google-site-verification" content="5-Q2NFM8YQ1f64j819in5tsqnlwNjQXX6Y0PQzmBEcs" />
<HeaderLayout :closeSidebarDrawer="pageRef?.closeSidebarDrawer" :isMobileWidth="isMobileWidth"/>
<Sidebar
v-if="allPages.length && !pageRef?.isOpenMobileSidebarMenu && !isMobileWidth"
Expand Down