Skip to content

Commit

Permalink
test: #1231; splash google-bot check (cont);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed May 2, 2023
1 parent d80b823 commit 01dcec1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
}
body.googlebot-override,
body.googlebot-override main {
overflow: hidden;
overflow-y: hidden;
}
body.googlebot-override p,
body.googlebot-override span,
body.googlebot-override h1,
body.googlebot-override h2 {
font-size: 5vw;
font-size: 7vw;
text-overflow: ellipsis;
}
/* body.googlebot-override div,
Expand All @@ -45,6 +45,7 @@
display: grid !important;
gap: 5vw;
grid-template-columns: 1fr !important;
position: absolute;
}
body.googlebot-override div#splash-screen {
margin: 0;
Expand Down
24 changes: 12 additions & 12 deletions src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
*/
onMount(async () => {
setTimeout(async () => {
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
document.documentElement.classList.remove(
'no-scrollbar'
);
document.body.classList.remove(
'no-scrollbar'
);
// document.documentElement.classList.remove(
// 'googlebot-override'
// );
// document.body.classList.remove(
// 'googlebot-override'
// );
// document.documentElement.classList.remove(
// 'no-scrollbar'
// );
// document.body.classList.remove(
// 'no-scrollbar'
// );
}, 500);
setTimeout(async () => {
show = false;
Expand Down

0 comments on commit 01dcec1

Please sign in to comment.