SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2002年09月17日 03:34:10
Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv12233/lib/plugin
Modified Files:
	Transclude.php 
Log Message:
Add javascript code to resize the transclude iframes when the browser
window is resized.
Index: Transclude.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/Transclude.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -2 -b -p -d -r1.2 -r1.3
--- Transclude.php	17 Sep 2002 02:34:18 -0000	1.2
+++ Transclude.php	17 Sep 2002 03:34:06 -0000	1.3
@@ -115,5 +115,12 @@ extends WikiPlugin
 return;
 }
- }';
+ }
+
+ window.addEventListener("resize", function() {
+ f = this.document.body.getElementsByTagName("iframe");
+ for (var i = 0; i < f.length; i++)
+ adjust_iframe_height(f[i]);
+ }, false);
+ ';
 
 return HTML::script(array('language' => 'JavaScript',
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /