From 36a7845c881664202180e09379f54c928b998c18 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 19:35:35 +0100 Subject: [PATCH 01/13] Add langchange button Add (not working) js to translate later --- aboutme.html | 6 +++--- contactme.html | 6 +++--- css/style.css | 18 ++++++++++++++++++ index.html | 7 ++++--- js/lang.js | 16 ++++++++++++++++ projects.html | 6 +++--- webicons/eng.png | Bin 0 -> 19572 bytes webicons/ger.png | Bin 0 -> 4585 bytes 8 files changed, 47 insertions(+), 12 deletions(-) create mode 100644 js/lang.js create mode 100644 webicons/eng.png create mode 100644 webicons/ger.png diff --git a/aboutme.html b/aboutme.html index cfed338..2c6c9eb 100644 --- a/aboutme.html +++ b/aboutme.html @@ -44,9 +44,9 @@
- - - + + +
diff --git a/contactme.html b/contactme.html index 2a0053e..56e6c97 100644 --- a/contactme.html +++ b/contactme.html @@ -35,9 +35,9 @@
- - - + + +
diff --git a/css/style.css b/css/style.css index f77a3b8..2b507f9 100644 --- a/css/style.css +++ b/css/style.css @@ -61,6 +61,16 @@ nav ul li a:hover{ cursor: pointer; } +#lang{ + color: black; + padding: 5px; + background-color: #e2de84; + box-shadow: 5px 5px 5px black; + width: 2.5em; + margin-top: 28px; + margin-left: 5px; +} + h1{ color: black; } @@ -192,8 +202,16 @@ h2{ box-shadow: 0 0 0; } + #lang{ + margin-left: 5px; + margin-bottom: 23px; + width: 58px; + transform: translateX(-60px); + } + .menu-icon{ display: block; + transform: translateX(70px); } #menuList{ diff --git a/index.html b/index.html index 9919343..8fb6bd9 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,7 @@ +
@@ -37,9 +38,9 @@
- - - + + +
diff --git a/js/lang.js b/js/lang.js new file mode 100644 index 0000000..053e975 --- /dev/null +++ b/js/lang.js @@ -0,0 +1,16 @@ +var language = { + eng: { + welcometitle: "Hello Internet!", + welcome: "I'm Malik, some guy on the web who's learning to code.
Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" + }, + ger: { + welcometitle: "Hallo Internet!", + welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt.
Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" + } +}; + +if(window.location.hash) { + if(window.location.hash == "#ger") { + welcome.textContent = language.ger.welcome; + } +} \ No newline at end of file diff --git a/projects.html b/projects.html index 640f92b..642d4e5 100644 --- a/projects.html +++ b/projects.html @@ -35,9 +35,9 @@
- - - + + +
diff --git a/webicons/eng.png b/webicons/eng.png new file mode 100644 index 0000000000000000000000000000000000000000..0aac31617bf1f9bd7ab663768c46c650d21b05ec GIT binary patch literal 19572 zcmZs?WmF_V(=~`sV*`!5ySux)yEpFcI=H(GE`vJ^?yduayTjn_4$JdB@9sJ8?*6E* z>g>qQh{~#r$Qw5zl@ufq;c(!{C@Z}6%zRBYx zpAon>I$`+R@b>yq1>R)DOhkl2nGRYV#2sYK zYVPyOd~2_q&&s)SQD=5sw%{R=>)XnKldOn$1aW!F3$d znV>Seh0A7v$7UZ*Gp$X*2927|7#2m0s;n@G#&*zZNxD9v;I=3}VDMh{pUS8@ zIOzz4^)yk3|CQhqziuTL`!RWFve0Gpo^K3zfqwpiWA>%Vh*b_)pT)M!<&%xP(L?f` zgk&^6c<@^9kej6H!;e4sL@%bJC1*0iIwJLe&b%4U{lFdF{D8?U-B-L)B%w6()Nb(a z-vh5v%xYgdJ8FIGKOY(oA0hF7IETFPSP*_q3#_A*whI^-1L=PbaL-~v_piopuF~@2 z-;ThsP~e%w0$(4#ny_8PwOmCV?Ci|!UBN`1%|NbZrbHfAu9ifS((+20f!{H~z=*)4 z#e~&7SI=@h($R)6h62<#_#0%u%cPM}ktho}t0dq-0aFlA$SjoduoJU`A!Ia!Vd3bw zDN$*njC+58qeCX8ZDbr*JW4(?z@PoH#Zt+;6y4GdU-_h49gi*Ky=yVksyt_bUjqC2Z#-43!cpNn@VJt4U_ekvB_H2K#X{Dw$Z9pAcYn8 zi_GXjhHx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XhjR6b-J#T%e^C`j_XRM~%hl*$bxR z5MHy`&$XofgjFq+AcB}U@sicZli5VpzUom!qA#jJBqh~jFwskHf`Rvua^6LVWnmqq z@w1{b#?oc0$bRfK%FE-yvlk#h<1$5z5(6p!3->k*A9&uc8@S<;-_DT z88(v89T_j%tiCsi1Hpt#O7vhMmy^t9eT--?8TKn<9uPHkEE=+SFHAUbHnRs0Rqpl%yfx z#N&*9w2-IgyhT=4cRF{zfN&^$(85m!d1jfi-Ou2`3%In?3jQ)EgA3ZV^=EYxZstuJ^(i!H2%Y&0Wcc54uJ4JN zJdw!C=MiPF_iWrm{C{5{6SE0#Sm9-jT8={{Tj7S9;SS5jPP+`Xdmrri8pN)n`ZmpKuavX+4pPS3x(o&qCqyi8IBHH`?a*W{k$6Mm! z?ky))sr&|9RZA@T(88!X_L8Xg;&C^Bh_(M%I{LzyJGaxTvMhK24xtiL9WWez-wz&_ zJNPv*|DPJKj_nlf;)SC3`7|?)t~XvzC=#L4_{ZUihg*ldha827>N=15JRhPWn0p4Y f@29OXbD!Y00000NkvXXu0mjfN*m14 literal 0 HcmV?d00001 diff --git a/webicons/ger.png b/webicons/ger.png new file mode 100644 index 0000000000000000000000000000000000000000..200866d83c41ccf5faf21ee947de51653f14907d GIT binary patch literal 4585 zcmeHKdr(x@8NXyO7!(H))M}NRyTsJW-TT=IaHaSKGCW>W9t+~o@UVD~P2 z+4>+VX_yqPZGgn4CdTT-v1V$Fov|?^R>@!|icKamHPZ@Wh{pPec5I9~?YVb(PBPOn z)8sF9=G;B!eBbx`zVCOwbLN~@Pgzk)@`7XpK~h}B&T<4v$cFuW(;tH0#TlIs;NQ(y zWwlbyMbTg=Aj$OrRhohT1*$9|h~ zu@3UH6E7cn6;b*4oI1_ipc>cj?yZo{Z^jor6R3j{f5J%RZcKse0*m zmsZ!UelfbNul&@j9nPA8cHzva<{3q&U;gY|%i^})fh}O>KOG;aduiqiW7h0vvr^hW z>@4XnyV>Mht-;3==2~-$%F4?+o zN7>yc&j{_e=XwwP*n2H}YvJ=VzWOuWC%0iOh1mt0rcaAhdRp4742--Q8Q8kNf&B{&DxxpLTsZD|J0BRy6KG@mR~24@49@hCw+x5}z;Vc8|jQ!^12(g+_r_ z_62n-NcIFxMV7|Mnh={N(bE|p2s9tXouECEyRHni+-}wx5F%Q5E~g#S{Ig;}kVRJS z<_NSPh_rx{j6mWH$4IzUB2BnWplv3eWK3o$XB?EvA67WO05m8FZj>PoZ{;`(M+&%w zV>p~K2_kNz%{jP8Q#Px>3yjT7kAqkll3`VH_2Z+`phO78a01U;%@*9sa1e^JnsA;r z3ph{mW)sJYHbJ!NP@=#-6$tq_xSX<&^8zC1_v!+TaJInXvSYN79GmgfbBY8F>{zMn zkEmmUO4$c06i#E4vXEwqCQX!?p=c{@9#dKcLSa~m8YV>=O>v2~EG$e063c0I3ITKr zm<#I&0Zs{oDg%LfJEnz%YL=s7H{4Dlr*KYA0T7g=8J472nyI90EM;X)=4Eh5j?)i_ zvefk7w6)EH=Eax1SPnz~P5M-PM^%7^_$WTCm-VfLqWY#_IU$}xm}>;09w)?#i-cOv z?*;Jm7%tb5dHEYk!9t6i#U{}>0K9}VITVHSqFKTP8)p?vu$p)ZOhgX{Bqhp)K!F$X z2)TmgsdI(?Kwqe(6SbqYKwAY!7*107*9jwr6DG7XV>*j(0c0-Xp={nlOSG4O&Z3_vAOi$t1<)E=;3Z=FYChU|sQ_k)L0AAKS9yJ Date: Wed, 24 Jan 2024 20:16:42 +0100 Subject: [PATCH 02/13] Add Translation script (testing) --- index.html | 11 ++++++----- js/lang.js | 19 +++++++++++++++---- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 8fb6bd9..d006db8 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ +
-

Hallo Internet!

-

Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt.

-

-

Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)

+

Hello Internet!

+

I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)

