Difference between revisions of "MediaWiki:Chameleon.js"

From Balthazar
Line 5: Line 5:
 
}
 
}
  
$('.gallery.selectable li a').each( function(i,e) {
+
function gallerySetup() {
 +
$('.gallery.selectable li a').each( function(i,e) {
 
   console.log(i,e);
 
   console.log(i,e);
 
   $(e).removeAttr('src');
 
   $(e).removeAttr('src');
 
   $(e).click(galleryClick(e));
 
   $(e).click(galleryClick(e));
});
+
});
 +
}
 +
 
 +
window.load(gallerySetup);

Revision as of 04:15, 22 October 2024

console.log('Hello! :)');

function galleryClick(e) {
  console.log("klik",e);
}

function gallerySetup() {
 $('.gallery.selectable li a').each( function(i,e) {
  console.log(i,e);
  $(e).removeAttr('src');
  $(e).click(galleryClick(e));
 });
}

window.load(gallerySetup);
Nlnet banner.png NGI0 tag.png NGI0Entrust tag.png