Socket
Socket
Sign inDemoInstall

nodebb-plugin-gallery-view

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-gallery-view - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "nodebb-plugin-gallery-view",
"version": "0.0.3",
"version": "0.0.4",
"description": "A Plugin that Shows randomly placed images in a proper carousel based modal",

@@ -5,0 +5,0 @@ "main": "public/js/main.js",

@@ -8,7 +8,7 @@ (function($) {

$(window).on('action:ajaxify.end', function() {
setTimeout(initialize, 100);
setTimeout(initialize, 500);
});
$(window).on('action:topic.loaded', function() {
setTimeout(initialize, 100);
setTimeout(initialize, 500);
});

@@ -22,3 +22,3 @@

});
img.addClass('thumbnail').parent().on('click', 'a', function(event){
img.addClass('thumbnail').parent().on('click', function(event){
if ($(this).children('img').length > 0) {

@@ -48,6 +48,6 @@ event.preventDefault();

elem.each(function(key, e) {
var source = $(e).attr('data-src');
var source = $(e).attr('src');
var item = $('<div></div>').addClass('item').append(
$('<img />').prop('src', source)
);
$('<img></img>').prop('src', source).attr('src', source)
);
if(key === 0) { item.addClass('active'); }

@@ -54,0 +54,0 @@ imgarr.append(item);

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