"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
(ചെ.)No edit summary
(ചെ.)No edit summary
 
വരി 40: വരി 40:
             // Hide MediaWiki generated category listing
             // Hide MediaWiki generated category listing
             $('.mw-category-generated').hide();
             $('.mw-category-generated').hide();
          // Hide PullQuote for anonymous desktop users
          if (window.matchMedia("(min-width: 769px)").matches) {
          $('.pullquote').hide();
}


         });
         });

15:13, 8 ജൂലൈ 2026-നു നിലവിലുള്ള രൂപം

/* ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും */
/* ==========================================================================
   COMMON.JS
   Abhiprayavedi
   Version 1.0
========================================================================== */
/* ==========================================================================
   1. Category Page Enhancements
========================================================================== */
$(document).ready(function() {
    if ($('.mw-category').length) {
        $('.mw-category li a').each(function() {
            var pageTitle = $(this).attr('title');
            if (pageTitle) {
                // This will use the page's actual display title
                // MediaWiki automatically uses DISPLAYTITLE in title attribute
                $(this).text(pageTitle);
            }
        });
    }
});


/* ==========================================================================
   2. Anonymous User Interface
========================================================================== */

(function () {

    if (mw.config.get('wgUserId') === null) {

        $(document).ready(function () {

            // Remove page tabs
            $('#mw-page-header-links').remove();

            // Remove "From AbhiprayaVedi"
            $('#siteSub').remove();

            // Hide MediaWiki generated category listing
            $('.mw-category-generated').hide();

           // Hide PullQuote for anonymous desktop users
           if (window.matchMedia("(min-width: 769px)").matches) {
           $('.pullquote').hide();
}

        });

    }

}());
"https://abhiprayavedi.org/index.php?title=മീഡിയവിക്കി:Common.js&oldid=2654" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്