From 7058d0f5063dc9b065248d0a906cf874788caecf Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 13 Sep 2023 09:34:49 +0300 Subject: save --- localwebsite/htdocs/assets/inverter.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 localwebsite/htdocs/assets/inverter.js (limited to 'localwebsite/htdocs/assets/inverter.js') diff --git a/localwebsite/htdocs/assets/inverter.js b/localwebsite/htdocs/assets/inverter.js deleted file mode 100644 index 72d985c..0000000 --- a/localwebsite/htdocs/assets/inverter.js +++ /dev/null @@ -1,15 +0,0 @@ -var Inverter = { - poll: function () { - setInterval(this._tick, 1000); - }, - - _tick: function() { - ajax.get('/inverter/status.ajax') - .then(({response}) => { - if (response) { - var el = document.getElementById('inverter_status'); - el.innerHTML = response.html; - } - }); - } -}; \ No newline at end of file -- cgit v1.2.3