From 5c6209f93047a3566b2712520ee2306ab6326881 Mon Sep 17 00:00:00 2001 From: malik Date: Sat, 27 Jan 2024 15:31:42 +0100 Subject: [PATCH] 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 @@ -