Jump to content

MediaWiki:Common.js: Difference between revisions

From wiki.QuranCenter
Administrator (talk | contribs)
No edit summary
Administrator (talk | contribs)
No edit summary
Line 6: Line 6:
     var $text = $(this).text();
     var $text = $(this).text();
     return $text.match(/^\d{1,3}:\d{1,3}/);
     return $text.match(/^\d{1,3}:\d{1,3}/);
}).parents().eq(0).css({'display': 'none'});
}).parents().eq(2).css({'display': 'none'});


})(jQuery);
})(jQuery);

Revision as of 12:52, 21 July 2014

/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */

(function($) {

$('.mw-allpages-table-chunk a').filter(function() {
    var $text = $(this).text();
    return $text.match(/^\d{1,3}:\d{1,3}/);
}).parents().eq(2).css({'display': 'none'});

})(jQuery);