Skip to content

Commit 40f8ae8

Browse files
committed
fixed menu
1 parent 2abdb32 commit 40f8ae8

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ section {
3434
display: flex;
3535
flex-wrap: wrap;
3636
flex-direction: row;
37+
background-color: #222;
3738
}
3839
.menu > div {
3940
display: flex;

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ <h1>zesameri</h1>
5858
<div><div> tbd </div></div>
5959
</section>
6060

61-
<footer class="footer" id="footer">
61+
<footer class="footer hero-footer" id="footer">
62+
<a class="footer__link--github" href="https://github.com/zesameri" target="_blank" rel="noopener noreferrer">i'm smart</a>
63+
<a class="footer__link--playlists" href="https://open.spotify.com/user/1286649958" target="_blank" rel="noopener noreferrer">vibes</a>
64+
<a class="footer__link--linkedin" href="https://www.linkedin.com/in/zesameri/" target="_blank" rel="noopener noreferrer">love me</a>
65+
<a class="footer__link--instagram" href="https://www.instagram.com/zesameri/" target="_blank" rel="noopener noreferrer">look at me</a>
66+
<div class="crumple" aria-hidden=""></div>
67+
</footer>
68+
<footer class="footer menu-footer" id="footer">
6269
<a class="footer__link--github" href="https://github.com/zesameri" target="_blank" rel="noopener noreferrer">i'm smart</a>
6370
<a class="footer__link--playlists" href="https://open.spotify.com/user/1286649958" target="_blank" rel="noopener noreferrer">vibes</a>
6471
<a class="footer__link--linkedin" href="https://www.linkedin.com/in/zesameri/" target="_blank" rel="noopener noreferrer">love me</a>

js/main.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -129,25 +129,3 @@
129129
const items = Array.from(document.querySelectorAll('.item'));
130130
const init = (() => items.forEach(item => new ImgItem(item)))();
131131
};
132-
133-
$(window).scroll(function() {
134-
var isMobile = window.matchMedia("only screen and (max-width: 850px)").matches ||
135-
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
136-
var isOtherMediaQuery = window.matchMedia("only screen and (min-width:1080px)").matches;
137-
if(isMobile && !isOtherMediaQuery) {
138-
// some code..
139-
} else {
140-
var hT = $('#menu').offset().top,
141-
hH = $('#menu').outerHeight(),
142-
wH = $(window).height(),
143-
wS = $(this).scrollTop();
144-
145-
if (wS > (hT+hH-wH)){
146-
$('#footer').addClass("menu-footer");
147-
$('#footer').removeClass("hero-footer");
148-
} else {
149-
$('#footer').addClass("hero-footer");
150-
$('#footer').removeClass("menu-footer");
151-
}
152-
}
153-
});

0 commit comments

Comments
 (0)