Jump to content

MediaWiki:Vector.js: Difference between revisions

From Hasan Wiki
Created page with "All JavaScript here will be loaded for users of the Vector skin: $(function () { var categorySection = $('#p-Categories'); if (!categorySection.length) { return; } var categoryTitle = categorySection.find('.vector-menu-heading'); categoryTitle.css({ 'cursor': 'pointer', 'user-select': 'none' }); categoryTitle.on('click', function () { categorySection.toggleClass('categories-open'); }); });"
 
Blanked the page
Tag: Blanking
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the Vector skin */
$(function () {
    var categorySection = $('#p-Categories');


    if (!categorySection.length) {
        return;
    }
    var categoryTitle = categorySection.find('.vector-menu-heading');
    categoryTitle.css({
        'cursor': 'pointer',
        'user-select': 'none'
    });
    categoryTitle.on('click', function () {
        categorySection.toggleClass('categories-open');
    });
});

Latest revision as of 11:56, 22 August 2026