Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r19704: LJSUP-9331 (Add param 'wmode=opaque' to ...

Committer: ailyin
LJSUP-9331 (Add param 'wmode=opaque' to youtube iframe URL)
U   trunk/htdocs/tools/embedcontent.bml
Modified: trunk/htdocs/tools/embedcontent.bml
===================================================================
--- trunk/htdocs/tools/embedcontent.bml	2011-08-11 10:12:31 UTC (rev 19703)
+++ trunk/htdocs/tools/embedcontent.bml	2011-08-12 02:13:51 UTC (rev 19704)
@@ -42,7 +42,7 @@
             return $url;
         };
 
-        $content =~ s!src=(["'])(https?://www\.youtube\.com/embed/.*?)\1! 'src=' . $transform_youtube_url->($2) . '"' !ige;
+        $content =~ s!src=(["'])(https?://www\.youtube\.com/embed/.*?)\1! 'src=' . $1 . $transform_youtube_url->($2) . $1 !ige;
 
         return qq {<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>iframe</title><style type="text/css">HTML, BODY { background:transparent; padding:0; margin:0; border:0; overflow:hidden; }</style></head><body>$content</body></html>};
     }

Tags: andy, bml, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments