diff --git a/css/style.css b/css/style.css
index 66ba8f1..d09ced2 100644
--- a/css/style.css
+++ b/css/style.css
@@ -874,6 +874,10 @@ h3.my-profession
@media (max-width: 1199px)
{
+ .section .container
+ {
+ padding-top: 70px;
+ }
.aside
{
left: -270px;
diff --git a/index.html b/index.html
index 6001cb9..9f9b92a 100644
--- a/index.html
+++ b/index.html
@@ -90,7 +90,7 @@
I'm a QA Analyst
GitHub
LinkedIn
- My contacts
+ My contacts
diff --git a/js/script.js b/js/script.js
index f547501..8f2a338 100644
--- a/js/script.js
+++ b/js/script.js
@@ -10,70 +10,91 @@ var typed = new Typed(".typing", {
const nav = document.querySelector(".nav"),
navList = nav.querySelectorAll("li"),
- totalNavList = navList.length,
+ totalNavList = navList.length;
allSection = document.querySelectorAll(".section"),
totalSection = allSection.length;
-
-for (let i = 0; i < totalNavList; i++) {
- const a = navList[i].querySelector("a");
- a.addEventListener("click", function () {
- for (let i = 0; i < totalSection; i++) {
- allSection[i].classList.remove("back-section");
- }
- for (let j = 0; j < totalNavList; j++) {
- if (navList[j].querySelector("a").classList.contains("active")) {
- allSection[j].classList.add("back-section");
+ for(let i=0; i
{
- asideSectionTogglerBtn();
-});
+ navTogglerBtn.addEventListener("click", () =>
+ {
+ asideSectionTogglerBtn();
+ });
-function asideSectionTogglerBtn() {
- aside.classList.toggle("open");
- navTogglerBtn.classList.toggle("open");
- for (let i = 0; i < totalSection; i++) {
- allSection[i].classList.toggle("open");
+ function asideSectionTogglerBtn()
+ {
+ aside.classList.toggle("open");
+ navTogglerBtn.classList.toggle("open");
+ for(let i=0; i