MediaWiki:Common.js: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 630: Рядок 630:
}
}


$(function () { wrapWideTables(); });
$(function () {
    // Full-width stat pages — don't wrap tables, let them fill naturally
    if (!isMccFullwidth()) {
        wrapWideTables();
    } else {
        // On full-width pages, just add overflow-x directly to the table
        $('.content .mw-parser-output .wikitable').each(function () {
            $(this).css({
                'display': 'block',
                'overflow-x': 'auto',
                'width': '100%',
                '-webkit-overflow-scrolling': 'touch'
            });
        });
    }
});


// ============================================================
// ============================================================