OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 | 4 |
5 <head> | 5 <head> |
6 | 6 |
7 <script> | 7 <script> |
8 function addRow(name, url, isdir, size, date_modified) { | 8 function addRow(name, url, isdir, size, date_modified) { |
9 if (name == ".") | 9 if (name == ".") |
10 return; | 10 return; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 | 53 |
54 function start(location) { | 54 function start(location) { |
55 var header = document.getElementById("header"); | 55 var header = document.getElementById("header"); |
56 header.innerText = header.innerText.replace("LOCATION", location); | 56 header.innerText = header.innerText.replace("LOCATION", location); |
57 | 57 |
58 document.getElementById("title").innerText = header.innerText; | 58 document.getElementById("title").innerText = header.innerText; |
59 } | 59 } |
60 | 60 |
61 function onListingParsingError() { | 61 function onListingParsingError() { |
62 var box = document.getElementById("listingParsingErrorBox"); | 62 var box = document.getElementById("listingParsingErrorBox"); |
63 box.innerHTML = box.innerHTML.replace("LOCATION", document.location + "?raw"); | 63 box.innerHTML = box.innerHTML.replace("LOCATION", encodeURI(document.location) |
eroman
2010/04/06 01:43:12
nit: this seems like a separate issue, I suggest b
| |
64 + "?raw"); | |
64 box.style.display = ""; | 65 box.style.display = ""; |
65 } | 66 } |
66 </script> | 67 </script> |
67 | 68 |
68 <style> | 69 <style> |
69 | 70 |
70 h1 { | 71 h1 { |
71 border-bottom: 1px solid #c0c0c0; | 72 border-bottom: 1px solid #c0c0c0; |
72 margin-bottom: 10px; | 73 margin-bottom: 10px; |
73 padding-bottom: 10px; | 74 padding-bottom: 10px; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 <tr class="header"> | 134 <tr class="header"> |
134 <td i18n-content="headerName"></td> | 135 <td i18n-content="headerName"></td> |
135 <td class="detailsColumn" i18n-content="headerSize"></td> | 136 <td class="detailsColumn" i18n-content="headerSize"></td> |
136 <td class="detailsColumn" i18n-content="headerDateModified"></td> | 137 <td class="detailsColumn" i18n-content="headerDateModified"></td> |
137 </tr> | 138 </tr> |
138 </table> | 139 </table> |
139 | 140 |
140 </body> | 141 </body> |
141 | 142 |
142 </html> | 143 </html> |
OLD | NEW |