summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-05-13 02:30:15 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-05-13 02:30:15 +0200
commit6f3ef8e522272f54a5147b152ccc69444d380c7b (patch)
tree3e416ee208068584144e3b9c177ec05636deb81c
parentbf51125c3bbed47e6fa040f1f726fa0ea8627299 (diff)
downloadwww-6f3ef8e522272f54a5147b152ccc69444d380c7b.tar.gz
www-6f3ef8e522272f54a5147b152ccc69444d380c7b.tar.bz2
www-6f3ef8e522272f54a5147b152ccc69444d380c7b.zip
fix window/history title
-rw-r--r--index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index b75d6b1..0180416 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset=utf-8 />
- <title>hostinfo</title>
+ <title>Hostinfo: Overview</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.min.css" />
<style>
@@ -73,7 +73,7 @@
$("#hosts a").click("hover", function(event){
var uri = $(this).attr('data-uri');
render.host(uri);
- History.pushState({host: uri}, $(this).attr('innerHtml'), 'index.html?'+uri);
+ History.pushState({host: uri}, 'Hostinfo: ' + uri, 'index.html?'+uri);
return false;
});
});
@@ -95,7 +95,7 @@
$("#index").click("hover", function(event){
render.index();
- History.pushState({host: undefined}, 'Overview', 'index.html');
+ History.pushState({host: undefined}, 'Hostinfo: Overview', 'index.html');
return false;
});
});
@@ -119,6 +119,7 @@
var host = window.location.search.split('?')[1] || undefined;
if (host) {
+ document.title = 'Hostinfo: ' + host;
render.host(host);
}
else {