Revert "consolidate test-ip definition, added missing Access-Control-Allow-Origin,"

This reverts commit 56cfeb732e.
This commit is contained in:
CaCO3
2023-01-02 00:55:37 +01:00
parent 56cfeb732e
commit 485e55e0b8
28 changed files with 263 additions and 266 deletions

View File

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