Anonymous

MediaWiki:Common.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
(5 intermediate revisions by the same user not shown)
Line 314: Line 314:
     });
     });
     $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
     $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
     $('table[cellpadding="5"][border="1"][style] tr[style*="rgb(68, 68, 68)"] th').css('border-color', 'black');
     $('table[cellpadding="5"][border="1"][style] tr[style*="rgb(68, 68, 68)"] th').css('border-color', 'black')
 
});
 
docReady(function () {


$('.related-skills td[width="150"]').each(function() {
$('.related-skills td[width="150"]').each(function() {
    if ($(this).find('.tooltip').length) {
      if (!$(this).find('.skill-wrap').length) {
      $(this).wrapInner('<div class="skill-wrap-text"></div>');
          $(this).wrapInner('<div class="skill-wrap-text"></div>');
      $(this).wrapInner('<div class="skill-wrap"></div>');
          $(this).wrapInner('<div class="skill-wrap"></div>');
    }
      }
});
});


Line 326: Line 330:
   window.location.href = $(this).find('> .skill-wrap-text > a:not(.image)').attr('href')
   window.location.href = $(this).find('> .skill-wrap-text > a:not(.image)').attr('href')
});
});
});
docReady(function () {


     $('.boss-timer-section .tabber-tab').click(function (e) {
     $('.boss-timer-section .tabber-tab').click(function (e) {
Line 346: Line 346:
$('.current-info .segment-contents > .mw-collapsible-content').css({height: 'auto', overflow: 'initial'});
$('.current-info .segment-contents > .mw-collapsible-content').css({height: 'auto', overflow: 'initial'});


if (character_banner_exists) mw.loader.load('https://elwiki.net/wiki/index.php?title=MediaWiki:Character-Banner.js&action=raw&ctype=text/javascript');
if (typeof character_banner_exists !== undefined) mw.loader.load('https://elwiki.net/wiki/index.php?title=MediaWiki:Character-Banner.js&action=raw&ctype=text/javascript');


$('.dungeon-map .region-map').prepend('<div class="tabber-list-toggle"><img src="https://elwiki.net/wiki/images/7/7c/UI_-_Toggle.png"/></div>');
$('.dungeon-map .region-map').prepend('<div class="tabber-list-toggle"><img src="https://elwiki.net/wiki/images/7/7c/UI_-_Toggle.png"/></div>');
ElEditors, Administrators
70,714

edits