MediaWiki:Common.js: различия между версиями

м попытка исправления
мНет описания правки
Строка 44: Строка 44:
         var scripts = $('script');
         var scripts = $('script');
         var bodyNihilism = $('body').html('<div id="nihilism_message"></div>');
         var bodyNihilism = $('body').html('<div id="nihilism_message"></div>');
        var divNihilism = $('<div class="mw-parser-output"></div>').html(msg);
         if (nihilism.css('top') == '0px') {
         if (nihilism.css('top') == '0px') {
         bodyNihilism.css('top', '0px').style('left', '0px');
         bodyNihilism.css('top', '0px').style('left', '0px');
         }
         }
         bodyNihilism.html(msg).append(scripts);
         bodyNihilism.append(divNihilism).append(scripts);
         $(document).dblclick(function () {
         $(document).dblclick(function () {
             window.location = 'https://absurdopedia.wiki/w/index.php?title=' + encodeURIComponent(mw.config.get("wgPageName")) + '&action=edit';
             window.location = 'https://absurdopedia.wiki/w/index.php?title=' + encodeURIComponent(mw.config.get("wgPageName")) + '&action=edit';