diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-13 02:30:15 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-13 02:30:15 +0200 |
commit | 6f3ef8e522272f54a5147b152ccc69444d380c7b (patch) | |
tree | 3e416ee208068584144e3b9c177ec05636deb81c /index.html | |
parent | bf51125c3bbed47e6fa040f1f726fa0ea8627299 (diff) | |
download | www-6f3ef8e522272f54a5147b152ccc69444d380c7b.tar.gz www-6f3ef8e522272f54a5147b152ccc69444d380c7b.tar.bz2 www-6f3ef8e522272f54a5147b152ccc69444d380c7b.zip |
fix window/history title
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 { |