api-ix commited on
Commit
3a67716
·
verified ·
1 Parent(s): eab5d0e

Upload 3 files

Browse files
Files changed (2) hide show
  1. script.js +2 -3
  2. styles.css +4 -5
script.js CHANGED
@@ -338,8 +338,7 @@ function render(reset = true) {
338
  grid.innerHTML = "";
339
  page = 0;
340
  }
341
- // start from page*perPage instead of 0
342
- const slice = filtered.slice(page * perPage, (page + 1) * perPage);
343
  slice.forEach((e) => {
344
  const card = document.createElement("div");
345
  card.className = "card";
@@ -353,7 +352,7 @@ function render(reset = true) {
353
  card.onclick = () => openModal(e);
354
  grid.appendChild(card);
355
  });
356
- loadBtn.style.display = (page + 1) * perPage < filtered.length ? "block" : "none";
357
  }
358
 
359
  /* ====== SEARCH / FILTER ====== */
 
338
  grid.innerHTML = "";
339
  page = 0;
340
  }
341
+ const slice = filtered.slice(0, (page + 1) * perPage);
 
342
  slice.forEach((e) => {
343
  const card = document.createElement("div");
344
  card.className = "card";
 
352
  card.onclick = () => openModal(e);
353
  grid.appendChild(card);
354
  });
355
+ loadBtn.style.display = slice.length < filtered.length ? "block" : "none";
356
  }
357
 
358
  /* ====== SEARCH / FILTER ====== */
styles.css CHANGED
@@ -9,8 +9,6 @@
9
  --bg: #0f0f0f;
10
  --surface: rgba(255, 255, 255, 0.05);
11
  --border: rgba(255, 255, 255, 0.08);
12
- --mono: "Gagalin", "JetBrains Mono", monospace;
13
-
14
  --accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%);
15
  --accent-solid: #ffb347;
16
  --text: #ffffff;
@@ -30,9 +28,6 @@ body {
30
  line-height: 1.5;
31
  overflow-x: hidden;
32
  }
33
- .btn-copy {
34
- font-family: "Gagalin", "JetBrains Mono", monospace !important;
35
- }
36
 
37
  /* 3. Liquid BG */
38
  .liquid-bg {
@@ -80,6 +75,10 @@ nav a:hover { color: var(--accent-solid); }
80
  }
81
  .cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); }
82
 
 
 
 
 
83
  /* 6. Stats */
84
  .stats {
85
  display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap;
 
9
  --bg: #0f0f0f;
10
  --surface: rgba(255, 255, 255, 0.05);
11
  --border: rgba(255, 255, 255, 0.08);
 
 
12
  --accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%);
13
  --accent-solid: #ffb347;
14
  --text: #ffffff;
 
28
  line-height: 1.5;
29
  overflow-x: hidden;
30
  }
 
 
 
31
 
32
  /* 3. Liquid BG */
33
  .liquid-bg {
 
75
  }
76
  .cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); }
77
 
78
+ .btn-copy {
79
+ font-family: "Gagalin", "JetBrains Mono", monospace !important;
80
+ }
81
+
82
  /* 6. Stats */
83
  .stats {
84
  display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap;