Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-theme-sin-faltas

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-theme-sin-faltas - npm Package Compare versions

Comparing version 0.0.33 to 0.0.34

44

lib/client.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc