Skip to content

Commit 991a44a

Browse files
committedJun 26, 2020
Added preventDefault() and Social-link Updates
1 parent d16650b commit 991a44a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎nav-bars/app.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
const navToggle = document.querySelector(".nav-toggle");
88
const links = document.querySelector(".links");
9+
links.addEventListener("click", (e) => {
10+
e.preventDefault();
11+
})
912
navToggle.addEventListener("click", () => {
1013
/* if (links.classList.contains("show-links") === false) {
1114
links.classList.add("show-links");

‎nav-bars/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<!-- social media -->
4040
<ul class="social-icons">
4141
<li>
42-
<a href="https://www.twitter.com">
42+
<a href="https://www.facebook.com">
4343
<i class="fab fa-facebook"></i>
4444
</a>
4545
</li>
@@ -49,17 +49,17 @@
4949
</a>
5050
</li>
5151
<li>
52-
<a href="https://www.twitter.com">
52+
<a href="https://www.behance.net">
5353
<i class="fab fa-behance"></i>
5454
</a>
5555
</li>
5656
<li>
57-
<a href="https://www.twitter.com">
57+
<a href="https://www.linkedin.com">
5858
<i class="fab fa-linkedin"></i>
5959
</a>
6060
</li>
6161
<li>
62-
<a href="https://www.twitter.com">
62+
<a href="https://www.sketch.com/">
6363
<i class="fab fa-sketch"></i>
6464
</a>
6565
</li>

0 commit comments

Comments
 (0)
Please sign in to comment.