Difference between revisions of "MediaWiki:Common.js"

From Johnisdead Wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
$('.toggle-collapse').on('click', function(){
+
 
$('.special-text').toggleClass('-expanded');
 
if ($('.special-text').hasClass('-expanded')) {
 
$('.toggle-collapse').html('Collapse Content');
 
} else {
 
$('.toggle-collapse').html('Continue Reading');
 
}
 
});
 

Revision as of 16:16, 28 December 2019