incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject svn commit: r1377626 - /incubator/flex/site/trunk/content/flex/installerbadge/index.chtml
Date Mon, 27 Aug 2012 10:08:07 GMT
Author: erikdebruin
Date: Mon Aug 27 10:08:06 2012
New Revision: 1377626

URL: http://svn.apache.org/viewvc?rev=1377626&view=rev
Log:
Sorry about the deluge of commits, I'm still learning the CMS intricacies.

Modified:
    incubator/flex/site/trunk/content/flex/installerbadge/index.chtml

Modified: incubator/flex/site/trunk/content/flex/installerbadge/index.chtml
URL: http://svn.apache.org/viewvc/incubator/flex/site/trunk/content/flex/installerbadge/index.chtml?rev=1377626&r1=1377625&r2=1377626&view=diff
==============================================================================
--- incubator/flex/site/trunk/content/flex/installerbadge/index.chtml (original)
+++ incubator/flex/site/trunk/content/flex/installerbadge/index.chtml Mon Aug 27 10:08:06
2012
@@ -1,95 +1,58 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
+<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>
 
-{% block content %}{{
-
-<!DOCTYPE html>
-
-<html> 
-<head>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
-    <style type="text/css"> 
-        body { margin: 0; padding: 0; }   
-        object:focus { outline: none; }
-        #flashContent { display: none; }
-        #InstallApacheFlexBadge { border: 1px solid #172647; }
-    </style>
-    
-    <!-- 
-        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 */
     
-    <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;
+    var swfVersionStr, params, attributes;
+    
+    function displayType() {
+        if ((window.top != window.self) && window.parent)
+            return window.name;
             
-    		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);
+        return "";
+    }
+    
+    function init() {
+        var prefix, theElement, theHeight, theWidth, widget;
         
-        swfobject.createCSS("#flashContent", "display: block;");
-    </script>
+		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";
+        }
+    }
     
-</head>
-<body onload="init();">
-    <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>
-</body>
-</html>
-
-}}{% endblock %}
+    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>



Mime
View raw message