Compare commits
No commits in common. "89b004c262903c1bd9f37fafa6f70cfb0c5b3793" and "e2a61a8c68959e15df0b1388d8f1291af55a9540" have entirely different histories.
89b004c262
...
e2a61a8c68
1 changed files with 9 additions and 14 deletions
|
@ -6,27 +6,22 @@
|
||||||
const noBtn = ackeeBanner.querySelector('.negative');
|
const noBtn = ackeeBanner.querySelector('.negative');
|
||||||
const confirmKey = 'ackeeDetailed';
|
const confirmKey = 'ackeeDetailed';
|
||||||
|
|
||||||
const ackeeServer = 'https://ackee.sebin-nyshkim.net';
|
yesBtn.addEventListener('click', () => localStorage.setItem(confirmKey, true));
|
||||||
const ackeeDomainId = 'e60cc3de-916c-424c-ac6e-2fd43d41e240';
|
|
||||||
const ackeeOpts = { detailed: true };
|
|
||||||
|
|
||||||
const record = (server, domainId, options) => {
|
|
||||||
const instance = ackeeTracker.create(server, options);
|
|
||||||
instance.record(domainId);
|
|
||||||
};
|
|
||||||
|
|
||||||
yesBtn.addEventListener('click', () => {
|
|
||||||
localStorage.setItem(confirmKey, true);
|
|
||||||
record(ackeeServer, ackeeDomainId, ackeeOpts);
|
|
||||||
});
|
|
||||||
noBtn.addEventListener('click', () => localStorage.setItem(confirmKey, false));
|
noBtn.addEventListener('click', () => localStorage.setItem(confirmKey, false));
|
||||||
|
|
||||||
if (localStorage.getItem(confirmKey) === null) {
|
if (localStorage.getItem(confirmKey) === null) {
|
||||||
ackeeBanner.show();
|
ackeeBanner.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ackeeServer = 'https://ackee.sebin-nyshkim.net';
|
||||||
|
const ackeeDomainId = 'e60cc3de-916c-424c-ac6e-2fd43d41e240';
|
||||||
|
const ackeeOpts = {
|
||||||
|
detailed: localStorage.getItem(confirmKey) === 'true'
|
||||||
|
};
|
||||||
|
|
||||||
if (localStorage.getItem(confirmKey) === 'true') {
|
if (localStorage.getItem(confirmKey) === 'true') {
|
||||||
record(ackeeServer, ackeeDomainId, ackeeOpts);
|
const instance = ackeeTracker.create(ackeeServer, ackeeOpts);
|
||||||
|
instance.record(ackeeDomainId);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue