Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="FSGI Geofs Fachschaft Geoinformatik Münster Sitzungsprotokolle">
<title>Protokolle</title>
<meta name="description" content="Autoindex Example">
<title>Autoindex Example</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic" crossorigin="anonymous"> -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css" as="style"
Expand Down
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const cfg = {
server_base_url: "https://giv-geofs.uni-muenster.de", // Specify URL to server here
endpoint: "protokolle_json", // specify endpoint to render
page_title_base: "Protokolle"
server_base_url: "https://nginx-server-url.com", // Specify URL to server here
endpoint: "endpoint_json", // specify endpoint to render
page_title_base: "Title"
}

window.$ = document.querySelector.bind(document);
Expand Down Expand Up @@ -186,7 +186,7 @@ function setData(a = [], n = [0, 0, 0, 0], p = 15000, m = 1, c = 'table tbody',
dir_name = directories[i].name
dir_date = new Date(directories[i].mtime).toLocaleString(window.language)

tblHtm += `<tr onclick=onDirectoryClick(${dir_name})>
tblHtm += `<tr onclick="onDirectoryClick('${encodeURIComponent(dir_name)}')">
<td><span class="material-icons" title="Folder">folder</span><span style="display:none">${type}</span></td>
<td>${dir_name}</td>
<td>${dir_date}</td>
Expand All @@ -201,7 +201,7 @@ function setData(a = [], n = [0, 0, 0, 0], p = 15000, m = 1, c = 'table tbody',
file_date = new Date(files[i].mtime).toLocaleString(window.language)
file_size = files[i].size

tblHtm += `<tr onclick=onFileClick("${file_name}")>
tblHtm += `<tr onclick="onFileClick('${encodeURIComponent(file_name)}')">
<td><span class="material-icons" title="File">insert_drive_file</span><span style="display:none">${type}</span></td>
<td>${file_name}</td>
<td>${file_date}</td>
Expand Down