y-web: show hostname as page-title

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c46967ffb
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-01 (Fri, 01 Sep 2017)

Origin message was:
------------------
- y-web: show hostname as page-title

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-09-01 12:31:51 +02:00
parent 732a152251
commit 20cafe7090

View File

@@ -4,6 +4,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>yWeb</title>
<script type="text/javascript">
//<![CDATA[
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "/etc/hostname", false);
xmlhttp.send();
if (xmlhttp.status == 200)
document.title = xmlhttp.responseText;
//]]>
</script>
</head>
<frameset cols="*,1300,*" frameborder="0" framespacing="0">
<frame name="top_left" src="Y_Dyn_Pages.yhtm?page=page_frame_rest" marginwidth="0" marginheight="0" frameborder="0" border="0"/>