y-web: show hostname as page-title

Signed-off-by: Thilo Graf <dbt@novatux.de>


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

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

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-09-01 12:31:51 +02:00
committed by Thilo Graf
parent f5ce8f5842
commit a03ad78142

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"/>