MediaWiki: Common.js: Perbedaan antara revisi
Dari GBI Danau Bogor Raya
k upd |
k upd |
||
| Baris 11: | Baris 11: | ||
$('#myCarousel').carousel() | $('#myCarousel').carousel() | ||
}); | }); | ||
$('button').click(function(){ //you can give id or class name here for $('button') | |||
$(this).text(function(i,old){ | |||
return old=='+' ? '-' : '+'; | |||
}); | |||
}); | |||
Revisi per 27 Oktober 2022 23.45
/* JavaScript yang ada di sini akan diterapkan untuk semua kulit. */
/* Code dari MediaWiki:Common.js sebagian besar dipindahkan ke MediaWiki_Talk:Common.js sejak 11 Oktober 2022 */
$(document).ready(function() {
$('.carousel').carousel()
});
$(document).ready(function() {
$('#myCarousel').carousel()
});
$('button').click(function(){ //you can give id or class name here for $('button')
$(this).text(function(i,old){
return old=='+' ? '-' : '+';
});
});