mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb: replace XMLHttpRequest() by jquery-function
Origin commit data
------------------
Commit: ab8d666bf9
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-18 (Sat, 18 Feb 2023)
Origin message was:
------------------
- yWeb: replace XMLHttpRequest() by jquery-function
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
version=3.0.20
|
version=3.0.21
|
||||||
date=14.02.2023
|
date=17.02.2023
|
||||||
info=NI-Neutrino-Webinterface
|
info=NI-Neutrino-Webinterface
|
||||||
|
@@ -4,13 +4,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title>yWeb</title>
|
<title>yWeb</title>
|
||||||
|
<script type="text/javascript" src="/jquery/jquery.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
var xmlhttp = new XMLHttpRequest();
|
jQuery.get("/etc/hostname", function(data) {
|
||||||
xmlhttp.open("GET", "/etc/hostname", false);
|
jQuery('html head').find('title').text(data);
|
||||||
xmlhttp.send();
|
});
|
||||||
if (xmlhttp.status == 200)
|
|
||||||
document.title = xmlhttp.responseText;
|
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user