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/09/14 23:20:25 UTC
svn commit: r1624905 - /openoffice/ooo-site/trunk/content/index.html
Author: marcus
Date: Sun Sep 14 21:20:25 2014
New Revision: 1624905
URL: http://svn.apache.org/r1624905
Log:
Added a new event box, updated comments, updated white-space
Modified:
openoffice/ooo-site/trunk/content/index.html
Modified: openoffice/ooo-site/trunk/content/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/index.html?rev=1624905&r1=1624904&r2=1624905&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/index.html (original)
+++ openoffice/ooo-site/trunk/content/index.html Sun Sep 14 21:20:25 2014
@@ -35,23 +35,48 @@
}
}
+ function showEventBox() {
+ // The text is defined in "/msg_prop_l10n.js".
+
+ // Show the event box or not?
+ if( l10n.index_event_box_show ) {
+ // Show the banner logo and text with link and cursor as poiner.
+ document.write( "<div id='event_box' onclick='window.open( \"" + l10n.index_event_box_text_href
+ + "\", \"_blank\" ); return false;'>"
+ + "<ul>"
+ + "<li>"
+ // Event banner logo on the left hand side.
+ + "<p style='float: left;'>"
+ + "<a href='" + l10n.index_event_box_graphic_href
+ + "' title='" + l10n.index_event_box_graphic_title + "' target='_blank'>"
+ + "<img src='" + l10n.index_event_box_graphic_src
+ + "' alt='" + l10n.index_event_box_graphic_alt + "' />"
+ + "</a>"
+ + "</p>"
+
+ // Event text on the right hand side.
+ + "<p>"
+ + "<a style='color: black; text-decoration: none;'"
+ + "' title='" + l10n.index_event_box_text_title + "' target='_blank'>"
+ + l10n.index_event_box_text_text
+ + "</a>"
+ + "</p>"
+ + "</li>"
+ + "</ul>"
+ + "</div>" );
+ }
+ }
+
function showAlertBox() {
// The text is defined in "/msg_prop_l10n.js".
- // Show alert box or not?
+ // Show the alert box or not?
if( l10n.index_alert_box_show ) {
- // If no background color value was set then use the default value.
- if( ! l10n.index_alert_box_background_color || l10n.index_alert_box_background_color === "" )
- l10n.index_alert_box_background_color = "#FFD9A7";
-
- // Show alert box with defined background color.
// Depending if link is available, make the whole DIV clickable or not.
if( l10n.index_alert_box_href ) {
// Show the text with link and cursor as poiner.
- document.write( "<div id='alert_box' style='background: "
- + l10n.index_alert_box_background_color
- + "; ' onclick='window.open( \"" + l10n.index_alert_box_href
- + "\", \"_blank\" ); return false;'>" );
+ document.write( "<div id='alert_box' onclick='window.open( \"" + l10n.index_alert_box_href
+ + "\", \"_blank\" ); return false;'><ul><li>" );
// Show headline.
document.write( "<h2 style='cursor: pointer;'>"
@@ -64,8 +89,7 @@
}
} else {
// Show the text without link and normal cursor.
- document.write( "<div id='alert_box' style='background: "
- + l10n.index_alert_box_background_color + "'>" );
+ document.write( "<div id='alert_box'><ul><li>" );
// Show headline.
document.write( "<h2 style='cursor: default;'>"
@@ -77,7 +101,7 @@
+ l10n.index_alert_box_text_text + "</p>" );
}
}
- document.write( "</div>" ); // Alert box
+ document.write( "</li></ul></div>" ); // Alert box.
}
}
@@ -143,21 +167,25 @@
}
switch( lang_mode ) {
- case "hard":
- // Do not show a message, just redirect.
- window.open( "http://www.openoffice.org/" + lang_iso , "_self" );
- break;
- case "soft":
- // Show a message and redirect only on user's click.
- // Assign the message text (defined in "/msg_prop_l10n.js", array "l10n.index_redirect_text", column 1).
- document.write( "<div id='redirect_box'"
- + " onclick='window.open( \"http://www.openoffice.org/" + lang_iso + "\", \"_self\" ); return false;'>"
- + "<p>" + lang_text + "</p>"
- + "</div>" ); // redirect box
- break;
- case "none":
- default:
- // Do nothing and show nothing.
+ case "hard":
+ // Do not show a message, just redirect.
+ window.open( "http://www.openoffice.org/" + lang_iso , "_self" );
+ break;
+ case "soft":
+ // Show a message and redirect only on user's click.
+ // Assign the message text that is defined in:
+ // "/msg_prop_l10n.js", array "l10n.index_redirect_text", column 1),
+ document.write( "<div id='redirect_box'"
+ + " onclick='window.open( \"http://www.openoffice.org/" + lang_iso + "\", \"_self\" );"
+ + "return false;'>"
+ + "<ul><li>"
+ + "<p>" + lang_text + "</p>"
+ + "</li></ul>"
+ + "</div>" ); // Redirect box.
+ break;
+ case "none":
+ default:
+ // Do nothing and show nothing.
}
return;
@@ -167,41 +195,49 @@
<body>
-<!-- The text in the H1 tag is intentionally shown as not displayable, just to please accessibility tools like a screen reader. -->
+<!-- The text in the H1 tag is intentionally shown as "display: none" (do not display). -->
+<!-- This is to please accessibility tools like a screen reader. -->
<h1 style="display: none;">Apache OpenOffice</h1>
<div id="actionstatements">
<script type="text/javascript">
<!--
+ // Show event box.
+ // Show a banner logo and message of the event.
+ // In "/msg_prop_l10n.js": Change to 'true' to show the box that is defined in the variables.
+ showEventBox();
+
// Show alert box.
- // Show important messages and announcements.
- // Change to 'true' if you want to show the text that is defined in the variables above.
+ // Show an important message or announcement.
+ // In "/msg_prop_l10n.js": Change to 'true' to show the box that is defined in the variables.
showAlertBox();
- // Check if and how a redirect to the respective NL webpage should be done.
+ // Show redirect box.
+ // Show a text how to redirect to the NL webpage.
+ // In "/msg_prop_l10n.js": Change the mode and text how a redirect to the respective NL webpage should be done.
setRedirect();
//-->
</script>
- <ul>
- <li>
- <hr />
- </li>
- <li>
- <div class="action-info">
- <div class="action-text action-link">
- <a href="why/index.html">
- <h2>I want to learn more about OpenOffice</h2>
- <p>What is Apache OpenOffice? And why should I use it?</p>
- </a>
- </div>
+ <li>
+ <hr />
+ </li>
+
+ <li>
+ <div class="action-info">
+ <div class="action-text action-link">
+ <a href="why/index.html">
+ <h2>I want to learn more about OpenOffice</h2>
+ <p>What is Apache OpenOffice? And why should I use it?</p>
+ </a>
</div>
- </li>
- <li>
- <hr />
- </li>
- </ul>
+ </div>
+ </li>
+
+ <li>
+ <hr />
+ </li>
<!-- Show the download link with currently available version number, loaded via JavaScript -->
<script type="text/javascript">
@@ -327,7 +363,7 @@
</div>
</div>
-<div id="news" style="margin: 2% 3% 0 0; height: 520px;">
+<div id="news">
<div class="campaign" style="height: 200px; float: right; overflow: auto;">
<h2 style="display: inline;">Recent Blog Posts</h2>