@@ -66,6 +65,8 @@ + + \ No newline at end of file diff --git a/js/lang.js b/js/lang.js index 053e975..27cc78e 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,16 +1,27 @@ + +var dataReload = document.querySelectorAll("[data-reload]"); + var language = { eng: { welcometitle: "Hello Internet!", - welcome: "I'm Malik, some guy on the web who's learning to code.
Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" + welcome: "I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" }, ger: { welcometitle: "Hallo Internet!", - welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt.
Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" + welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt. Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" } }; if(window.location.hash) { - if(window.location.hash == "#ger") { + if(window.location.hash === "#ger") { welcome.textContent = language.ger.welcome; } -} \ No newline at end of file +} + +for (i = 0; i <= dataReload.length; i++) { + dataReload[i].onclick = function() { + location.reload(true); + }; +} + + From 92fe5ba8e933010350dd3d9b7424532dda2b14d8 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 23:07:50 +0100 Subject: [PATCH 03/13] test --- index.html | 2 +- js/lang.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index d006db8..fda0139 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - +
diff --git a/js/lang.js b/js/lang.js index 27cc78e..6e6c6a1 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,6 +1,4 @@ -var dataReload = document.querySelectorAll("[data-reload]"); - var language = { eng: { welcometitle: "Hello Internet!", @@ -18,10 +16,14 @@ if(window.location.hash) { } } -for (i = 0; i <= dataReload.length; i++) { - dataReload[i].onclick = function() { + function langReload() { + if(localStorage) + + localStorage.setItem('Language') = ger + + location.reload(true); }; -} + From 6bb6ad1e7725d0b2d2b7a345d8af9d372f269d9b Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 23:29:41 +0100 Subject: [PATCH 04/13] Add LocalStorage language selection save --- css/style.css | 8 ++++++-- index.html | 2 +- js/lang.js | 43 +++++++++++++++++++++++++++++++++---------- 3 files changed, 40 insertions(+), 13 deletions(-) diff --git a/css/style.css b/css/style.css index 2b507f9..255a32b 100644 --- a/css/style.css +++ b/css/style.css @@ -67,10 +67,14 @@ nav ul li a:hover{ background-color: #e2de84; box-shadow: 5px 5px 5px black; width: 2.5em; - margin-top: 28px; + margin-top: 24px; margin-left: 5px; } +#lang:hover{ + cursor: pointer; +} + h1{ color: black; } @@ -204,7 +208,7 @@ h2{ #lang{ margin-left: 5px; - margin-bottom: 23px; + margin-bottom: 25px; width: 58px; transform: translateX(-60px); } diff --git a/index.html b/index.html index fda0139..bf63b00 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - +
diff --git a/js/lang.js b/js/lang.js index 6e6c6a1..8a7fa39 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,3 +1,28 @@ +var isGermanTemp = localStorage.getItem('isGerman') +var isGerman; + +if(isGermanTemp=''){ + isGerman=false; +} +else{ + isGerman=true; +} + +function langChange() { + + if(isGerman==false){ + isGerman=true; + localStorage.setItem("isGerman", isGerman); + + } + else{ + isGerman=false; + localStorage.setItem("isGerman", isGerman); + + } + + location.reload(true); +}; var language = { eng: { @@ -10,20 +35,18 @@ var language = { } }; -if(window.location.hash) { - if(window.location.hash === "#ger") { - welcome.textContent = language.ger.welcome; - } +if(isGerman==true) { + welcometitle.textContent = language.ger.welcometitle; + welcome.textContent = language.ger.welcome; +} +else{ + welcometitle.textContent = language.eng.welcometitle; + welcome.textContent = language.eng.welcome; } - function langReload() { - if(localStorage) - - localStorage.setItem('Language') = ger - location.reload(true); - }; + From dd06103e53116f596fd4d39481c86379f6711105 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 23:46:37 +0100 Subject: [PATCH 05/13] Want to test it online --- js/lang.js | 54 +++++++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/js/lang.js b/js/lang.js index 8a7fa39..dd5b02f 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,13 +1,36 @@ -var isGermanTemp = localStorage.getItem('isGerman') +var isGermanTemp = localStorage.getItem("isGerman") var isGerman; -if(isGermanTemp=''){ - isGerman=false; +if(isGermanTemp!=''){ + isGerman=isGermanTemp; } else{ - isGerman=true; + isGerman=false; } +var language = { + eng: { + welcometitle: "Hello Internet!", + welcome: "I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" + }, + ger: { + welcometitle: "Hallo Internet!", + welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt. Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" + } +}; + + + +if(isGerman===true) { + welcometitle.textContent = language.ger.welcometitle; + welcome.textContent = language.ger.welcome; +} +else{ + welcometitle.textContent = language.eng.welcometitle; + welcome.textContent = language.eng.welcome; +} + + function langChange() { if(isGerman==false){ @@ -20,29 +43,10 @@ function langChange() { localStorage.setItem("isGerman", isGerman); } - - location.reload(true); + console.log(localStorage.getItem("isGerman")); + window.location.reload(); }; -var language = { - eng: { - welcometitle: "Hello Internet!", - welcome: "I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" - }, - ger: { - welcometitle: "Hallo Internet!", - welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt. Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" - } -}; - -if(isGerman==true) { - welcometitle.textContent = language.ger.welcometitle; - welcome.textContent = language.ger.welcome; -} -else{ - welcometitle.textContent = language.eng.welcometitle; - welcome.textContent = language.eng.welcome; -} From 8a295e864c165d4b71b2ef3e08c815f3ae2d3bae Mon Sep 17 00:00:00 2001 From: malik Date: Thu, 25 Jan 2024 00:20:29 +0100 Subject: [PATCH 06/13] The langchanger finally works. --- js/lang.js | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/js/lang.js b/js/lang.js index dd5b02f..b97c503 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,13 +1,3 @@ -var isGermanTemp = localStorage.getItem("isGerman") -var isGerman; - -if(isGermanTemp!=''){ - isGerman=isGermanTemp; -} -else{ - isGerman=false; -} - var language = { eng: { welcometitle: "Hello Internet!", @@ -19,7 +9,7 @@ var language = { } }; - +var isGerman = localStorage.getItem("isGerman") === "true"; if(isGerman===true) { welcometitle.textContent = language.ger.welcometitle; @@ -32,20 +22,12 @@ else{ function langChange() { - - if(isGerman==false){ - isGerman=true; - localStorage.setItem("isGerman", isGerman); - - } - else{ - isGerman=false; - localStorage.setItem("isGerman", isGerman); - - } + isGerman = !isGerman; + localStorage.setItem("isGerman", isGerman); console.log(localStorage.getItem("isGerman")); window.location.reload(); -}; +} + From 14f26c4ac6d29c29a97d6573f7c0b89d6a4c38d8 Mon Sep 17 00:00:00 2001 From: malik Date: Thu, 25 Jan 2024 01:02:30 +0100 Subject: [PATCH 07/13] Add all translations. (not working yet) --- aboutme.html | 6 +- index.html | 6 +- js/lang.js | 214 +++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 218 insertions(+), 8 deletions(-) diff --git a/aboutme.html b/aboutme.html index 2c6c9eb..43d1113 100644 --- a/aboutme.html +++ b/aboutme.html @@ -21,11 +21,12 @@ +
-

Über mich:

+

hhh

Hey, ich weiß selbst nach fast zwei Jahrzehnten auf diesem Planeten nicht genau, was ich über mich schreiben soll in solchen „Über Mich“s. Aber ich versuche es mal. :)

Also ich interessiere mich sehr für alles rund um Computer. Ich nutze Linux und lerne gerade programmieren. Abseits vom Computer treffe ich mich gerne mit Freunden und höre sehr viel Musik. In letzter Zeit höre ich überwiegend Techno, daher gehe ich auch mega gerne regelmäßig in Technoclubs.

@@ -72,6 +73,9 @@ + + + \ No newline at end of file diff --git a/index.html b/index.html index bf63b00..d948a6b 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,10 @@
-

Hello Internet!

-

I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)

+

+

I'm Malik, some guy on the web who's learning to code.

+

+

Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)

diff --git a/js/lang.js b/js/lang.js index b97c503..8d85b9d 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,23 +1,227 @@ var language = { eng: { + //index.html welcometitle: "Hello Internet!", - welcome: "I'm Malik, some guy on the web who's learning to code. Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)" + welcome1: "I'm Malik, some guy on the web who's learning to code.", + welcome2: "Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)", + //aboutme.html + aboutmetitle: "About me:", + aboutme1: "Hey, even after almost two decades on this planet I don't know exactly what to write about myself in these 'About Me's. But I'll give it a try. :)", + aboutme2: "So I'm very interested in everything to do with computers. I use Linux and am currently learning to program. Away from the computer, I like to meet up with friends and listen to a lot of music. Lately I've been listening mainly to techno lately, which is why I also go to techno clubs regularly. ", + aboutme3: "Last but not least. I love cats and even have two of these weirdos.", + aboutmebutton1: "Cats", + aboutmebutton2: "Linux", + aboutmebutton3: "Top 10 Techno", + //projects.html + projectstitle: "Comming Soon!", + projects: "Nothing here yet. :)", + //contactme.html + contacttitle: "Contact", + contact: "Email: malik.wachter[at]mawacode.de", + //aboutme/cats.html + catstitle: "My Cats!", + cats: "The white cat is called Percy and the black and white cat is called Mailo.", + //aboutme/linux.html + linuxtitle: "Linux", + linux1: "My Linux distrohop history:", + linuxli1: "2021 January - Linux Mint", + linuxli2: "2021 June - Kubuntu", + linuxli3: "2021 July - KDE Neon", + linuxli4: "2022 February - Fedora", + linuxli5: "2022 June - Nobara", + linuxli6: "Currently Fedora and Nobara", + linux2: "Desktop: Nobara Linux", + linux3: "Distros I've only played around with once:", + linuxli7: "Arch Linux", + linuxli8: "Artix Linux", + linuxli9: "AntiX", + linuxli10: "TailsOS", + linux4: "Other Linux devices I own:", + linuxli11: "Raspberry Pi - Rasberry Pi OS", + linuxli12: "Steam Deck - SteamOS", + linuxli13: "Fairphone 3+ - iodéOS", + //aboutme/techno.html + technotitle: "Techno Top 10", + techno: "Befor you read: This top 10 list is not meant seriously. It was not rated according to any criteria. It's just a collection of songs that I currently enjoy listening to.", + technoli1: "1. i wanna be your girlfriend | Dj Brice", + technoli2: "2. DIE LIEBE KOMMT NICHT AUS BERLIN | Brutalismus 3000", + technoli3: "3. HEISS (Floorkiller Flex) | ÅMRTÜM", + technoli4: "4. Underground | Tucker", + technoli5: "5. Audio Bully - Original | ANSBRO", + technoli6: "6. Goes Crazy - Original Mix | RBX", + technoli7: "7. As We Kick | RVLT, Ouija", + technoli8: "8. Language Of The Devil | Infeed", + technoli9: "9. NUR MEIN KÖRPER UND DIE ANGST | Brutalismus 3000", + technoli10: "10. Atme Ein (Atme Rauch aus) | Butschi, Felix Jaehn, Fairy Mary" }, ger: { + //index.html welcometitle: "Hallo Internet!", - welcome:"Ich bin Malik, irgend so ein Typ im Web, der gerade Programmieren lernt. Willkommen auf meiner persönlichen Webseite. Hier erfährst du mehr über mich und meine Projekte! Danke fürs Vorbeischauen. :)" + welcome1: "Ich bin Malik, ein Typ aus dem Internet, der programmieren lernt.", + welcome2: "Willkommen auf meiner persönlichen Website. Hier kannst du mehr über mich und meine Projekte erfahren! Danke fürs Vorbeischauen :)", + //aboutme.html + aboutmetitle: "Über mich:", + aboutme1: "Hey, selbst nach fast zwei Jahrzehnten auf diesem Planeten weiß ich nicht genau, was ich in diesen 'Über mich's überhaupt schreiben soll. Aber ich werde es versuchen :)", + aboutme2: "Ich interessiere mich also sehr für alles, was mit Computern zu tun hat. Ich benutze Linux und lerne gerade programmieren. Abseits des Computers treffe ich mich gerne mit Freunden und höre viel Musik. In letzter Zeit höre ich vor allem Techno, deshalb gehe ich auch regelmäßig in Techno-Clubs.", + aboutme3: "Zu guter Letzt, Ich liebe Katzen und habe sogar zwei von diesen Spinnern.", + aboutmebutton1: "Katzen", + aboutmebutton2: "Linux", + aboutmebutton3: "Top 10 Techno", + //projects.html + projectstitle: "Kommt bald!", + projects: "Noch ist hier nichts :)", + //contactme.html + contacttitle: "Kontakt", + contact: "Email: malik.wachter[at]mawacode.de", + //aboutme/cats.html + catstitle: "Meine Katzen!", + cats: "Der weiße Kater heißt Percy und der schwarz-weiße Kater heißt Mailo.", + //aboutme/linux.html + linuxtitle: "Linux", + linux1: "Meine Linux distrohop Geschichte:", + linuxli1: "2021 Januar - Linux Mint", + linuxli2: "2021 Juni - Kubuntu", + linuxli3: "2021 Juli - KDE Neon", + linuxli4: "2022 Februar - Fedora", + linuxli5: "2022 Juni - Nobara", + linuxli6: "Aktuell Fedora und Nobara", + linux2: "Desktop: Nobara Linux", + linux3: "Distros mit dennen ich nurmal rumgespielt habe:", + linuxli7: "Arch Linux", + linuxli8: "Artix Linux", + linuxli9: "AntiX", + linuxli10: "TailsOS", + linux4: "Weitere Linux Geräte in meinem Besitz:", + linuxli11: "Raspberry Pi - Rasberry Pi OS", + linuxli12: "Steam Deck - SteamOS", + linuxli13: "Fairphone 3+ - iodéOS", + //aboutme/techno.html + technotitle: "Techno Top 10", + techno: "Vorab: Diese Top-10-Liste ist nicht ernst gemeint. Es wurde nach keinen Kriterien bewertet. Das ist nur eine Sammlung von Liedern, die ich aktuell gerne höre.", + technoli1: "1. i wanna be your girlfriend | Dj Brice", + technoli2: "2. DIE LIEBE KOMMT NICHT AUS BERLIN | Brutalismus 3000", + technoli3: "3. HEISS (Floorkiller Flex) | ÅMRTÜM", + technoli4: "4. Underground | Tucker", + technoli5: "5. Audio Bully - Original | ANSBRO", + technoli6: "6. Goes Crazy - Original Mix | RBX", + technoli7: "7. As We Kick | RVLT, Ouija", + technoli8: "8. Language Of The Devil | Infeed", + technoli9: "9. NUR MEIN KÖRPER UND DIE ANGST | Brutalismus 3000", + technoli10: "10. Atme Ein (Atme Rauch aus) | Butschi, Felix Jaehn, Fairy Mary" } }; var isGerman = localStorage.getItem("isGerman") === "true"; if(isGerman===true) { + //index.html welcometitle.textContent = language.ger.welcometitle; - welcome.textContent = language.ger.welcome; + welcome1.textContent = language.ger.welcome1; + welcome2.textContent = language.ger.welcome2; + //aboutme.html + aboutmetitle.textContent = language.ger.aboutmetitle; + aboutme1.textContent = language.ger.aboutme1; + aboutme2.textContent = language.ger.aboutme2; + aboutme3.textContent = language.ger.aboutme3; + aboutmebutton1.textContent = language.ger.aboutmebutton1; + aboutmebutton2.textContent = language.ger.aboutmebutton2; + aboutmebutton3.textContent = language.ger.aboutmebutton3; + //projects.html + projectstitle.textContent = language.ger.projectstitle; + projects.textContent = language.ger.projects; + //contactme.html + contacttitle.textContent = language.ger.contacttitle; + contact.textContent = language.ger.contact; + //aboutme/cats.html + catstitle.textContent = language.ger.catstitle; + cats.textContent = language.ger.cats; + //aboutme/linux.html + linuxtitle.textContent = language.ger.linuxtitle; + linux1.textContent = language.ger.linux1; + linuxli1.textContent = language.ger.linuxli1; + linuxli2.textContent = language.ger.linuxli2; + linuxli3.textContent = language.ger.linuxli3; + linuxli4.textContent = language.ger.linuxli4; + linuxli5.textContent = language.ger.linuxli5; + linuxli6.textContent = language.ger.linuxli6; + linux2.textContent = language.ger.linux2; + linux3.textContent = language.ger.linux3; + linuxli7.textContent = language.ger.linuxli7; + linuxli8.textContent = language.ger.linuxli8; + linuxli9.textContent = language.ger.linuxli9; + linuxli10.textContent = language.ger.linuxli10; + linux4.textContent = language.ger.linux4; + linuxli11.textContent = language.ger.linuxli11; + linuxli12.textContent = language.ger.linuxli12; + linuxli13.textContent = language.ger.linuxli13; + //aboutme/techno.html + technotitle.textContent = language.ger.technotitle; + techno.textContent = language.ger.techno; + technoli1.textContent = language.ger.technoli1; + technoli2.textContent = language.ger.technoli2; + technoli3.textContent = language.ger.technoli3; + technoli4.textContent = language.ger.technoli4; + technoli5.textContent = language.ger.technoli5; + technoli6.textContent = language.ger.technoli6; + technoli7.textContent = language.ger.technoli7; + technoli8.textContent = language.ger.technoli8; + technoli9.textContent = language.ger.technoli9; + technoli10.textContent = language.ger.technoli10; } else{ - welcometitle.textContent = language.eng.welcometitle; - welcome.textContent = language.eng.welcome; + //index.html + welcometitle.textContent = language.eng.welcometitle; + welcome1.textContent = language.eng.welcome1; + welcome2.textContent = language.eng.welcome2; + //aboutme.html + aboutmetitle.textContent = language.eng.aboutmetitle; + aboutme1.textContent = language.eng.aboutme1; + aboutme2.textContent = language.eng.aboutme2; + aboutme3.textContent = language.eng.aboutme3; + aboutmebutton1.textContent = language.eng.aboutmebutton1; + aboutmebutton2.textContent = language.eng.aboutmebutton2; + aboutmebutton3.textContent = language.eng.aboutmebutton3; + //projects.html + projectstitle.textContent = language.eng.projectstitle; + projects.textContent = language.eng.projects; + //contactme.html + contacttitle.textContent = language.eng.contacttitle; + contact.textContent = language.eng.contact; + //aboutme/cats.html + catstitle.textContent = language.eng.catstitle; + cats.textContent = language.eng.cats; + //aboutme/linux.html + linuxtitle.textContent = language.eng.linuxtitle; + linux1.textContent = language.eng.linux1; + linuxli1.textContent = language.eng.linuxli1; + linuxli2.textContent = language.eng.linuxli2; + linuxli3.textContent = language.eng.linuxli3; + linuxli4.textContent = language.eng.linuxli4; + linuxli5.textContent = language.eng.linuxli5; + linuxli6.textContent = language.eng.linuxli6; + linux2.textContent = language.eng.linux2; + linux3.textContent = language.eng.linux3; + linuxli7.textContent = language.eng.linuxli7; + linuxli8.textContent = language.eng.linuxli8; + linuxli9.textContent = language.eng.linuxli9; + linuxli10.textContent = language.eng.linuxli10; + linux4.textContent = language.eng.linux4; + linuxli11.textContent = language.eng.linuxli11; + linuxli12.textContent = language.eng.linuxli12; + linuxli13.textContent = language.eng.linuxli13; + //aboutme/techno.html + technotitle.textContent = language.eng.technotitle; + techno.textContent = language.eng.techno; + technoli1.textContent = language.eng.technoli1; + technoli2.textContent = language.eng.technoli2; + technoli3.textContent = language.eng.technoli3; + technoli4.textContent = language.eng.technoli4; + technoli5.textContent = language.eng.technoli5; + technoli6.textContent = language.eng.technoli6; + technoli7.textContent = language.eng.technoli7; + technoli8.textContent = language.eng.technoli8; + technoli9.textContent = language.eng.technoli9; + technoli10.textContent = language.eng.technoli10; } From 422dee416b1242c309f8f2e8529657a312e9a870 Mon Sep 17 00:00:00 2001 From: malik Date: Thu, 25 Jan 2024 23:58:10 +0100 Subject: [PATCH 08/13] Add working Translation (half) --- aboutme.html | 64 ++++++++++----------- index.html | 14 ++--- js/lang.js | 154 +++++++++++++++++++++++++++++++++------------------ 3 files changed, 140 insertions(+), 92 deletions(-) diff --git a/aboutme.html b/aboutme.html index 43d1113..b70b26b 100644 --- a/aboutme.html +++ b/aboutme.html @@ -14,10 +14,10 @@ @@ -26,54 +26,54 @@
-

hhh

-

Hey, ich weiß selbst nach fast zwei Jahrzehnten auf diesem Planeten nicht genau, was ich über mich schreiben soll in solchen „Über Mich“s. Aber ich versuche es mal. :)

-

-

Also ich interessiere mich sehr für alles rund um Computer. Ich nutze Linux und lerne gerade programmieren. Abseits vom Computer treffe ich mich gerne mit Freunden und höre sehr viel Musik. In letzter Zeit höre ich überwiegend Techno, daher gehe ich auch mega gerne regelmäßig in Technoclubs.

-

-

Zu guter Letzt. Ich liebe Katzen und habe sogar zwei von diesen Spinnern.

+

+

+

+

+

+

-
+
-
- + - + diff --git a/index.html b/index.html index d948a6b..65609d4 100644 --- a/index.html +++ b/index.html @@ -16,10 +16,10 @@ @@ -29,9 +29,9 @@

-

I'm Malik, some guy on the web who's learning to code.

-

-

Welcome to my personal website. Here you can find out more about me and my projects! Thanks for stopping by. :)

+

+

+

diff --git a/js/lang.js b/js/lang.js index 8d85b9d..aca1cec 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,5 +1,10 @@ var language = { eng: { + //nav + homenav: "Home", + aboutmenav: "About Me", + projectsnav: "Projects", + contactnav: "Contact me", //index.html welcometitle: "Hello Internet!", welcome1: "I'm Malik, some guy on the web who's learning to code.", @@ -55,6 +60,11 @@ var language = { technoli10: "10. Atme Ein (Atme Rauch aus) | Butschi, Felix Jaehn, Fairy Mary" }, ger: { + //nav + homenav: "Startseite", + aboutmenav: "Über Mich", + projectsnav: "Projekte", + contactnav: "Kontakt", //index.html welcometitle: "Hallo Internet!", welcome1: "Ich bin Malik, ein Typ aus dem Internet, der programmieren lernt.", @@ -114,66 +124,93 @@ var language = { var isGerman = localStorage.getItem("isGerman") === "true"; if(isGerman===true) { + //nav + homenav.textContent = language.ger.homenav; + aboutmenav.textContent = language.ger.aboutmenav; + projectsnav.textContent = language.ger.projectsnav; + contactnav.textContent = language.ger.contactnav; //index.html - welcometitle.textContent = language.ger.welcometitle; - welcome1.textContent = language.ger.welcome1; - welcome2.textContent = language.ger.welcome2; + if (window.location.href.indexOf("index") > -1) { + welcometitle.textContent = language.ger.welcometitle; + welcome1.textContent = language.ger.welcome1; + welcome2.textContent = language.ger.welcome2; + } //aboutme.html - aboutmetitle.textContent = language.ger.aboutmetitle; - aboutme1.textContent = language.ger.aboutme1; - aboutme2.textContent = language.ger.aboutme2; - aboutme3.textContent = language.ger.aboutme3; - aboutmebutton1.textContent = language.ger.aboutmebutton1; - aboutmebutton2.textContent = language.ger.aboutmebutton2; - aboutmebutton3.textContent = language.ger.aboutmebutton3; + else if(window.location.href.indexOf("aboutme") > -1) { + aboutmetitle.textContent = language.ger.aboutmetitle; + aboutme1.textContent = language.ger.aboutme1; + aboutme2.textContent = language.ger.aboutme2; + aboutme3.textContent = language.ger.aboutme3; + aboutmebutton1.textContent = language.ger.aboutmebutton1; + aboutmebutton2.textContent = language.ger.aboutmebutton2; + aboutmebutton3.textContent = language.ger.aboutmebutton3; + } //projects.html - projectstitle.textContent = language.ger.projectstitle; - projects.textContent = language.ger.projects; + else if(window.location.href.indexOf("projects") > -1) { + projectstitle.textContent = language.ger.projectstitle; + projects.textContent = language.ger.projects; + } //contactme.html - contacttitle.textContent = language.ger.contacttitle; - contact.textContent = language.ger.contact; + else if(window.location.href.indexOf("contactme") > -1) { + contacttitle.textContent = language.ger.contacttitle; + contact.textContent = language.ger.contact; + } //aboutme/cats.html - catstitle.textContent = language.ger.catstitle; - cats.textContent = language.ger.cats; + else if(window.location.href.indexOf("cats") > -1) { + catstitle.textContent = language.ger.catstitle; + cats.textContent = language.ger.cats; + } //aboutme/linux.html - linuxtitle.textContent = language.ger.linuxtitle; - linux1.textContent = language.ger.linux1; - linuxli1.textContent = language.ger.linuxli1; - linuxli2.textContent = language.ger.linuxli2; - linuxli3.textContent = language.ger.linuxli3; - linuxli4.textContent = language.ger.linuxli4; - linuxli5.textContent = language.ger.linuxli5; - linuxli6.textContent = language.ger.linuxli6; - linux2.textContent = language.ger.linux2; - linux3.textContent = language.ger.linux3; - linuxli7.textContent = language.ger.linuxli7; - linuxli8.textContent = language.ger.linuxli8; - linuxli9.textContent = language.ger.linuxli9; - linuxli10.textContent = language.ger.linuxli10; - linux4.textContent = language.ger.linux4; - linuxli11.textContent = language.ger.linuxli11; - linuxli12.textContent = language.ger.linuxli12; - linuxli13.textContent = language.ger.linuxli13; + else if(window.location.href.indexOf("linux") > -1) { + linuxtitle.textContent = language.ger.linuxtitle; + linux1.textContent = language.ger.linux1; + linuxli1.textContent = language.ger.linuxli1; + linuxli2.textContent = language.ger.linuxli2; + linuxli3.textContent = language.ger.linuxli3; + linuxli4.textContent = language.ger.linuxli4; + linuxli5.textContent = language.ger.linuxli5; + linuxli6.textContent = language.ger.linuxli6; + linux2.textContent = language.ger.linux2; + linux3.textContent = language.ger.linux3; + linuxli7.textContent = language.ger.linuxli7; + linuxli8.textContent = language.ger.linuxli8; + linuxli9.textContent = language.ger.linuxli9; + linuxli10.textContent = language.ger.linuxli10; + linux4.textContent = language.ger.linux4; + linuxli11.textContent = language.ger.linuxli11; + linuxli12.textContent = language.ger.linuxli12; + linuxli13.textContent = language.ger.linuxli13; + } //aboutme/techno.html - technotitle.textContent = language.ger.technotitle; - techno.textContent = language.ger.techno; - technoli1.textContent = language.ger.technoli1; - technoli2.textContent = language.ger.technoli2; - technoli3.textContent = language.ger.technoli3; - technoli4.textContent = language.ger.technoli4; - technoli5.textContent = language.ger.technoli5; - technoli6.textContent = language.ger.technoli6; - technoli7.textContent = language.ger.technoli7; - technoli8.textContent = language.ger.technoli8; - technoli9.textContent = language.ger.technoli9; - technoli10.textContent = language.ger.technoli10; + else if(window.location.href.indexOf("techno") > -1) { + technotitle.textContent = language.ger.technotitle; + techno.textContent = language.ger.techno; + technoli1.textContent = language.ger.technoli1; + technoli2.textContent = language.ger.technoli2; + technoli3.textContent = language.ger.technoli3; + technoli4.textContent = language.ger.technoli4; + technoli5.textContent = language.ger.technoli5; + technoli6.textContent = language.ger.technoli6; + technoli7.textContent = language.ger.technoli7; + technoli8.textContent = language.ger.technoli8; + technoli9.textContent = language.ger.technoli9; + technoli10.textContent = language.ger.technoli10; + } } else{ - //index.html + //nav + homenav.textContent = language.eng.homenav; + aboutmenav.textContent = language.eng.aboutmenav; + projectsnav.textContent = language.eng.projectsnav; + contactnav.textContent = language.eng.contactnav; + //index.html + if (window.location.href.indexOf("index") > -1) { welcometitle.textContent = language.eng.welcometitle; welcome1.textContent = language.eng.welcome1; welcome2.textContent = language.eng.welcome2; - //aboutme.html + } + //aboutme.html + else if(window.location.href.indexOf("aboutme") > -1) { aboutmetitle.textContent = language.eng.aboutmetitle; aboutme1.textContent = language.eng.aboutme1; aboutme2.textContent = language.eng.aboutme2; @@ -181,16 +218,24 @@ else{ aboutmebutton1.textContent = language.eng.aboutmebutton1; aboutmebutton2.textContent = language.eng.aboutmebutton2; aboutmebutton3.textContent = language.eng.aboutmebutton3; - //projects.html + } + //projects.html + else if(window.location.href.indexOf("projects") > -1) { projectstitle.textContent = language.eng.projectstitle; projects.textContent = language.eng.projects; - //contactme.html + } + //contactme.html + else if(window.location.href.indexOf("contactme") > -1) { contacttitle.textContent = language.eng.contacttitle; contact.textContent = language.eng.contact; - //aboutme/cats.html + } + //aboutme/cats.html + else if(window.location.href.indexOf("cats") > -1) { catstitle.textContent = language.eng.catstitle; cats.textContent = language.eng.cats; - //aboutme/linux.html + } + //aboutme/linux.html + else if(window.location.href.indexOf("linux") > -1) { linuxtitle.textContent = language.eng.linuxtitle; linux1.textContent = language.eng.linux1; linuxli1.textContent = language.eng.linuxli1; @@ -209,7 +254,9 @@ else{ linuxli11.textContent = language.eng.linuxli11; linuxli12.textContent = language.eng.linuxli12; linuxli13.textContent = language.eng.linuxli13; - //aboutme/techno.html + } + //aboutme/techno.html + else if(window.location.href.indexOf("techno") > -1) { technotitle.textContent = language.eng.technotitle; techno.textContent = language.eng.techno; technoli1.textContent = language.eng.technoli1; @@ -222,6 +269,7 @@ else{ technoli8.textContent = language.eng.technoli8; technoli9.textContent = language.eng.technoli9; technoli10.textContent = language.eng.technoli10; + } } From db261d59b34f008f41afc4408a10799f067ebe3b Mon Sep 17 00:00:00 2001 From: malik Date: Fri, 26 Jan 2024 00:17:18 +0100 Subject: [PATCH 09/13] Add check if homepage to fix missing text --- index.html | 2 +- js/lang.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 65609d4..92f56e9 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@
-

+

Hello Internet!

diff --git a/js/lang.js b/js/lang.js index aca1cec..49c0a50 100644 --- a/js/lang.js +++ b/js/lang.js @@ -130,7 +130,7 @@ if(isGerman===true) { projectsnav.textContent = language.ger.projectsnav; contactnav.textContent = language.ger.contactnav; //index.html - if (window.location.href.indexOf("index") > -1) { + if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) { welcometitle.textContent = language.ger.welcometitle; welcome1.textContent = language.ger.welcome1; welcome2.textContent = language.ger.welcome2; @@ -204,7 +204,7 @@ else{ projectsnav.textContent = language.eng.projectsnav; contactnav.textContent = language.eng.contactnav; //index.html - if (window.location.href.indexOf("index") > -1) { + if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) { welcometitle.textContent = language.eng.welcometitle; welcome1.textContent = language.eng.welcome1; welcome2.textContent = language.eng.welcome2; From d1b72f9183d0222cee606e3f40548a38074accc6 Mon Sep 17 00:00:00 2001 From: malik Date: Fri, 26 Jan 2024 00:35:51 +0100 Subject: [PATCH 10/13] Fully implemented translations --- aboutme/cats.html | 16 +++++++++------ aboutme/linux.html | 50 ++++++++++++++++++++++++--------------------- aboutme/techno.html | 36 +++++++++++++++++--------------- contactme.html | 16 +++++++++------ js/lang.js | 8 ++++++-- projects.html | 15 ++++++++------ 6 files changed, 82 insertions(+), 59 deletions(-) diff --git a/aboutme/cats.html b/aboutme/cats.html index 6970ab3..9411451 100644 --- a/aboutme/cats.html +++ b/aboutme/cats.html @@ -15,19 +15,20 @@ +
-

Meine Katzen!

-

Der weiße Kater heißt Percy und der Schwarzweiße heißt Mailo

+

+

@@ -64,6 +65,9 @@ + + + \ No newline at end of file diff --git a/aboutme/linux.html b/aboutme/linux.html index 74d32d5..498e383 100644 --- a/aboutme/linux.html +++ b/aboutme/linux.html @@ -15,46 +15,47 @@ +
-

Linux

+

-

Meine Linux distrohop Geschichte:

+

    -
  • 2021 Januar - Linux Mint
  • -
  • 2021 Juni - Kubuntu
  • -
  • 2021 Juli - KDE Neon
  • -
  • 2022 Februar - Fedora
  • -
  • 2022 Juni - Nobara
  • -
  • Aktuell Fedora und Nobara
  • +
  • +
  • +
  • +
  • +
  • +

-

Desktop: Nobara Linux

+

-

Laptop: Fedora Linux

+

-

Distros mit dennen ich nurmal rumgespielt habe:

+

    -
  • Arch Linux
  • -
  • Artix Linux
  • -
  • AntiX
  • -
  • TailsOS
  • +
  • +
  • +
  • +
-

Weitere Linux Geräte in meinem Besitz:

+

    -
  • Raspberry Pi - Rasberry Pi OS
  • -
  • Steam Deck - SteamOS
  • -
  • Fairphone 3+ - iodéOS
  • +
  • +
  • +
@@ -90,6 +91,9 @@ + + + \ No newline at end of file diff --git a/aboutme/techno.html b/aboutme/techno.html index 3ea9580..89e2c5f 100644 --- a/aboutme/techno.html +++ b/aboutme/techno.html @@ -15,30 +15,31 @@ +
-

Techno Top 10

-

Vorab: Diese Top-10-Liste ist nicht ernst gemeint. Es wurde nach keinen Kriterien bewertet. Das ist nur eine Sammlung von Liedern, die ich aktuell gerne höre.

+

+

    -
  • 1. i wanna be your girlfriend | Dj Brice
  • -
  • 2. DIE LIEBE KOMMT NICHT AUS BERLIN | Brutalismus 3000
  • -
  • 3. HEISS (Floorkiller Flex) | ÅMRTÜM
  • -
  • 4. Underground | Tucker
  • -
  • 5. Audio Bully - Original | ANSBRO
  • -
  • 6. Goes Crazy - Original Mix | RBX
  • -
  • 7. As We Kick | RVLT, Ouija
  • -
  • 8. Language Of The Devil | Infeed
  • -
  • 9. NUR MEIN KÖRPER UND DIE ANGST | Brutalismus 3000
  • -
  • 10. Atme Ein (Atme Rauch aus) | Butschi, Felix Jaehn, Fairy Mary
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
@@ -76,6 +77,9 @@ + + + \ No newline at end of file diff --git a/contactme.html b/contactme.html index 56e6c97..0c36f4e 100644 --- a/contactme.html +++ b/contactme.html @@ -15,19 +15,20 @@ +
-

Kontakt

-

Email: malik.wachter [at] mawacode.de

+

+

@@ -63,6 +64,9 @@ + + + \ No newline at end of file diff --git a/js/lang.js b/js/lang.js index 49c0a50..5749d81 100644 --- a/js/lang.js +++ b/js/lang.js @@ -36,6 +36,7 @@ var language = { linuxli5: "2022 June - Nobara", linuxli6: "Currently Fedora and Nobara", linux2: "Desktop: Nobara Linux", + linux2_2: "Laptop: Fedora Linux", linux3: "Distros I've only played around with once:", linuxli7: "Arch Linux", linuxli8: "Artix Linux", @@ -96,6 +97,7 @@ var language = { linuxli5: "2022 Juni - Nobara", linuxli6: "Aktuell Fedora und Nobara", linux2: "Desktop: Nobara Linux", + linux2_2: "Laptop: Fedora Linux", linux3: "Distros mit dennen ich nurmal rumgespielt habe:", linuxli7: "Arch Linux", linuxli8: "Artix Linux", @@ -136,7 +138,7 @@ if(isGerman===true) { welcome2.textContent = language.ger.welcome2; } //aboutme.html - else if(window.location.href.indexOf("aboutme") > -1) { + else if(window.location.href.indexOf("aboutme.html") > -1) { aboutmetitle.textContent = language.ger.aboutmetitle; aboutme1.textContent = language.ger.aboutme1; aboutme2.textContent = language.ger.aboutme2; @@ -171,6 +173,7 @@ if(isGerman===true) { linuxli5.textContent = language.ger.linuxli5; linuxli6.textContent = language.ger.linuxli6; linux2.textContent = language.ger.linux2; + linux2_2.textContent = language.ger.linux2_2; linux3.textContent = language.ger.linux3; linuxli7.textContent = language.ger.linuxli7; linuxli8.textContent = language.ger.linuxli8; @@ -210,7 +213,7 @@ else{ welcome2.textContent = language.eng.welcome2; } //aboutme.html - else if(window.location.href.indexOf("aboutme") > -1) { + else if(window.location.href.indexOf("aboutme.html") > -1) { aboutmetitle.textContent = language.eng.aboutmetitle; aboutme1.textContent = language.eng.aboutme1; aboutme2.textContent = language.eng.aboutme2; @@ -245,6 +248,7 @@ else{ linuxli5.textContent = language.eng.linuxli5; linuxli6.textContent = language.eng.linuxli6; linux2.textContent = language.eng.linux2; + linux2_2.textContent = language.eng.linux2_2; linux3.textContent = language.eng.linux3; linuxli7.textContent = language.eng.linuxli7; linuxli8.textContent = language.eng.linuxli8; diff --git a/projects.html b/projects.html index 642d4e5..740c963 100644 --- a/projects.html +++ b/projects.html @@ -15,19 +15,20 @@ +
-

Kommt bald!

-

Noch ist hier nichts. :)

+

+

@@ -63,6 +64,8 @@ + + \ No newline at end of file From d2f5097f24e1723f2f4a917e7761b4fa64c3e580 Mon Sep 17 00:00:00 2001 From: malik Date: Fri, 26 Jan 2024 00:37:26 +0100 Subject: [PATCH 11/13] Fixed Typo --- js/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lang.js b/js/lang.js index 5749d81..e2779f7 100644 --- a/js/lang.js +++ b/js/lang.js @@ -18,7 +18,7 @@ var language = { aboutmebutton2: "Linux", aboutmebutton3: "Top 10 Techno", //projects.html - projectstitle: "Comming Soon!", + projectstitle: "Coming Soon!", projects: "Nothing here yet. :)", //contactme.html contacttitle: "Contact", From 41524afd603f1f6d6ce890584869f1cb4d50ab0b Mon Sep 17 00:00:00 2001 From: malik Date: Fri, 26 Jan 2024 01:32:13 +0100 Subject: [PATCH 12/13] Changes on button to change langauge --- aboutme.html | 2 +- aboutme/cats.html | 2 +- aboutme/linux.html | 2 +- aboutme/techno.html | 2 +- contactme.html | 2 +- css/style.css | 22 ---------------------- index.html | 2 +- js/lang.js | 21 ++++++++++++--------- projects.html | 2 +- 9 files changed, 19 insertions(+), 38 deletions(-) diff --git a/aboutme.html b/aboutme.html index b70b26b..c607901 100644 --- a/aboutme.html +++ b/aboutme.html @@ -18,10 +18,10 @@
  • +
  • -
    diff --git a/aboutme/cats.html b/aboutme/cats.html index 9411451..a579983 100644 --- a/aboutme/cats.html +++ b/aboutme/cats.html @@ -19,10 +19,10 @@
  • +
  • -
    diff --git a/aboutme/linux.html b/aboutme/linux.html index 498e383..504a0f6 100644 --- a/aboutme/linux.html +++ b/aboutme/linux.html @@ -19,10 +19,10 @@
  • +
  • -
    diff --git a/aboutme/techno.html b/aboutme/techno.html index 89e2c5f..08ad52c 100644 --- a/aboutme/techno.html +++ b/aboutme/techno.html @@ -19,10 +19,10 @@
  • +
  • -
    diff --git a/contactme.html b/contactme.html index 0c36f4e..b4f38ee 100644 --- a/contactme.html +++ b/contactme.html @@ -19,10 +19,10 @@
  • +
  • -
    diff --git a/css/style.css b/css/style.css index 255a32b..f77a3b8 100644 --- a/css/style.css +++ b/css/style.css @@ -61,20 +61,6 @@ nav ul li a:hover{ cursor: pointer; } -#lang{ - color: black; - padding: 5px; - background-color: #e2de84; - box-shadow: 5px 5px 5px black; - width: 2.5em; - margin-top: 24px; - margin-left: 5px; -} - -#lang:hover{ - cursor: pointer; -} - h1{ color: black; } @@ -206,16 +192,8 @@ h2{ box-shadow: 0 0 0; } - #lang{ - margin-left: 5px; - margin-bottom: 25px; - width: 58px; - transform: translateX(-60px); - } - .menu-icon{ display: block; - transform: translateX(70px); } #menuList{ diff --git a/index.html b/index.html index 92f56e9..42643b3 100644 --- a/index.html +++ b/index.html @@ -20,10 +20,10 @@
  • +
  • -
    diff --git a/js/lang.js b/js/lang.js index e2779f7..e69a8f8 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,10 +1,12 @@ var language = { + //All english strings: eng: { //nav homenav: "Home", aboutmenav: "About Me", projectsnav: "Projects", contactnav: "Contact me", + lang: "Language", //index.html welcometitle: "Hello Internet!", welcome1: "I'm Malik, some guy on the web who's learning to code.", @@ -60,12 +62,14 @@ var language = { technoli9: "9. NUR MEIN KÖRPER UND DIE ANGST | Brutalismus 3000", technoli10: "10. Atme Ein (Atme Rauch aus) | Butschi, Felix Jaehn, Fairy Mary" }, + //All german strings: ger: { //nav homenav: "Startseite", aboutmenav: "Über Mich", projectsnav: "Projekte", contactnav: "Kontakt", + lang: "Sprache", //index.html welcometitle: "Hallo Internet!", welcome1: "Ich bin Malik, ein Typ aus dem Internet, der programmieren lernt.", @@ -123,14 +127,17 @@ var language = { } }; +//get isGerman state from localStorage var isGerman = localStorage.getItem("isGerman") === "true"; +//inserting the german strings: if(isGerman===true) { //nav homenav.textContent = language.ger.homenav; aboutmenav.textContent = language.ger.aboutmenav; projectsnav.textContent = language.ger.projectsnav; contactnav.textContent = language.ger.contactnav; + lang.textContent = language.ger.lang; //index.html if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) { welcometitle.textContent = language.ger.welcometitle; @@ -200,12 +207,14 @@ if(isGerman===true) { technoli10.textContent = language.ger.technoli10; } } +//inserting the english strings: else{ //nav homenav.textContent = language.eng.homenav; aboutmenav.textContent = language.eng.aboutmenav; projectsnav.textContent = language.eng.projectsnav; contactnav.textContent = language.eng.contactnav; + lang.textContent = language.eng.lang; //index.html if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) { welcometitle.textContent = language.eng.welcometitle; @@ -277,18 +286,12 @@ else{ } + +//invert isGerman bool on click of language button function langChange() { isGerman = !isGerman; localStorage.setItem("isGerman", isGerman); - console.log(localStorage.getItem("isGerman")); + console.log(isGerman); window.location.reload(); } - - - - - - - - diff --git a/projects.html b/projects.html index 740c963..864445b 100644 --- a/projects.html +++ b/projects.html @@ -19,10 +19,10 @@
  • +
  • -
    From 5c6209f93047a3566b2712520ee2306ab6326881 Mon Sep 17 00:00:00 2001 From: malik Date: Sat, 27 Jan 2024 15:31:42 +0100 Subject: [PATCH 13/13] Fully working language change button --- aboutme.html | 21 --------------------- aboutme/cats.html | 21 --------------------- aboutme/linux.html | 20 -------------------- aboutme/techno.html | 21 --------------------- contactme.html | 20 -------------------- css/style.css | 5 ++--- index.html | 21 --------------------- js/lang.js | 22 ++++++++++++++++++++-- projects.html | 20 -------------------- 9 files changed, 22 insertions(+), 149 deletions(-) diff --git a/aboutme.html b/aboutme.html index c607901..98ef8ce 100644 --- a/aboutme.html +++ b/aboutme.html @@ -52,27 +52,6 @@
    - - diff --git a/aboutme/cats.html b/aboutme/cats.html index a579983..e03b9be 100644 --- a/aboutme/cats.html +++ b/aboutme/cats.html @@ -44,27 +44,6 @@
    - - diff --git a/aboutme/linux.html b/aboutme/linux.html index 504a0f6..f8cdb8b 100644 --- a/aboutme/linux.html +++ b/aboutme/linux.html @@ -70,26 +70,6 @@
    - diff --git a/aboutme/techno.html b/aboutme/techno.html index 08ad52c..ab45861 100644 --- a/aboutme/techno.html +++ b/aboutme/techno.html @@ -56,27 +56,6 @@
    - - diff --git a/contactme.html b/contactme.html index b4f38ee..8fcfb1b 100644 --- a/contactme.html +++ b/contactme.html @@ -43,26 +43,6 @@
    - diff --git a/css/style.css b/css/style.css index f77a3b8..0a60958 100644 --- a/css/style.css +++ b/css/style.css @@ -171,7 +171,7 @@ h2{ padding-right: 4%; } - nav ul { + nav ul{ width: 100%; position: absolute; top: 75px; @@ -185,11 +185,11 @@ h2{ display: block; margin-top: 10px; margin-bottom: 10px; - } nav ul li a{ box-shadow: 0 0 0; + cursor: pointer; } .menu-icon{ @@ -214,7 +214,6 @@ h2{ .col-2 .fotovonmir{ width: 77%; - transform: translateX(0px); } diff --git a/index.html b/index.html index 42643b3..06a622b 100644 --- a/index.html +++ b/index.html @@ -46,27 +46,6 @@
    - - diff --git a/js/lang.js b/js/lang.js index e69a8f8..ad5020f 100644 --- a/js/lang.js +++ b/js/lang.js @@ -6,7 +6,7 @@ var language = { aboutmenav: "About Me", projectsnav: "Projects", contactnav: "Contact me", - lang: "Language", + lang: "Switch to German", //index.html welcometitle: "Hello Internet!", welcome1: "I'm Malik, some guy on the web who's learning to code.", @@ -69,7 +69,7 @@ var language = { aboutmenav: "Über Mich", projectsnav: "Projekte", contactnav: "Kontakt", - lang: "Sprache", + lang: "Wechseln zu Englisch", //index.html welcometitle: "Hallo Internet!", welcome1: "Ich bin Malik, ein Typ aus dem Internet, der programmieren lernt.", @@ -295,3 +295,21 @@ function langChange() { window.location.reload(); } + +//menu Script +var menuList = document.getElementById("menuList"); + +menuList.style.maxHeight = "0px"; + +function togglemenu(){ + + if(menuList.style.maxHeight == "0px") + { + menuList.style.maxHeight = "200px"; + } + else + { + menuList.style.maxHeight = "0px"; + } + +} \ No newline at end of file diff --git a/projects.html b/projects.html index 864445b..f0d4697 100644 --- a/projects.html +++ b/projects.html @@ -43,26 +43,6 @@
    -