MediaWiki:Iframetest: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Kaldari (talk | contribs)
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('..."
 
Kaldari (talk | contribs)
No edit summary
 
Line 1: Line 1:
<html>
<script>
if (typeof(window.parent.parent.resizeFrame) == 'function')
if (typeof(window.parent.parent.resizeFrame) == 'function')
{
{
Line 16: Line 14:
}
}
}
}
</script>
</html>

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); } }