mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 02:53:51 +00:00
mobile optimizations
This commit is contained in:
@@ -39,6 +39,18 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
|||||||
defaultTransition={false}
|
defaultTransition={false}
|
||||||
handleFocus={false}
|
handleFocus={false}
|
||||||
/>
|
/>
|
||||||
|
<script is:inline>
|
||||||
|
if (window.innerWidth < 1024) {
|
||||||
|
document.addEventListener('click', function(e) {
|
||||||
|
var a = e.target.closest('a[href]');
|
||||||
|
if (a && a.href && !a.target && a.origin === location.origin) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
window.location.href = a.href;
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
||||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -38,6 +38,18 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
|||||||
<link rel="icon" type="image/jpeg" href="/me.jpeg" />
|
<link rel="icon" type="image/jpeg" href="/me.jpeg" />
|
||||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||||
<ClientRouter />
|
<ClientRouter />
|
||||||
|
<script is:inline>
|
||||||
|
if (window.innerWidth < 1024) {
|
||||||
|
document.addEventListener('click', function(e) {
|
||||||
|
var a = e.target.closest('a[href]');
|
||||||
|
if (a && a.href && !a.target && a.origin === location.origin) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
window.location.href = a.href;
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
||||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -39,6 +39,18 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
|||||||
defaultTransition={false}
|
defaultTransition={false}
|
||||||
handleFocus={false}
|
handleFocus={false}
|
||||||
/>
|
/>
|
||||||
|
<script is:inline>
|
||||||
|
if (window.innerWidth < 1024) {
|
||||||
|
document.addEventListener('click', function(e) {
|
||||||
|
var a = e.target.closest('a[href]');
|
||||||
|
if (a && a.href && !a.target && a.origin === location.origin) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
window.location.href = a.href;
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
<script is:inline set:html={THEME_LOADER_SCRIPT} />
|
||||||
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
<script is:inline set:html={ANIMATION_LOADER_SCRIPT} />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user