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() { async function getNavigation() {
let nav: Navigation[] = await loadNavigation() let nav: Navigation[] = await loadNavigation()
$navigation = nav[0] $navigation = nav[0]
$serviceNavigation = nav[1] $serviceNavigation = nav[1]
} }
async function getBanner() { async function getBanner() {
@ -95,25 +97,7 @@
<svelte:head> <svelte:head>
{#if cookiesAllowed} {#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) -->
<!-- Google tag (gtag.js) --> <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F384Z2JF20"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-F384Z2JF20"></script>
<script> <script>

View File

@ -29,35 +29,6 @@
} }
let hoverTimeout: string | number | NodeJS.Timeout | undefined 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> </script>
<!-- svelte-ignore a11y-mouse-events-have-key-events --> <!-- svelte-ignore a11y-mouse-events-have-key-events -->
@ -156,9 +127,9 @@
{/if} {/if}
</ul> </ul>
</ul> </ul>
<!-- svelte-ignore a11y-mouse-events-have-key-events --> <!-- svelte-ignore a11y-mouse-events-have-key-events -->
<button <!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="submenu-container" class="submenu-container"
id="submenu-container" id="submenu-container"
on:mouseover="{(e) => { on:mouseover="{(e) => {
@ -171,9 +142,13 @@
{#if $navigation?.elemente} {#if $navigation?.elemente}
<div class="inner-container"> <div class="inner-container">
{#each $navigation?.elemente as submenu, i (i * 10)} {#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} {#if !submenu?.endpoint}
<!-- svelte-ignore a11y-mouse-events-have-key-events --> <!-- svelte-ignore a11y-mouse-events-have-key-events -->
<button <!-- svelte-ignore a11y-click-events-have-key-events -->
<div
on:mouseover|stopPropagation on:mouseover|stopPropagation
class="innersubmenu-container" class="innersubmenu-container"
id="{`submenu-${i}`}" id="{`submenu-${i}`}"
@ -207,12 +182,12 @@
{/each} {/each}
</ul> </ul>
</div> </div>
</button> </div>
{/if} {/if}
{/each} {/each}
</div> </div>
{/if} {/if}
</button> </div>
<style lang="less" global> <style lang="less" global>
@import "../../assets/css/variables.less"; @import "../../assets/css/variables.less";

View File

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