in _content/talks/2010/support/slidy.js [374:442]
function resized()
{
var width = 0;
if ( typeof( window.innerWidth ) == 'number' )
width = window.innerWidth; // Non IE browser
else if (document.documentElement && document.documentElement.clientWidth)
width = document.documentElement.clientWidth; // IE6
else if (document.body && document.body.clientWidth)
width = document.body.clientWidth; // IE4
var height = 0;
if ( typeof( window.innerHeight ) == 'number' )
height = window.innerHeight; // Non IE browser
else if (document.documentElement && document.documentElement.clientHeight)
height = document.documentElement.clientHeight; // IE6
else if (document.body && document.body.clientHeight)
height = document.body.clientHeight; // IE4
if (height && (width/height > 1.05*1024/768))
{
width = height * 1024.0/768;
}
// IE fires onresize even when only font size is changed!
// so we do a check to avoid blocking < and > actions
if (width != lastWidth || height != lastHeight)
{
if (width >= 1100)
sizeIndex = 5; // 4
else if (width >= 1000)
sizeIndex = 4; // 3
else if (width >= 800)
sizeIndex = 3; // 2
else if (width >= 600)
sizeIndex = 2; // 1
else if (width)
sizeIndex = 0;
// add in font size adjustment from meta element e.g.
// <meta name="font-size-adjustment" content="-2" />
// useful when slides have too much content ;-)
if (0 <= sizeIndex + sizeAdjustment &&
sizeIndex + sizeAdjustment < sizes.length)
sizeIndex = sizeIndex + sizeAdjustment;
// enables cross browser use of relative width/height
// on object elements for use with SVG and Flash media
adjustObjectDimensions(width, height);
document.body.style.fontSize = sizes[sizeIndex];
lastWidth = width;
lastHeight = height;
// force reflow to work around Mozilla bug
//if (ns_pos)
{
var slide = slides[slidenum];
hideSlide(slide);
showSlide(slide);
}
// force correct positioning of toolbar
refreshToolbar(200);
}
}