MediaWiki:Common.js: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
m (Undo revision 518 by WikiAdmin (talk))
No edit summary
Line 3: Line 3:
$('a').each(function(){
$('a').each(function(){
   if ($(this).attr('href') && $(this).text().indexOf("Internal") >= 0) {
   if ($(this).attr('href') && $(this).text().indexOf("Internal") >= 0) {
       $(this).addClass("internal")
       $(this).addClass("semaeopus_internal")
   }
   }
});
});

Revision as of 16:24, 3 November 2017

/* Any JavaScript here will be loaded for all users on every page load. */

$('a').each(function(){
   if ($(this).attr('href') && $(this).text().indexOf("Internal") >= 0) {
      $(this).addClass("semaeopus_internal")
   }
});