diff --git a/simpleadmin/www/atcommander.html b/simpleadmin/www/atcommander.html index 5d75843..110f650 100644 --- a/simpleadmin/www/atcommander.html +++ b/simpleadmin/www/atcommander.html @@ -40,7 +40,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout diff --git a/simpleadmin/www/bandlock.html b/simpleadmin/www/bandlock.html index b2501e3..a2416f9 100644 --- a/simpleadmin/www/bandlock.html +++ b/simpleadmin/www/bandlock.html @@ -49,7 +49,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index 5da9ec7..05cd017 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -41,7 +41,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout diff --git a/simpleadmin/www/logout.html b/simpleadmin/www/logout.html new file mode 100644 index 0000000..3694591 --- /dev/null +++ b/simpleadmin/www/logout.html @@ -0,0 +1,55 @@ + + + + + + + + Simple Admin + + + + + + + + + + + + + + diff --git a/simpleadmin/www/sms.html b/simpleadmin/www/sms.html index 2d56e5d..f534deb 100644 --- a/simpleadmin/www/sms.html +++ b/simpleadmin/www/sms.html @@ -41,7 +41,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout diff --git a/simpleadmin/www/speedtest.html b/simpleadmin/www/speedtest.html index 798f364..10e3518 100644 --- a/simpleadmin/www/speedtest.html +++ b/simpleadmin/www/speedtest.html @@ -42,7 +42,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout diff --git a/simpleadmin/www/ttl.html b/simpleadmin/www/ttl.html index c4994af..31694ed 100644 --- a/simpleadmin/www/ttl.html +++ b/simpleadmin/www/ttl.html @@ -36,7 +36,8 @@ SMS TTL Changer OpenSpeedtest - Console + Console + Logout @@ -117,18 +118,28 @@ this.ttldata = data }); }, - setTTL() { + setTTL() { fetch('/cgi-bin/set_ttl?' + new URLSearchParams({ - ttlvalue: this.newTTL, - })) - .then((res) => res.json()) - .then((data) => { - this.ttldata = data - }) - } - } - } - - - - \ No newline at end of file + ttlvalue: this.newTTL, + })) + .then((res) => res.json()) + .then((data) => { + this.ttldata = data + }) + sleep(1000) + fetch('/cgi-bin/get_ttl_status') + .then((res) => res.json()) + .then((data) => { + this.ttldata = data + }); + } + } + function sleep(miliseconds) { + var currentTime = new Date().getTime(); + while (currentTime + miliseconds >= new Date().getTime()) { + } + } + } + + +