Revision: 28263
          http://sourceforge.net/p/bibdesk/svn/28263
Author:   hofman
Date:     2023-05-26 14:44:14 +0000 (Fri, 26 May 2023)
Log Message:
-----------
alternating row colors through css

Modified Paths:
--------------
    trunk/bibdesk/de.lproj/WebGroupDownloads.html
    trunk/bibdesk/en.lproj/WebGroupDownloads.html
    trunk/bibdesk/fr.lproj/WebGroupDownloads.html

Modified: trunk/bibdesk/de.lproj/WebGroupDownloads.html
===================================================================
--- trunk/bibdesk/de.lproj/WebGroupDownloads.html       2023-05-26 09:33:50 UTC 
(rev 28262)
+++ trunk/bibdesk/de.lproj/WebGroupDownloads.html       2023-05-26 14:44:14 UTC 
(rev 28263)
@@ -17,6 +17,7 @@
                .clear { margin: 10px; }
                .prefs { font-size: 12px; }
                .prefs input { margin: 0.5em 0.5em 0.5em 10px;  }
+        tr:nth-of-type(odd) { background-color: #f5f5f5; }
                a { text-decoration: none; }
                a:hover { text-decoration: underline; }
                a:active { color: #900; }
@@ -39,20 +40,9 @@
        location.reload();
 }
 
-function doLoad() {
-       var table = document.getElementById('downloads');
-       if (table) {
-               var rows = table.getElementsByTagName("tr");
-               for (i = 0; i < rows.length ; i++) {
-                       if (i % 2 == 1) rows[i].style.backgroundColor = 
"#f5f5f5";
-               }
-       }
-       setTimeout("location.reload()",5000);
-}
-
        </script>
        </head>
-       <body onload="doLoad()">
+       <body onload="setTimeout('location.reload()',5000)">
        
                <$downloads?>
                <form>

Modified: trunk/bibdesk/en.lproj/WebGroupDownloads.html
===================================================================
--- trunk/bibdesk/en.lproj/WebGroupDownloads.html       2023-05-26 09:33:50 UTC 
(rev 28262)
+++ trunk/bibdesk/en.lproj/WebGroupDownloads.html       2023-05-26 14:44:14 UTC 
(rev 28263)
@@ -17,6 +17,7 @@
                .clear { margin: 10px; }
                .prefs { font-size: 12px; }
                .prefs input { margin: 0.5em 0.5em 0.5em 10px;  }
+        tr:nth-of-type(odd) { background-color: #f5f5f5; }
                a { text-decoration: none; }
                a:hover { text-decoration: underline; }
                a:active { color: #900; }
@@ -39,21 +40,10 @@
        location.reload();
 }
 
-function doLoad() {
-       var table = document.getElementById('downloads');
-       if (table) {
-               var rows = table.getElementsByTagName("tr");
-               for (i = 0; i < rows.length ; i++) {
-                       if (i % 2 == 1) rows[i].style.backgroundColor = 
"#f5f5f5";
-               }
-       }
-       setTimeout("location.reload()",5000);
-}
-
        </script>
        </head>
-       <body onload="doLoad()">
-       
+    <body onload="setTimeout('location.reload()',5000)">
+
                <$downloads?>
                <form>
                        <table class="downloads" id="downloads">

Modified: trunk/bibdesk/fr.lproj/WebGroupDownloads.html
===================================================================
--- trunk/bibdesk/fr.lproj/WebGroupDownloads.html       2023-05-26 09:33:50 UTC 
(rev 28262)
+++ trunk/bibdesk/fr.lproj/WebGroupDownloads.html       2023-05-26 14:44:14 UTC 
(rev 28263)
@@ -17,6 +17,7 @@
                .clear { margin: 10px; }
                .prefs { font-size: 12px; }
                .prefs input { margin: 0.5em 0.5em 0.5em 10px;  }
+        tr:nth-of-type(odd) { background-color: #f5f5f5; }
                a { text-decoration: none; }
                a:hover { text-decoration: underline; }
                a:active { color: #900; }
@@ -39,21 +40,10 @@
        location.reload();
 }
 
-function doLoad() {
-       var table = document.getElementById('downloads');
-       if (table) {
-               var rows = table.getElementsByTagName("tr");
-               for (i = 0; i < rows.length ; i++) {
-                       if (i % 2 == 1) rows[i].style.backgroundColor = 
"#f5f5f5";
-               }
-       }
-       setTimeout("location.reload()",5000);
-}
-
        </script>
        </head>
-       <body onload="doLoad()">
-       
+    <body onload="setTimeout('location.reload()',5000)">
+
                <$downloads?>
                <form>
                        <table class="downloads" id="downloads">

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to