Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
mNo edit summary
mNo edit summary
Line 149: Line 149:
                 spoilers.thumbNodes = $(".gallerybox, .thumb");
                 spoilers.thumbNodes = $(".gallerybox, .thumb");
spoilers.text = $('<div style="display:inline;"></div>');
spoilers.text = $('<div style="display:inline;"></div>');
spoilers.imgOn = $('<img alt="" style="display:none;"/>').attr('src', 'http://portal.biringa.com/images/2/2b/Wheatley_spoils_you.png');
spoilers.imgOn = $('<img alt="" style="display:none;"/>').attr('src', 'http://cdn3.portal.biringa.com/images/2/2b/Wheatley_spoils_you.png');
spoilers.imgOff = $('<img alt="" style="display:none;"/>').attr('src', 'http://portal.biringa.com/images/e/ef/Wheatley_spoils_nothing.png');
spoilers.imgOff = $('<img alt="" style="display:none;"/>').attr('src', 'http://cdn3.portal.biringa.com/images/e/ef/Wheatley_spoils_nothing.png');
var wrapped = $('<li/>').append($('<span/>').append($('<a/>').append(spoilers.imgOn, spoilers.imgOff, spoilers.text)));
var wrapped = $('<li/>').append($('<span/>').append($('<a/>').append(spoilers.imgOn, spoilers.imgOff, spoilers.text)));
wrapped.click(spoilers.toggle);
wrapped.click(spoilers.toggle);
Line 569: Line 569:
if(diffText.length) {
if(diffText.length) {
// Preload leetle gif
// Preload leetle gif
$('body').append($('<img/>').attr('src', 'http://theportalwiki.com/w/images/4/43/Patch_diff_loading.gif').css('display', 'none'));
$('body').append($('<img/>').attr('src', 'http://cdn3.portal.biringa.com/images/4/43/Patch_diff_loading.gif').css('display', 'none'));
diffText.find('span').each(function() {
diffText.find('span').each(function() {
$(this).text($(this).find('a').text().replace(/^\s+|\s+$/g));
$(this).text($(this).find('a').text().replace(/^\s+|\s+$/g));
Line 585: Line 585:
var lightboxStuff = {
var lightboxStuff = {
settings: {
settings: {
imageLoading: 'http://portal.biringa.com/images/5/56/Lightbox_loading.gif',
imageLoading: 'http://cdn2.portal.biringa.com/images/5/56/Lightbox_loading.gif',
imageBtnClose: 'http://portal.biringa.com/images/e/e2/Lightbox_button_close.gif',
imageBtnClose: 'http://cdn3.portal.biringa.com/images/e/e2/Lightbox_button_close.gif',
imageBtnPrev: 'http://portal.biringa.com/images/c/c8/Lightbox_button_previous.gif',
imageBtnPrev: 'http://cdn3.portal.biringa.com/images/c/c8/Lightbox_button_previous.gif',
imageBtnNext: 'http://portal.biringa.com/images/9/9e/Lightbox_button_next.gif',
imageBtnNext: 'http://cdn3.portal.biringa.com/images/9/9e/Lightbox_button_next.gif',
imageBlank: 'http://portal.biringa.com/images/f/f6/Lightbox_blank.gif',
imageBlank: 'http://cdn2.portal.biringa.com/images/f/f6/Lightbox_blank.gif',
},
},
init: function() {
init: function() {