consolidate test-ip definition, added missing Access-Control-Allow-Origin (#1741)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2023-01-02 14:31:00 +01:00
committed by GitHub
parent 485e55e0b8
commit 4d823b354f
27 changed files with 266 additions and 222 deletions

View File

@@ -10,13 +10,13 @@
<div id="value"></div>
</html>
<script type="text/javascript" src="./gethost.js"></script>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript">
var basepath = "http://192.168.178.22";
var domainname = getDomainname();
function testinit(){
basepath = getbasepath();
url = basepath + '/value?all=true';
domainname = getDomainname();
url = domainname + '/value?all=true';
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {