File diff suppressed because it is too large
Load Diff
@ -1,19 +1,43 @@
|
|||||||
<script>
|
<script>
|
||||||
import Header from '$lib/header/Header.svelte';
|
import { multiplier } from '$lib/stores/store';
|
||||||
import '../app.css';
|
import Header from '$lib/header/Header.svelte';
|
||||||
|
import '../app.css';
|
||||||
|
import { browser } from '$app/environment';
|
||||||
|
|
||||||
|
let browserType = 'firefox';
|
||||||
|
|
||||||
|
if (browser) {
|
||||||
|
const agent = navigator.userAgent;
|
||||||
|
if (agent.match(/chrome|chromium|crios/i)) {
|
||||||
|
browserType = 'chrome';
|
||||||
|
$multiplier = 1;
|
||||||
|
} else if (agent.match(/firefox|fxios/i)) {
|
||||||
|
browserType = 'firefox';
|
||||||
|
$multiplier = 1;
|
||||||
|
} else if (agent.match(/safari/i)) {
|
||||||
|
browserType = 'safari';
|
||||||
|
} else if (agent.match(/opr\//i)) {
|
||||||
|
browserType = 'opera';
|
||||||
|
} else if (agent.match(/edg/i)) {
|
||||||
|
browserType = 'edge';
|
||||||
|
} else {
|
||||||
|
browserType = 'No browser detection';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Browser is: ', browserType);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
main {
|
main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 866 KiB |
Binary file not shown.
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 109 KiB |
Binary file not shown.
Before Width: | Height: | Size: 352 KiB |
Binary file not shown.
Before Width: | Height: | Size: 113 KiB |
Loading…
Reference in New Issue