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('..."
(No difference)

Revision as of 01:36, 3 March 2012

<html> <script> 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); } } </script> </html>