mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
navbar fixes
This commit is contained in:
@ -7,6 +7,18 @@ $(function() {
|
||||
})
|
||||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
var scroll = $(window).scrollTop();
|
||||
var fTop = $('#new-articles').position().top + $('#new-articles').height();
|
||||
if (scroll >= fTop) {
|
||||
$(".navbar-wrapper").addClass("darken");
|
||||
|
||||
} else {
|
||||
$(".navbar-wrapper").removeClass("darken");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function onYouTubeIframeAPIReady() {
|
||||
$('.youtube-video').each(function() {
|
||||
var id = $(this).data('id');
|
||||
|
||||
Reference in New Issue
Block a user