[a] easter egg in console
All checks were successful
Build and push docker image / publish (push) Successful in 48s

This commit is contained in:
Sangelo 2024-06-02 22:37:39 +02:00
parent f35ade0784
commit 85aed5bcc3
2 changed files with 32 additions and 1 deletions

View file

@ -1,6 +1,8 @@
<script lang='ts'> <script lang='ts'>
import IconChevronDown from 'svelte-material-icons/ChevronDown.svelte'; import IconChevronDown from 'svelte-material-icons/ChevronDown.svelte';
import { smoothScrollTo, handleKeydown } from '$lib/index'; import { smoothScrollTo, handleKeydown, helloWorld } from '$lib/index';
helloWorld("ascii", "hi there, curious one. have fun exploring! :D")
</script> </script>
<div id="home" class="section"> <div id="home" class="section">

View file

@ -26,3 +26,32 @@ export function handleKeydown(event: KeyboardEvent) {
export function openWebsite(url: string) { export function openWebsite(url: string) {
goto(url); goto(url);
} }
export function helloWorld(type: string, msg: string) {
if (type == "ascii") {
console.log(`
:=*#%%#=
-+#@@@@@@@@@.
.=#@@@@@@@@@@@@+
=%@@@@@@@@@@@@%+.
+@@@@@@@@@@@%=:
+@@@@@@@@@@@%=.
=#@@@@@@@@@@@@#+:
.-*%@@@@@@@@@@@%*:
.-%@@@@@@@@@@@#.
:*@@@@@@@@@@@@=
-*%@@@@@@@@@@@@%+
=#@@@@@@@@@@@@@#+:
+@@@@@@@@@@@@%+-
=@@@@@@@@@@%=.
.#@@@@@@@@*
=%@@@@@%
:@@@@@#
%@@@@:
.*%#-
`)
}
console.log(msg)
}