This commit is contained in:
parent
241513e32f
commit
ffeba5b404
@ -32,7 +32,9 @@
|
||||
|
||||
async function getNavigation() {
|
||||
let nav: Navigation[] = await loadNavigation()
|
||||
|
||||
$navigation = nav[0]
|
||||
|
||||
$serviceNavigation = nav[1]
|
||||
}
|
||||
async function getBanner() {
|
||||
@ -95,25 +97,7 @@
|
||||
<svelte:head>
|
||||
{#if cookiesAllowed}
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- Google tag (gtag.js) -->
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F384Z2JF20"></script>
|
||||
<script>
|
||||
|
@ -29,35 +29,6 @@
|
||||
}
|
||||
|
||||
let hoverTimeout: string | number | NodeJS.Timeout | undefined
|
||||
|
||||
function stretchText() {
|
||||
/* let container = document.getElementById("logo-containerpc")
|
||||
let textElement = document.getElementById("upperpc")
|
||||
|
||||
let containerWidth = container.offsetWidth
|
||||
let textWidth = textElement.offsetWidth
|
||||
|
||||
let characterCount = textElement.textContent.length - 1
|
||||
let spaceNeeded = containerWidth - textWidth
|
||||
|
||||
if (characterCount > 0 && spaceNeeded > 0) {
|
||||
const letterSpacing = spaceNeeded / characterCount
|
||||
textElement.style.letterSpacing = `${letterSpacing}px`
|
||||
}
|
||||
|
||||
textElement = document.getElementById("lowerpc")
|
||||
|
||||
containerWidth = container.offsetWidth
|
||||
textWidth = textElement.offsetWidth
|
||||
|
||||
characterCount = textElement.textContent.length - 1
|
||||
spaceNeeded = containerWidth - textWidth
|
||||
|
||||
if (characterCount > 0 && spaceNeeded > 0) {
|
||||
const letterSpacing = spaceNeeded / characterCount
|
||||
textElement.style.letterSpacing = `${letterSpacing}px`
|
||||
}*/
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
||||
@ -156,9 +127,9 @@
|
||||
{/if}
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
||||
<button
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="submenu-container"
|
||||
id="submenu-container"
|
||||
on:mouseover="{(e) => {
|
||||
@ -171,9 +142,13 @@
|
||||
{#if $navigation?.elemente}
|
||||
<div class="inner-container">
|
||||
{#each $navigation?.elemente as submenu, i (i * 10)}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
{#if !submenu?.endpoint}
|
||||
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
||||
<button
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div
|
||||
on:mouseover|stopPropagation
|
||||
class="innersubmenu-container"
|
||||
id="{`submenu-${i}`}"
|
||||
@ -207,12 +182,12 @@
|
||||
{/each}
|
||||
</ul>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<style lang="less" global>
|
||||
@import "../../assets/css/variables.less";
|
||||
|
@ -92,7 +92,6 @@
|
||||
window.addEventListener("resize", stretchText)
|
||||
onMount(stretchText)
|
||||
}
|
||||
// test
|
||||
</script>
|
||||
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user