mirror of
https://github.com/hexahigh/portfolio.git
synced 2025-12-12 03:25:06 +01:00
updtae
This commit is contained in:
parent
af03432846
commit
34e6ae9656
@ -14,6 +14,7 @@
|
||||
<link rel="stylesheet" href="../data/style/offline-language-english.css">
|
||||
<script src="https://hexahigh.github.io/cdn/js/min/offline.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
<meta name="CurrentPage" content="about">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -5,6 +5,7 @@ function delay(milliseconds){
|
||||
});
|
||||
}
|
||||
|
||||
const CurrentPage = document.querySelector('meta[name="CurrentPage"]').content
|
||||
|
||||
function scrollTop() {
|
||||
const scrollBtn = document.querySelector('.scrollTop');
|
||||
@ -19,10 +20,18 @@ const navMenuImg = document.querySelector('#nav-menu-img');
|
||||
function navShow() {
|
||||
if (navMobileContentClose.classList.contains('nav-mobile-content')) {
|
||||
navMobileContentClose.classList.remove('nav-mobile-content');
|
||||
navMenuImg.src = '/data/images/menu.svg';
|
||||
if(CurrentPage == projects, about, news) {
|
||||
navMenuImg.src = '../data/images/menu.svg';
|
||||
} else {
|
||||
navMenuImg.src = '/data/images/menu.svg';
|
||||
}
|
||||
} else {
|
||||
navMobileContentClose.classList.toggle('nav-mobile-content');
|
||||
navMenuImg.src = '/data/images/close.svg';
|
||||
if(CurrentPage == projects, about, news) {
|
||||
navMenuImg.src = '../data/images/close.svg';
|
||||
} else {
|
||||
navMenuImg.src = '/data/images/close.svg';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
<script src="../index-allpage.js" defer></script>
|
||||
<script src="https://hexahigh.github.io/cdn/js/min/offline.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
<meta name="CurrentPage" content="news">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
<link rel="stylesheet" href="../data/style/offline-language-english.css">
|
||||
<script src="https://hexahigh.github.io/cdn/js/min/offline.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
<meta name="CurrentPage" content="projects">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user