Skip to content

Commit 35d58e2

Browse files
committed
rm discount
1 parent 3a47eda commit 35d58e2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

theme/ai.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* HackTricks Training Discounts
3-
*/
3+
44
55
66
(() => {
@@ -9,13 +9,13 @@
99
const TXT = 'Click here for HT Summer Discounts, Last Days!';
1010
const URL = 'https://training.hacktricks.xyz';
1111
12-
/* Stop if user already dismissed */
12+
# Stop if user already dismissed
1313
if (localStorage.getItem(KEY) === 'true') return;
1414
15-
/* Quick helper */
15+
# Quick helper
1616
const $ = (tag, css = '') => Object.assign(document.createElement(tag), { style: css });
1717
18-
/* --- Overlay (blur + dim) --- */
18+
# --- Overlay (blur + dim) ---
1919
const overlay = $('div', `
2020
position: fixed; inset: 0;
2121
background: rgba(0,0,0,.4);
@@ -24,7 +24,7 @@
2424
z-index: 10000;
2525
`);
2626
27-
/* --- Modal --- */
27+
# --- Modal ---
2828
const modal = $('div', `
2929
max-width: 90vw; width: 480px;
3030
background: #fff; border-radius: 12px; overflow: hidden;
@@ -33,10 +33,10 @@
3333
display: flex; flex-direction: column; align-items: stretch;
3434
`);
3535
36-
/* --- Title bar (link + close) --- */
36+
# --- Title bar (link + close) ---
3737
const titleBar = $('div', `
3838
position: relative;
39-
padding: 1rem 2.5rem 1rem 1rem; /* room for the close button */
39+
padding: 1rem 2.5rem 1rem 1rem; # room for the close button
4040
text-align: center;
4141
background: #222; color: #fff;
4242
font-size: 1.3rem; font-weight: 700;
@@ -53,7 +53,7 @@
5353
link.textContent = TXT;
5454
titleBar.appendChild(link);
5555
56-
/* Close "X" (no persistence) */
56+
# Close "X" (no persistence)
5757
const closeBtn = $('button', `
5858
position: absolute; top: .25rem; right: .5rem;
5959
background: transparent; border: none;
@@ -65,11 +65,11 @@
6565
closeBtn.onclick = () => overlay.remove();
6666
titleBar.appendChild(closeBtn);
6767
68-
/* --- Image --- */
68+
# --- Image ---
6969
const img = $('img');
7070
img.src = IMG; img.alt = TXT; img.style.width = '100%';
7171
72-
/* --- Checkbox row --- */
72+
# --- Checkbox row ---
7373
const label = $('label', `
7474
display: flex; align-items: center; justify-content: center; gap: .6rem;
7575
padding: 1rem; font-size: 1rem; color: #222; cursor: pointer;
@@ -83,7 +83,7 @@
8383
};
8484
label.append(cb, document.createTextNode("Don't show again"));
8585
86-
/* --- Assemble & inject --- */
86+
# --- Assemble & inject ---
8787
modal.append(titleBar, img, label);
8888
overlay.appendChild(modal);
8989
@@ -94,7 +94,7 @@
9494
}
9595
})();
9696
97-
97+
*/
9898

9999

100100

0 commit comments

Comments
 (0)