User: alexandruszasz Date: 2008-09-12 10:12:12+0000 Added: ro/www/scripturi/ro.js
Modified: ro/www/index.html Log: Structured js code in a separate file. File Changes: Directory: /ro/www/scripturi/ ============================= File [added]: ro.js Url: http://ro.openoffice.org/source/browse/ro/www/scripturi/ro.js?rev=1.1&content-type=text/vnd.viewcvs-markup Added lines: 70 --------------- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); var pageTracker = _gat._getTracker("UA-580432-10"); pageTracker._trackPageview(); /** * Ãnlocuire prin javascript a pÄrÈii de sus pentru a permite traducerea * Alexandru Szasz 12.09.2008 */ if (document.getElementById('positioner')) { var imgs = document.getElementById('positioner').getElementsByTagName('a'); imgs[0].innerHTML = '<img src="http://ro.openoffice.org/imagini/bannerlogo.png" alt="OpenOffice.org" />'; var ems = document.getElementById('positioner').getElementsByTagName('em'); ems[0].innerHTML = 'Productivitate liberÄ Èi deschisÄ'; } if (document.getElementById('breadcrumbs')) { var ahrefs = document.getElementById('breadcrumbs').getElementsByTagName('a'); ahrefs[0].innerHTML = 'Proiecte'; } if (document.getElementById('minitabs')) document.getElementById('minitabs').innerHTML = '' + '<ul class="minitabs">' + ' <li class="minitab search first_in_list"><a class="tab" href="http://www.openoffice.org/search/">CÄutare</a>' + ' <div class="tabcontent">' + ' <form action="http://download.openoffice.org/servlets/Search" method="get">' + ' <p><input type="hidden" name="resultsPerPage" value="40" /> <input type="text" name="query" size="10" id="searchfield" class="inputtext" /> <input type="submit"' + ' class="searchbutton" name="Button" value="Du-te" /></p>' + ' </form>' + ' <p><a href="http://www.openoffice.org/search/">CÄutare avansatÄ</a></p>' + ' </div>' + ' </li>' + ' <li class="minitab lang"><a class="tab" href="http://projects.openoffice.org/native-lang.html">SchimbÄ limba</a>' + ' <div class="tabcontent">' + ' <p>OpenOffice.org e disponibil în mai multe limbi. PuteÈi vizita paginile create de una dintre <a href="http://projects.openoffice.org/native-lang.html">comunitÄÈile' + ' noastre lingivistice</a>.</p>' + ' </div>' + ' </li>' + ' <li class="minitab login"><a class="tab" href="http://www.openoffice.org/servlets/StartPage">Autentificare</a>' + ' <div class="tabcontent">' + ' <div id="loginbox">' + ' <form action="/servlets/TLogin" method="post">' + ' <div>' + ' <p><label for="loginID">Utilizator:</label> <input type="text" alt="username" class="inputtext" name="loginID" id="loginID" /></p>' + ' <p><label for="password">ParolÄ:</label> <input type="password" alt="password" class="inputtext" name="password" id="password" /></p>' + ' <p><input type="submit" class="loginbutton" name="Button" value="Autentificare" /> <input type="hidden" name="detour" value="http://download.openoffice.org/index.html" /> <span' + ' id="joina"> <a href="http://www.openoffice.org/servlets/Join">Ãnregistrare</a></span></p>' + ' </div>' + ' </form>' + ' </div>' + ' </div>' + ' </li>' + '</ul>'; if (document.getElementById('navigation')) document.getElementById('navigation').innerHTML = '' + '<ul>' + ' <li id="maintabhome" class="plain"><a href="http://www.openoffice.org/index.html" title="Go to the Homepage"><span>AcasÄ</span></a></li>' + ' <li id="maintabnews" class="plain"><a href="http://www.openoffice.org/news/" title="What is going on? Get up to date!"><span>Ètiri</span></a></li>' + ' <li id="maintabdownload" class="th"><a href="http://download.openoffice.org/index.html" title="Get OpenOffice.org or browse for extensions"><span>DescÄrcare</span></a></li>' + ' <li id="maintabsupport" class="plain"><a href="http://support.openoffice.org/index.html" title="Support for OpenOffice.org"><span>Suport</span></a></li>' + ' <li id="maintabprojects" class="plain"><a href="http://projects.openoffice.org/index.html" title="Browse the projects and get in touch with the project leads"><span>Proiecte</span></a></li>' + ' <li id="maintabmypages" class="plain"><a href="http://www.openoffice.org/servlets/StartPage"><span>Paginile mele</span></a></li>' + ' <li id="maintababout" class="plain"><a href="http://about.openoffice.org/index.html" title="Learn more about the open source-project OpenOffice.org"><span>Despre</span></a>' + ' </li>' + '</ul>'; Directory: /ro/www/ =================== File [changed]: index.html Url: http://ro.openoffice.org/source/browse/ro/www/index.html?r1=1.92&r2=1.93 Delta lines: +6 -72 -------------------- --- index.html 2008-09-11 20:11:54+0000 1.92 +++ index.html 2008-09-12 10:12:10+0000 1.93 @@ -25,84 +25,18 @@ <script type="text/javascript" src="scripturi/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="scripturi/jquery.dropshadow.js"></script> <script type="text/javascript" src="scripturi/jquery-ui-personalized-1.5b3.min.js"></script> + <script type="text/javascript" src="scripturi/ro.js"></script> <script type="text/javascript"> - window.onload = function() - { + window.onload = function() { $('#container-1 > ul').tabs({ }); $('#container-1 > img').dropShadow(); - - } - - </script> - <script type="text/javascript"> - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); - document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); - </script> - <script type="text/javascript"> - var pageTracker = _gat._getTracker("UA-580432-10"); - pageTracker._trackPageview(); </script> </head> <body> -<script type="text/javascript"> -if (document.getElementById('positioner')) { - var imgs = document.getElementById('positioner').getElementsByTagName('a'); - imgs[0].innerHTML = '<img src="http://ro.openoffice.org/imagini/bannerlogo.png" alt="OpenOffice.org" />'; - var ems = document.getElementById('positioner').getElementsByTagName('em'); - ems[0].innerHTML = 'Productivitate liberÄ Èi deschisÄ'; - -} -if (document.getElementById('minitabs')) -document.getElementById('minitabs').innerHTML = '' + -'<ul class="minitabs">' + -' <li class="minitab search first_in_list"><a class="tab" href="http://www.openoffice.org/search/">CÄutare</a>' + -' <div class="tabcontent">' + -' <form action="http://download.openoffice.org/servlets/Search" method="get">' + -' <p><input type="hidden" name="resultsPerPage" value="40" /> <input type="text" name="query" size="10" id="searchfield" class="inputtext" /> <input type="submit"' + -' class="searchbutton" name="Button" value="Du-te" /></p>' + -' </form>' + -' <p><a href="http://www.openoffice.org/search/">CÄutare avansatÄ</a></p>' + -' </div>' + -' </li>' + -' <li class="minitab lang"><a class="tab" href="http://projects.openoffice.org/native-lang.html">SchimbÄ limba</a>' + -' <div class="tabcontent">' + -' <p>OpenOffice.org e disponibil în mai multe limbi. PuteÈi vizita paginile create de una dintre <a href="http://projects.openoffice.org/native-lang.html">comunitÄÈile' + -' noastre lingivistice</a>.</p>' + -' </div>' + -' </li>' + -' <li class="minitab login"><a class="tab" href="http://www.openoffice.org/servlets/StartPage">Autentificare</a>' + -' <div class="tabcontent">' + -' <div id="loginbox">' + -' <form action="/servlets/TLogin" method="post">' + -' <div>' + -' <p><label for="loginID">Utilizator:</label> <input type="text" alt="username" class="inputtext" name="loginID" id="loginID" /></p>' + -' <p><label for="password">ParolÄ:</label> <input type="password" alt="password" class="inputtext" name="password" id="password" /></p>' + -' <p><input type="submit" class="loginbutton" name="Button" value="Autentificare" /> <input type="hidden" name="detour" value="http://download.openoffice.org/index.html" /> <span' + -' id="joina"> <a href="http://www.openoffice.org/servlets/Join">Ãnregistrare</a></span></p>' + -' </div>' + -' </form>' + -' </div>' + -' </div>' + -' </li>' + -'</ul>'; - -if (document.getElementById('navigation')) -document.getElementById('navigation').innerHTML = '' + -'<ul>' + -' <li id="maintabhome" class="plain"><a href="http://www.openoffice.org/index.html" title="Go to the Homepage"><span>AcasÄ</span></a></li>' + -' <li id="maintabnews" class="plain"><a href="http://www.openoffice.org/news/" title="What is going on? Get up to date!"><span>Ètiri</span></a></li>' + -' <li id="maintabdownload" class="th"><a href="http://download.openoffice.org/index.html" title="Get OpenOffice.org or browse for extensions"><span>DescÄrcare</span></a></li>' + -' <li id="maintabsupport" class="plain"><a href="http://support.openoffice.org/index.html" title="Support for OpenOffice.org"><span>Suport</span></a></li>' + -' <li id="maintabprojects" class="plain"><a href="http://projects.openoffice.org/index.html" title="Browse the projects and get in touch with the project leads"><span>Proiecte</span></a></li>' + -' <li id="maintabmypages" class="plain"><a href="http://www.openoffice.org/servlets/StartPage"><span>Paginile mele</span></a></li>' + -' <li id="maintababout" class="plain"><a href="http://about.openoffice.org/index.html" title="Learn more about the open source-project OpenOffice.org"><span>Despre</span></a>' + -' </li>' + -'</ul>'; -</script> <div id="content" align="center"> <table id="main" summary="body"> <tr> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
