You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/07/05 22:12:11 UTC

svn commit: r1608120 - /openoffice/ooo-site/trunk/content/he/download/index.html

Author: marcus
Date: Sat Jul  5 20:12:10 2014
New Revision: 1608120

URL: http://svn.apache.org/r1608120
Log:
Updated JS functions and colored boxes

Modified:
    openoffice/ooo-site/trunk/content/he/download/index.html

Modified: openoffice/ooo-site/trunk/content/he/download/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/he/download/index.html?rev=1608120&r1=1608119&r2=1608120&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/he/download/index.html (original)
+++ openoffice/ooo-site/trunk/content/he/download/index.html Sat Jul  5 20:12:10 2014
@@ -11,7 +11,7 @@
   <meta name="description" content="דף רשמי להורדת Apache OpenOffice. הצטרף למהפכת OpenOffice, חבילת התוכנה המשרדית עם כבר למעלה מ-100 מיליון הורדות." />
   <title>הורדות Apache OpenOffice - אתר רשמי</title>
   <script type="text/javascript" src="../../download/globalvars.js"></script>
-  <script type="text/javascript" src="./msg_prop_l10n_he.js"></script>
+  <script type="text/javascript" src="msg_prop_l10n_he.js"></script>
   <script type="text/javascript" src="../../download/languages.js"></script>
   <script type="text/javascript" src="../../download/release_matrix.js"></script>
   <script type="text/javascript" src="../../download/boxed_download.js"></script>
@@ -19,26 +19,28 @@
   <style type="text/css">
   /* <![CDATA[ */
   /*-------------------- Exceptions on standard css -----------------------*/
-	@import url("/download/styles.css");
-    @import url("/download/exceptions.css");
-    @import url("../rtl.css");
+  @import url("../../download/styles.css");
+  @import url("../../download/exceptions.css");
+  @import url("../rtl.css");
   /* ]]> */
   </style>
   <script>
-    if (window.document.referrer.indexOf("shell.windows.com") != -1)
-       location.href = "./why/why_odf.html";
-
-    function shareFacebook() {
-      _gaq.push(['_trackEvent','social', 'shareDownload', 'facebook']); 
-      window.open('https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F','_blank','toolbar=0,status=0,width=580,height=325');	
-    }
-    function shareTwitter(){
-      _gaq.push(['_trackEvent','social', 'shareDownload', 'twitter']); 
-      window.open('https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.openoffice.org%2Fhe%2Fdownload%2F&text=הורד בחינם את חבילת התוכנות למשרד Apache OpenOffice.','_blank','toolbar=0,status=0,width=580,height=325');
+    if ( window.document.referrer.indexOf( "shell.windows.com" ) != -1 ) {
+     location.href = "../why/why_odf.html";
     }
-    function shareGooglePlus(){
-      _gaq.push(['_trackEvent','social', 'shareDownload', 'google+']); 
-      window.open('https://plus.google.com/share?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F','_blank','toolbar=0,status=0,width=580,height=325');
+
+    function share( platform ) {
+      _gaq.push( ['_trackEvent', 'social', 'shareDownload', platform] ); 
+
+      if ( platform == 'apacheblog' ) {
+        window.open( 'http://blogs.apache.org/OOo/', '_blank' );
+      } else if ( platform == 'facebook' ) {
+        window.open( 'http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+      } else if ( platform == 'twitter' ) {
+        window.open( 'http://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F&text=Join+the+OpenOffice+revolution%2C+the+free+office+productivity+suite+with+over+100+million+trusted+downloads.', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+      } else if ( platform == 'google+' ) {
+        window.open( 'http://plus.google.com/share?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+      }
     }
   </script>
 </head>
@@ -80,6 +82,7 @@
   <!-- Green: Stable release: No JavaScript enabled -->
   <noscript>
   <div class="first button green-sel" id="optionitem2">
+    <div class="green-sel-icon"></div>
     <h2>
       <a>Download Apache OpenOffice</a>
     </h2>
@@ -98,6 +101,7 @@
   <script type="text/javascript">
   <!--
   document.write( "<div class='button lightblue' id='optionitem4'>"
+    + "<div class='lightblue-icon'></div>"
     + "<h2>"
       + "<a style='cursor: default;' title='" + l10n_share_light_blue_box_headline_title + "'>"
         + l10n_share_light_blue_box_headline_text
@@ -107,17 +111,17 @@
       + "<a style='cursor: default;' title='" + l10n_share_light_blue_box_text_title + "'>"
         + l10n_share_light_blue_box_text_text
       + "</a>"
-      + "<a style='display: inline; padding: 0 5px 0 30px;' href='javascript:shareFacebook()'"
+      + "<a style='display: inline; padding: 0 5px 0 30px;' href='javascript:share( \"facebook\" )'"
         + "title='" + l10n_share_light_blue_box_facebook_title + "'>"
         + "<img src='http://www.openoffice.org/images/logo-facebook-32.png' alt='"
         + l10n_share_light_blue_box_facebook_alt + "' />"
       + "</a>"
-      + "<a style='display: inline; padding: 0 5px;' href='javascript:shareTwitter()'"
+      + "<a style='display: inline; padding: 0 5px;' href='javascript:share( \"twitter\" )'"
         + "title='" + l10n_share_light_blue_box_twitter_title + "'>"
         + "<img src='http://www.openoffice.org/images/logo-twitter-32.png' alt='"
         + l10n_share_light_blue_box_twitter_alt + "' />"
       + "</a>"
-      + "<a style='display: inline; padding: 0 5px;' href='javascript:shareGooglePlus()'"
+      + "<a style='display: inline; padding: 0 5px;' href='javascript:share( \"google+\" )'"
         + "title='" + l10n_share_light_blue_box_googleplus_title + "'>"
         + "<img src='http://www.openoffice.org/images/logo-googleplus-32.png' alt='"
         + l10n_share_light_blue_box_googleplus_alt + "' />"
@@ -132,6 +136,7 @@
   <!--
   document.write( "<div class='button blue' id='optionitem5' "
     + "onclick='openItem('optionitem5','http://extensions.openoffice.org'); return false;'>"
+    + "<div class='blue-icon'></div>"
     + "<h2>"
       + "<a href='http://extensions.openoffice.org' title='" + l10n_ext_blue_box_headline_title + "'>"
         + l10n_ext_blue_box_headline_text
@@ -151,6 +156,7 @@
   <!--
   document.write( "<div class='button blue' id='optionitem6' "
     + "onclick='openItem('optionitem6','http://templates.openoffice.org'); return false;'>"
+    + "<div class='blue-icon'></div>"
     + "<h2>"
       + "<a href='http://templates.openoffice.org' title='" + l10n_tlp_blue_box_headline_title + "'>"
         + l10n_tlp_blue_box_headline_text
@@ -240,4 +246,5 @@
 </div> <!-- class: overall_optionset -->
 
 </body>
-</html>
\ No newline at end of file
+</html>
+