Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iglvzx/IGalvez.Autoindex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIzzy Galvez <i@igalvez.net>2015-10-24 00:09:09 +0300
committerIzzy Galvez <i@igalvez.net>2015-10-24 00:09:51 +0300
commit0f951cebf80b2bfec4da9ad0eb51f275322805d5 (patch)
tree0011e582db156ff4db2184e29448d02e9c6bfb95
parentab1c029d82e82f28a085703b0b731bd9087fe7b1 (diff)
fill HTML title using Apache insteaad of JavaScript, to help with HTML 5 compliance.
-rw-r--r--.autoindex/header.shtml2
-rw-r--r--.autoindex/script.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/.autoindex/header.shtml b/.autoindex/header.shtml
index ef23d44..83a019d 100644
--- a/.autoindex/header.shtml
+++ b/.autoindex/header.shtml
@@ -4,7 +4,7 @@
<!--#include virtual="/.autoindex/meta.shtml" -->
-<title></title>
+<title><!--#echo var="REQUEST_URI" --></title>
<!--#include virtual="/.autoindex/css.shtml" -->
diff --git a/.autoindex/script.js b/.autoindex/script.js
index e7b84a7..6073ee7 100644
--- a/.autoindex/script.js
+++ b/.autoindex/script.js
@@ -1,6 +1,3 @@
-// set page title ----------------------------------------------------------------------------------
-document.title = document.URL;
-
$('table').addClass('table'); // add Bootstrap CSS to table
$('td').removeAttr('align'); // remove align="right" from cells