User:NovaHawk (test 3)/common.js

From Brickipedia, the LEGO Wiki

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
$( ".mw-newarticletext" ).append( '<span style="display:inline-block; width:23px"></span>'+
'<span style="background-color:#ddeedd;border:2px outset #9999bb;text-align:center;padding:2px 5px"><a href="http://en.brickimedia.org/w/index.php?title='+wgPageName+'&action=edit&preload=User:NovaHawk/Preload-set1">Set</a></span>'+
'<span style="display:inline-block; width:10px"></span>'+
'<span style="background-color:#ddeedd;border:2px outset #9999bb;text-align:center;padding:2px 5px"><a href="http://en.brickimedia.org/w/index.php?title='+wgPageName+'&action=edit&preload=User:NovaHawk/Preload-set2">Set w/MinifigGal</a></span>'+
'<span style="display:inline-block; width:10px"></span>'+
'<span style="background-color:#ddeedd;border:2px outset #9999bb;text-align:center;padding:2px 5px"><a href="http://en.brickimedia.org/w/index.php?title='+wgPageName+'&action=edit&preload=User:NovaHawk/Preload-set3">Set w/MinifigGal+ShopDesc</a></span>'+
'<span style="display:inline-block; width:10px"></span>'+
'<span style="background-color:#ddeedd;border:2px outset #9999bb;text-align:center;padding:2px 5px"><a href="http://en.brickimedia.org/w/index.php?title='+wgPageName+'&action=edit&preload=User:NovaHawk/Preload-minifigure">Minifigure</a></span><br/><br/>' );



if (document.getElementById('img1-2')){
	document.getElementById('btns-1').style.display="inline";
	document.getElementById('btn1-2').style.display="inline";
}
if (document.getElementById('img1-3')){
	document.getElementById('btns-1').style.display="inline";
	document.getElementById('btn1-3').style.display="inline";
}

$( "#btn1-2" ).click(function() {
  $("#img1").hide();
  $("#img1-3").hide();
  $("#img1-2").show();
  $("#btn1-1").css("background", "#CCCCFF");
  $("#btn1-3").css("background", "#CCCCFF");
  $("#btn1-2").css("background", "#9999FF");
});
$( "#btn1-3" ).click(function() {
  $("#img1").hide();
  $("#img1-2").hide();
  $("#img1-3").show();
  $("#btn1-1").css("background", "#CCCCFF");
  $("#btn1-2").css("background", "#CCCCFF");
  $("#btn1-3").css("background", "#9999FF");
});
$( "#btn1-1" ).click(function() {
  $("#img1-2").hide();
  $("#img1-3").hide();
  $("#img1").show();
  $("#btn1-3").css("background", "#CCCCFF");
  $("#btn1-2").css("background", "#CCCCFF");
  $("#btn1-1").css("background", "#9999FF");
});

