nodebb-theme-sin-faltas
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -18,29 +18,29 @@ /* | ||
$(window).on('action:ajaxify.end', function(event, data) { | ||
var url = data.url; | ||
var url = data.template; | ||
console.log('Data ' + url); | ||
// Script to change navbar color when scroll in page | ||
$(window).on('scroll', function() { | ||
console.log("get in scroll"); | ||
if($(window).scrollTop() > 50) { | ||
$('#header-menu').addClass('navbar-active'); | ||
$('.forum-logo').attr('src','https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-n-baja.png'); | ||
} else { | ||
//remove the background property so it comes transparent again (defined in your css) | ||
$('#header-menu').removeClass('navbar-active'); | ||
$('.forum-logo').attr('src','https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-baja.png'); | ||
} | ||
}); | ||
// Calculate in which page we are to modify the navbar | ||
var parseURL = window.location.pathname.split('/'); | ||
if(parseURL[1] !== "topic" && | ||
parseURL[1] !== "category" && | ||
parseURL[1] !== "categories" && | ||
parseURL[1] !== ""){ | ||
console.log(parseURL[1]); | ||
if(url === 'topic' || | ||
url === 'categories' || | ||
url === 'category' || | ||
url === '') { | ||
console.log('active scroll if exists'); | ||
// Script to change navbar color when scroll in page | ||
$(window).on('scroll', function () { | ||
console.log("get in scroll"); | ||
if ($(window).scrollTop() > 50) { | ||
$('#header-menu').addClass('navbar-active'); | ||
$('.forum-logo').attr('src', 'https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-n-baja.png'); | ||
} else { | ||
//remove the background property so it comes transparent again (defined in your css) | ||
$('#header-menu').removeClass('navbar-active'); | ||
$('.forum-logo').attr('src', 'https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-baja.png'); | ||
} | ||
}); | ||
}else{ | ||
// Set black navbar | ||
console.log('black navbar'); | ||
$('#header-menu').addClass('navbar-active'); | ||
$('.forum-logo').attr('src','https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-n-baja.png'); | ||
$('.forum-logo').attr('src', 'https://sinfaltas.com/wp-content/uploads/2015/10/logo-sinfaltas-n-baja.png'); | ||
} | ||
}); | ||
}); |
{ | ||
"name": "nodebb-theme-sin-faltas", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "Template to SinFaltas Forum", | ||
@@ -5,0 +5,0 @@ "main": "theme.less", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19753
93