Bureaucrats, coding, Administrators
2,634
edits
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://cdn3.portal.biringa.com/ | spoilers.imgOn = $('<img alt="" style="display:none;"/>').attr('src', 'http://cdn3.portal.biringa.com/img/2/2b/Wheatley_spoils_you.png'); | ||
spoilers.imgOff = $('<img alt="" style="display:none;"/>').attr('src', 'http://cdn3.portal.biringa.com/ | spoilers.imgOff = $('<img alt="" style="display:none;"/>').attr('src', 'http://cdn3.portal.biringa.com/img/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://cdn3.portal.biringa.com/ | $('body').append($('<img/>').attr('src', 'http://cdn3.portal.biringa.com/img/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://cdn2.portal.biringa.com/ | imageLoading: 'http://cdn2.portal.biringa.com/img/5/56/Lightbox_loading.gif', | ||
imageBtnClose: 'http://cdn3.portal.biringa.com/ | imageBtnClose: 'http://cdn3.portal.biringa.com/img/e/e2/Lightbox_button_close.gif', | ||
imageBtnPrev: 'http://cdn3.portal.biringa.com/ | imageBtnPrev: 'http://cdn3.portal.biringa.com/img/c/c8/Lightbox_button_previous.gif', | ||
imageBtnNext: 'http://cdn3.portal.biringa.com/ | imageBtnNext: 'http://cdn3.portal.biringa.com/img/9/9e/Lightbox_button_next.gif', | ||
imageBlank: 'http://cdn2.portal.biringa.com/ | imageBlank: 'http://cdn2.portal.biringa.com/img/f/f6/Lightbox_blank.gif', | ||
}, | }, | ||
init: function() { | init: function() { |