You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bu...@apache.org on 2012/08/27 12:08:10 UTC
svn commit: r830252 - in /websites/staging/flex/trunk: cgi-bin/ content/
content/flex/installerbadge/index.html
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"><div</span> <span class="na">id=</span><span class="s">"flashContent"</span><span class="nt">></span>
- <span class="nt"><script</span> <span class="na">type=</span><span class="s">"text/javascript"</span><span class="nt">></span>
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- document.write("<span class="nt"><a</span> <span class="na">href=</span><span class="s">'http://www.adobe.com/go/getflashplayer'</span><span class="nt">><img</span> <span class="na">src=</span><span class="s">'" </span>
-<span class="s"> + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif'</span> <span class="na">alt=</span><span class="s">'Get Adobe Flash player'</span> <span class="nt">/></a></span>" );
- <span class="nt"></script></span>
-<span class="nt"></div></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