$( ".calShowAll" ).click(function() {
  $(".calContent").show();
  $(".calHider").hide();
});
$( ".calHideAll" ).click(function() {
  $(".calContent").hide();
  $(".calHider").show();
});
$( ".calHider1" ).click(function() {
  $(".calHider1").hide();
  $(".calContent1").show();
});
$( ".calHider2" ).click(function() {
  $(".calHider2").hide();
  $(".calContent2").show();
});
$( ".calContent1" ).click(function() {
  $(".calHider1").show();
  $(".calContent1").hide();
});
$( ".calContent2" ).click(function() {
  $(".calHider2").show();
  $(".calContent2").hide();
});
$( ".calHider3" ).click(function() {
  $(".calHider3").hide();
  $(".calContent3").show();
});
$( ".calHider4" ).click(function() {
  $(".calHider4").hide();
  $(".calContent4").show();
});
$( ".calContent3" ).click(function() {
  $(".calHider3").show();
  $(".calContent3").hide();
});
$( ".calContent4" ).click(function() {
  $(".calHider4").show();
  $(".calContent4").hide();
});
$( ".calHider5" ).click(function() {
  $(".calHider5").hide();
  $(".calContent5").show();
});
$( ".calHider6" ).click(function() {
  $(".calHider6").hide();
  $(".calContent6").show();
});
$( ".calContent5" ).click(function() {
  $(".calHider5").show();
  $(".calContent5").hide();
});
$( ".calContent6" ).click(function() {
  $(".calHider6").show();
  $(".calContent6").hide();
});
$( ".calHider7" ).click(function() {
  $(".calHider7").hide();
  $(".calContent7").show();
});
$( ".calHider8" ).click(function() {
  $(".calHider8").hide();
  $(".calContent8").show();
});
$( ".calContent7" ).click(function() {
  $(".calHider7").show();
  $(".calContent7").hide();
});
$( ".calContent8" ).click(function() {
  $(".calHider8").show();
  $(".calContent8").hide();
});
$( ".calHider9" ).click(function() {
  $(".calHider9").hide();
  $(".calContent9").show();
});
$( ".calHider10" ).click(function() {
  $(".calHider10").hide();
  $(".calContent10").show();
});
$( ".calContent9" ).click(function() {
  $(".calHider9").show();
  $(".calContent9").hide();
});
$( ".calContent10" ).click(function() {
  $(".calHider10").show();
  $(".calContent10").hide();
});
$( ".calHider11" ).click(function() {
  $(".calHider11").hide();
  $(".calContent11").show();
});
$( ".calHider12" ).click(function() {
  $(".calHider12").hide();
  $(".calContent12").show();
});
$( ".calContent11" ).click(function() {
  $(".calHider11").show();
  $(".calContent11").hide();
});
$( ".calContent12" ).click(function() {
  $(".calHider12").show();
  $(".calContent12").hide();
});
$( ".calHider13" ).click(function() {
  $(".calHider13").hide();
  $(".calContent13").show();
});
$( ".calHider14" ).click(function() {
  $(".calHider14").hide();
  $(".calContent14").show();
});
$( ".calContent13" ).click(function() {
  $(".calHider13").show();
  $(".calContent13").hide();
});
$( ".calContent14" ).click(function() {
  $(".calHider14").show();
  $(".calContent14").hide();
});
$( ".calHider15" ).click(function() {
  $(".calHider15").hide();
  $(".calContent15").show();
});
$( ".calHider16" ).click(function() {
  $(".calHider16").hide();
  $(".calContent16").show();
});
$( ".calContent15" ).click(function() {
  $(".calHider15").show();
  $(".calContent15").hide();
});
$( ".calContent16" ).click(function() {
  $(".calHider16").show();
  $(".calContent16").hide();
});
$( ".calHider17" ).click(function() {
  $(".calHider17").hide();
  $(".calContent17").show();
});
$( ".calHider18" ).click(function() {
  $(".calHider18").hide();
  $(".calContent18").show();
});
$( ".calContent17" ).click(function() {
  $(".calHider17").show();
  $(".calContent17").hide();
});
$( ".calContent18" ).click(function() {
  $(".calHider18").show();
  $(".calContent18").hide();
});
$( ".calHider19" ).click(function() {
  $(".calHider19").hide();
  $(".calContent19").show();
});
$( ".calHider20" ).click(function() {
  $(".calHider20").hide();
  $(".calContent20").show();
});
$( ".calContent19" ).click(function() {
  $(".calHider19").show();
  $(".calContent19").hide();
});
$( ".calContent20" ).click(function() {
  $(".calHider20").show();
  $(".calContent20").hide();
});
$( ".calHider21" ).click(function() {
  $(".calHider21").hide();
  $(".calContent21").show();
});
$( ".calHider22" ).click(function() {
  $(".calHider22").hide();
  $(".calContent22").show();
});
$( ".calContent21" ).click(function() {
  $(".calHider21").show();
  $(".calContent21").hide();
});
$( ".calContent22" ).click(function() {
  $(".calHider22").show();
  $(".calContent22").hide();
});
$( ".calHider23" ).click(function() {
  $(".calHider23").hide();
  $(".calContent23").show();
});
$( ".calHider24" ).click(function() {
  $(".calHider24").hide();
  $(".calContent24").show();
});
$( ".calContent23" ).click(function() {
  $(".calHider23").show();
  $(".calContent23").hide();
});
$( ".calContent24" ).click(function() {
  $(".calHider24").show();
  $(".calContent24").hide();
});