MediaWiki:Iframetest: Difference between revisions
Content deleted Content added
Created page with "<html> <script> if (typeof(window.parent.parent.resizeFrame) == 'function') { var l = location.href; var p = l.indexOf('?height='); if (p == -1) p = l.indexOf('..." |
No edit summary |
||
Line 1:
if (typeof(window.parent.parent.resizeFrame) == 'function')
{
Line 16 ⟶ 14:
}
}
|
Latest revision as of 01:37, 3 March 2012
if (typeof(window.parent.parent.resizeFrame) == 'function') { var l = location.href; var p = l.indexOf('?height='); if (p == -1) p = l.indexOf('&height='); if (p != -1) { p += 8; var p2 = l.indexOf('&', p); if (p2 == -1) p2 = l.length; window.parent.parent.resizeFrame((l.substring(p, p2) - 0) + 'px', l.indexOf('scroll=0') == -1); } }