mirror of
https://github.com/michivonah/website-v2.git
synced 2025-12-22 20:46:29 +01:00
Update index.html
This commit is contained in:
parent
7ad25496b7
commit
2b89f445bd
1 changed files with 10 additions and 8 deletions
14
index.html
14
index.html
|
|
@ -61,11 +61,11 @@
|
||||||
<i class="ai-cross"></i>
|
<i class="ai-cross"></i>
|
||||||
</div>
|
</div>
|
||||||
<div id="navbar-links">
|
<div id="navbar-links">
|
||||||
<a href="#">Home</a>
|
<a href="#" onclick="closeNavbar();">Home</a>
|
||||||
<a href="#about">About me</a>
|
<a href="#about" onclick="closeNavbar();">About me</a>
|
||||||
<a href="#socialmedia">Socialmedia</a>
|
<a href="#socialmedia" onclick="closeNavbar();">Socialmedia</a>
|
||||||
<a href="#projects">Projects</a>
|
<a href="#projects" onclick="closeNavbar();">Projects</a>
|
||||||
<a href="#contact">Contact me</a>
|
<a href="#contact" onclick="closeNavbar();">Contact me</a>
|
||||||
</div>
|
</div>
|
||||||
<a id="toggleNav" onclick="toggleSection('navbar-links', 'flex'); toggleSection('closeNavbarPlaceholder', 'block');"><i id="toggle-nav-icon" class="ai-text-align-right"></i></a>
|
<a id="toggleNav" onclick="toggleSection('navbar-links', 'flex'); toggleSection('closeNavbarPlaceholder', 'block');"><i id="toggle-nav-icon" class="ai-text-align-right"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -185,7 +185,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src="assets/socialmedia/code-snippet.svg">
|
<img src="assets/socialmedia/code-snippet.png">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -357,9 +357,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeNavbar(){
|
function closeNavbar(){
|
||||||
|
if(document.getElementById('closeNavbarPlaceholder').style.display == "block"){
|
||||||
document.getElementById("navbar-links").style.display = "none";
|
document.getElementById("navbar-links").style.display = "none";
|
||||||
document.getElementById("closeNavbarPlaceholder").style.display = "none";
|
document.getElementById("closeNavbarPlaceholder").style.display = "none";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function toggleSocialmedia(){
|
function toggleSocialmedia(){
|
||||||
var tabs = document.getElementsByClassName('socialTab');
|
var tabs = document.getElementsByClassName('socialTab');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue