Difference between revisions of "MediaWiki:Chameleon.js"
From Balthazar
(Created page with "console.log('Hello! :)');") |
|||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
console.log('Hello! :)'); | console.log('Hello! :)'); | ||
| + | |||
| + | function galleryClick(e) { | ||
| + | console.log("klik",e); | ||
| + | } | ||
| + | |||
| + | function gallerySetup() { | ||
| + | $('.gallery.selectable li').each( function(i,e) { | ||
| + | console.log(i,e); | ||
| + | $(e).off(); | ||
| + | $(e).removeAttr('src'); | ||
| + | $(e).click(galleryClick(e)); | ||
| + | }); | ||
| + | } | ||
| + | |||
| + | $(window).load(gallerySetup); | ||
Latest revision as of 04:20, 22 October 2024
console.log('Hello! :)');
function galleryClick(e) {
console.log("klik",e);
}
function gallerySetup() {
$('.gallery.selectable li').each( function(i,e) {
console.log(i,e);
$(e).off();
$(e).removeAttr('src');
$(e).click(galleryClick(e));
});
}
$(window).load(gallerySetup);