nodebb-theme-sin-faltas
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -19,5 +19,28 @@ /* | ||
var url = data.url; | ||
console.log('Data ' + JSON.stringify(data)); | ||
console.log('Event ' + JSON.stringify(event)); | ||
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]); | ||
$('#header-menu').addClass('navbar-active'); | ||
$('.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.32", | ||
"version": "0.0.33", | ||
"description": "Template to SinFaltas Forum", | ||
@@ -5,0 +5,0 @@ "main": "theme.less", |
Sorry, the diff of this file is not supported yet
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
92
19748