Skip to content

Commit 18959bc

Browse files
committed
chore: add warning about fraud dockdoor clone
1 parent 8650fd0 commit 18959bc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
// DockDoor Website JavaScript
22

3+
// Fraud warning banner
4+
(function() {
5+
var banner = document.createElement('div');
6+
banner.id = 'fraud-banner';
7+
banner.style.cssText = 'position:sticky;top:0;z-index:10000;background:#1a0608;border-bottom:1.5px solid #ff453a;padding:14px 24px;text-align:center;font-size:14px;color:rgba(255,255,255,0.9);letter-spacing:-0.01em;line-height:1.5;';
8+
banner.innerHTML = '<strong style="color:#ff453a">Warning:</strong> A fraudulent copy of DockDoor is being sold on the Mac App Store by "\u9a73\u519b \u674e." DockDoor is free and always will be\u200a—\u200aget it on <a href="https://github.com/ejbills/DockDoor" style="color:#2997ff;text-decoration:underline" target="_blank" rel="noopener">GitHub</a>. Already paid? <a href="https://support.apple.com/en-us/118223" style="color:#2997ff;text-decoration:underline" target="_blank" rel="noopener">Request a refund from Apple</a>.';
9+
document.body.prepend(banner);
10+
var header = document.querySelector('header');
11+
if (header) {
12+
var sync = function() { header.style.top = banner.offsetHeight + 'px'; };
13+
sync();
14+
window.addEventListener('resize', sync);
15+
}
16+
})();
17+
318
// Wait for DOM to be fully loaded
419
document.addEventListener('DOMContentLoaded', function() {
520
// Mobile menu toggle

0 commit comments

Comments
 (0)