You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2013/01/09 07:08:09 UTC
svn commit: r1430694 - in /flex/site/trunk/content/v2/installerbadge: ./
InstallApacheFlexBadge.swf disclaimer.mdtext index.chtml
Author: bigosmallm
Date: Wed Jan 9 06:08:09 2013
New Revision: 1430694
URL: http://svn.apache.org/viewvc?rev=1430694&view=rev
Log:
Adding installerbadge to v2
Added:
flex/site/trunk/content/v2/installerbadge/
flex/site/trunk/content/v2/installerbadge/InstallApacheFlexBadge.swf (with props)
flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext (with props)
flex/site/trunk/content/v2/installerbadge/index.chtml
Added: flex/site/trunk/content/v2/installerbadge/InstallApacheFlexBadge.swf
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/v2/installerbadge/InstallApacheFlexBadge.swf?rev=1430694&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/v2/installerbadge/InstallApacheFlexBadge.swf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext?rev=1430694&view=auto
==============================================================================
--- flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext (added)
+++ flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext Wed Jan 9 06:08:09 2013
@@ -0,0 +1,21 @@
+Title: Apache Flex Installer Badge Disclaimer
+Notice: 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.
+
+The Apache Flex Installer Badge is not an official release of the Apache Flex project. It is an utility binary, provided as-is. It's intended use is to promote the Apache Flex SDK by providing an easily accessible download of the Apache Flex SDK Installer application.
+
+More information on the officially released source and accompanying convenience binaries from the Apache Flex project can be found here: [About Binaries](../about-binaries.html)
\ No newline at end of file
Propchange: flex/site/trunk/content/v2/installerbadge/disclaimer.mdtext
------------------------------------------------------------------------------
svn:eol-style = native
Added: flex/site/trunk/content/v2/installerbadge/index.chtml
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/v2/installerbadge/index.chtml?rev=1430694&view=auto
==============================================================================
--- flex/site/trunk/content/v2/installerbadge/index.chtml (added)
+++ flex/site/trunk/content/v2/installerbadge/index.chtml Wed Jan 9 06:08:09 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>