Skip to content

Commit

Permalink
Dev (#1244)
Browse files Browse the repository at this point in the history
* issue: #1231 (patch);

* issue: #1231 (patch);
  • Loading branch information
migbash authored Apr 26, 2023
1 parent 00ba220 commit fd31537
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
body.googlebot-override h2 {
font-size: 14px;
}
body.googlebot-override div,
/* body.googlebot-override div,
body.googlebot-override button,
body.googlebot-override a,
body.googlebot-override img,
body.googlebot-override td {
body.googlebot-override td { */
body.googlebot-override * {
margin: 10px;
}
body.googlebot-override div#splash-screen {
Expand Down
17 changes: 6 additions & 11 deletions src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
[TypeScript Written]
=================== -->
<script lang="ts">
import { browser } from '$app/environment';
import { onMount } from 'svelte';
let show: boolean = true;
$: if (browser)
{
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
}
/**
* @summary [LIFECYCLE]
* @description triggers events onLoad of the
Expand All @@ -26,6 +15,12 @@
onMount(async () => {
setTimeout(async () => {
show = false;
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
document.documentElement.classList.remove(
'no-scrollbar'
);
Expand Down

0 comments on commit fd31537

Please sign in to comment.