flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject svn commit: r1430705 - in /flex/site/trunk/content/v2/installerbadge: index.cmsPage index.html
Date Wed, 09 Jan 2013 06:27:04 GMT
Author: bigosmallm
Date: Wed Jan  9 06:27:04 2013
New Revision: 1430705

URL: http://svn.apache.org/viewvc?rev=1430705&view=rev
Log:
Renaming index.html

Added:
    flex/site/trunk/content/v2/installerbadge/index.cmsPage
Removed:
    flex/site/trunk/content/v2/installerbadge/index.html

Added: flex/site/trunk/content/v2/installerbadge/index.cmsPage
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/v2/installerbadge/index.cmsPage?rev=1430705&view=auto
==============================================================================
--- flex/site/trunk/content/v2/installerbadge/index.cmsPage (added)
+++ flex/site/trunk/content/v2/installerbadge/index.cmsPage Wed Jan  9 06:27:04 2013
@@ -0,0 +1,76 @@
+<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 _widget;
+    
+    function displayType() {
+        if ((window.top != window.self) && window.parent)
+            return window.name;
+            
+        return "";
+    }
+    
+    function init() {
+        var prefix, theElement, theHeight, theWidth;
+        
+		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.style.height = (theHeight - 2) + "px";
+            _widget.style.width = (theWidth - 2) + "px";
+            
+            _widget.style.border = "1px solid #172647";
+        }
+    }
+    
+    function start() {
+        var swfVersionStr, params, attributes;
+        
+        swfVersionStr = "11.1.0";
+        flashVars = { serviceURL: "http://flex.apache.org/" };
+        params = { quality: "high", bgcolor: "#ffffff", allowscriptaccess: "sameDomain",
+            allowfullscreen: "true" };
+        attributes = { id: "InstallApacheFlexBadge", name: "InstallApacheFlexBadge" };
+    
+        swfobject.embedSWF("InstallApacheFlexBadge.swf", "flashContent", "10", "10", 
+            swfVersionStr, "", flashVars, params, attributes);
+    
+        swfobject.createCSS("#flashContent", "display: block;");
+    
+        waitForWidget();
+    }
+    
+    function waitForWidget() {
+        _widget = document.getElementById("InstallApacheFlexBadge");
+        
+        if (!_widget)
+            setTimeout(function () { waitForWidget(); }, 1000);
+        else
+            init();
+    }
+    
+    start();
+    
+</script>



Mime
View raw message