Difference between revisions of "User:KamranMackey/common.js"
Jump to navigation
Jump to search
KamranMackey (talk | contribs) (Added some new JS which makes the infoboxes collapsible.) |
KamranMackey (talk | contribs) |
||
| Line 1: | Line 1: | ||
/** Infobox collapsing script **/ | /** Infobox collapsing script **/ | ||
$(".infoboxBlockImage img").each(function(){ | $(".infoboxBlockImage img").each(function(){ | ||
Revision as of 02:17, 21 February 2015
/** Infobox collapsing script **/
$(".infoboxBlockImage img").each(function(){
width = parseInt($(this).attr("width"), 10);
if(width > 240){
$(this).attr("height","");
$(this).attr("width","240");
}
});