/usr/share/doc/python-plastex-doc/html/icons/imgadjust.js is in python-plastex-doc 0.9.2-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | //
// This code fixes up the images so that MSIE doesn't truncate images
// within tables. It also adjusts the line height so that it's prettier.
//
var images = document.getElementsByTagName('img')
var adjusted = new Array();
for ( var i = 0; i < images.length; i++ )
{
image = images[i];
if ( parseInt(image.style.marginBottom) < -8 )
{
if ( !image.height )
continue;
// Make sure that images in IE in tables don't get truncated
ieimgfix = document.createElement('img');
ieimgfix.src = 'iicons/blank.gif';
ieimgfix.style.height = image.style.height;
ieimgfix.style.width = '0px';
// Adjust line height to be prettier
adjust = document.createElement('span');
adjust.style.lineHeight = (parseInt(image.style.height) - 8) + 'px';
adjust.style.visibility = 'hidden';
adjust.nodeValue = '&8205;';
// Store away the nodes for use later
adjusted[image.parentNode] = new Array(image.parentNode, image,
ieimgfix, adjust);
}
}
// Insert the adjuster nodes
for ( var n in adjusted )
{
adjusted[n][0].insertBefore(adjusted[n][2], adjusted[n][1]);
adjusted[n][0].insertBefore(adjusted[n][3], adjusted[n][1]);
}
|