incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r830252 - in /websites/staging/flex/trunk: cgi-bin/ content/ content/flex/installerbadge/index.html
Date Mon, 27 Aug 2012 10:08:10 GMT
Author: buildbot
Date: Mon Aug 27 10:08:10 2012
New Revision: 830252

Log:
Staging update by buildbot for flex

Modified:
    websites/staging/flex/trunk/cgi-bin/   (props changed)
    websites/staging/flex/trunk/content/   (props changed)
    websites/staging/flex/trunk/content/flex/installerbadge/index.html

Propchange: websites/staging/flex/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Aug 27 10:08:10 2012
@@ -1 +1 @@
-1377624
+1377626

Propchange: websites/staging/flex/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Aug 27 10:08:10 2012
@@ -1 +1 @@
-1377624
+1377626

Modified: websites/staging/flex/trunk/content/flex/installerbadge/index.html
==============================================================================
--- websites/staging/flex/trunk/content/flex/installerbadge/index.html (original)
+++ websites/staging/flex/trunk/content/flex/installerbadge/index.html Mon Aug 27 10:08:10
2012
@@ -1,8 +1,59 @@
-<div class="codehilite"><pre><span class="nt">&lt;div</span>
<span class="na">id=</span><span class="s">&quot;flashContent&quot;</span><span
class="nt">&gt;</span>
-    <span class="nt">&lt;script</span> <span class="na">type=</span><span
class="s">&quot;text/javascript&quot;</span><span class="nt">&gt;</span>

-        var pageHost = ((document.location.protocol == &quot;https:&quot;) ? &quot;https://&quot;
: &quot;http://&quot;); 
-        document.write(&quot;<span class="nt">&lt;a</span> <span class="na">href=</span><span
class="s">&#39;http://www.adobe.com/go/getflashplayer&#39;</span><span
class="nt">&gt;&lt;img</span> <span class="na">src=</span><span
class="s">&#39;&quot; </span>
-<span class="s">                        + pageHost + &quot;www.adobe.com/images/shared/download_buttons/get_flash_player.gif&#39;</span>
<span class="na">alt=</span><span class="s">&#39;Get Adobe Flash player&#39;</span>
<span class="nt">/&gt;&lt;/a&gt;</span>&quot; ); 
-    <span class="nt">&lt;/script&gt;</span> 
-<span class="nt">&lt;/div&gt;</span>
-</pre></div>
\ No newline at end of file
+<div id="flashContent">
+    <script type="text/javascript"> 
+        var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");

+        document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"

+                        + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif'
alt='Get Adobe Flash player' /></a>" ); 
+    </script> 
+</div>
+
+<!-- 
+    SWFObject v2.2 <http://code.google.com/p/swfobject/> 
+    is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>

+-->
+
+<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
+
+<script type="text/javascript">
+    /* use strict */
+
+    var swfVersionStr, params, attributes;
+
+    function displayType() {
+        if ((window.top != window.self) && window.parent)
+            return window.name;
+
+        return "";
+    }
+
+    function init() {
+        var prefix, theElement, theHeight, theWidth, widget;
+
+        if (displayType() != "") {
+            if (typeof window.innerWidth === 'number') {
+                theHeight = window.innerHeight;
+                theWidth = window.innerWidth;
+            } else {
+                theElement = window.document.documentElement;
+
+                theHeight = theElement.clientHeight;
+                theWidth = theElement.clientWidth;
+            }
+
+            widget = document.getElementById("InstallApacheFlexBadge");
+            widget.style.height = (theHeight - 2) + "px";
+            widget.style.width = (theWidth - 2) + "px";
+        }
+    }
+
+    swfVersionStr = "11.1.0";
+    params = { quality: "high", bgcolor: "#ffffff", allowscriptaccess: "sameDomain",
+        allowfullscreen: "true" };
+    attributes = { id: "InstallApacheFlexBadge", name: "InstallApacheFlexBadge" };
+
+    swfobject.embedSWF("InstallApacheFlexBadge.swf", "flashContent", "300", "300", 
+        swfVersionStr, "", {}, params, attributes);
+
+    swfobject.createCSS("#flashContent", "display: block;");
+
+    init();
+</script>
\ No newline at end of file



Mime
View raw message