mirror of
https://git.wetfence.xyz/RandyTheSilly/Trigalarm.git
synced 2026-10-27 03:09:58 -04:00
Add zap repeat interval; flash countdown when expired
This commit is contained in:
1 parent
66b2d5e53e
commit
1cb88560ef
6 files changed
+31
-7
No files matched your search
@@ -8,10 +8,12 @@ module.exports = function (minified) {
|
||||
if (this.get()) {
|
||||
clayConfig.getItemById('pavlok_api_key').show();
|
||||
clayConfig.getItemById('pavlok_zap_intensity').show();
|
||||
clayConfig.getItemById('pavlok_zap_interval').show();
|
||||
clayConfig.getItemById('pavlok_test_button').show();
|
||||
} else {
|
||||
clayConfig.getItemById('pavlok_api_key').hide();
|
||||
clayConfig.getItemById('pavlok_zap_intensity').hide();
|
||||
clayConfig.getItemById('pavlok_zap_interval').hide();
|
||||
clayConfig.getItemById('pavlok_test_button').hide();
|
||||
}
|
||||
}
|
||||
@@ -24,10 +26,8 @@ module.exports = function (minified) {
|
||||
reason: 'Trigalarm Test'
|
||||
}
|
||||
});
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.withCredentials = true;
|
||||
|
||||
xhr.open('POST', 'https://api.pavlok.com/api/v5/stimulus/send');
|
||||
xhr.setRequestHeader('accept', 'application/json');
|
||||
xhr.setRequestHeader('content-type', 'application/json');
|
||||
|
||||
Reference in new issue
Block a user