bugfix
All checks were successful
deploy to production / deploy (push) Successful in 1m18s

This commit is contained in:
Robin Grenzdörfer 2023-12-15 15:21:08 +00:00
parent 241513e32f
commit ffeba5b404
3 changed files with 12 additions and 54 deletions

View File

@ -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>

View File

@ -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";

View File

@ -92,7 +92,6 @@
window.addEventListener("resize", stretchText)
onMount(stretchText)
}
// test
</script>
<ul>