diff options
author | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-26 22:42:52 +0000 |
---|---|---|
committer | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-26 22:42:52 +0000 |
commit | 586acc5fe142f498261f52c66862fa417c3d52d2 (patch) | |
tree | c98b3417a883f2477029c8cd5888f4078681e24e /net/base/dir_header.html | |
parent | a814a8d55429605fe6d7045045cd25b6bf624580 (diff) | |
download | chromium_src-586acc5fe142f498261f52c66862fa417c3d52d2.zip chromium_src-586acc5fe142f498261f52c66862fa417c3d52d2.tar.gz chromium_src-586acc5fe142f498261f52c66862fa417c3d52d2.tar.bz2 |
Add net to the repository.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/dir_header.html')
-rw-r--r-- | net/base/dir_header.html | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net/base/dir_header.html b/net/base/dir_header.html new file mode 100644 index 0000000..ec4eb3a --- /dev/null +++ b/net/base/dir_header.html @@ -0,0 +1,69 @@ +<html id="t"> +<head> + +<script> +function addRow(name, url, isdir, size, date_modified) { + if (name == ".") + return; + + var table = document.getElementById("table"); + var row = document.createElement("tr"); + var file_cell = document.createElement("td"); + var link = document.createElement("a"); + if (name == "..") { + link.href = ".."; + link.innerText = document.getElementById("parentDirText").innerText; + size = ""; + date_modified = ""; + } else { + if (isdir) { + name = name + "/"; + url = url + "/"; + size = ""; + } + link.innerText = name; + link.href = "./" + url; + } + file_cell.appendChild(link); + + row.appendChild(file_cell); + row.appendChild(createCell(size)); + row.appendChild(createCell(date_modified)); + + table.appendChild(row); +} + +function createCell(text) { + var cell = document.createElement("td"); + cell.setAttribute("class", "sizeColumn"); + cell.innerText = text; + return cell; +} + +function start(location) { + var header = document.getElementById("header"); + header.innerText = header.innerText.replace("LOCATION", location); + + document.getElementById("title").innerText = header.innerText; +} +</script> + +<title id="title"></title> +<style> + h1 { white-space: nowrap; } + td.sizeColumn { text-align: right; padding-left: 30px; } +</style> +</head> +<body> +<span id="parentDirText" style="display:none" jscontent="parentDirText"></span> +<h1 id="header" jscontent="header"></h1> +<hr/> +<table id="table"> +<tr style="font-weight: bold"> + <td jscontent="headerName"></td> + <td class="sizeColumn" jscontent="headerSize"></td> + <td class="sizeColumn" jscontent="headerDateModified"></td> +</tr> +</table> +</body> +</html> |