This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user