-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
164 lines (145 loc) · 10.3 KB
/
Copy pathindex.html
File metadata and controls
164 lines (145 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhatAreRivalsScripts | Legit List</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
body { background-color: #05070a; color: white; font-family: 'Inter', sans-serif; overflow-x: hidden; }
.glass { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); }
.kicia-gradient { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); }
/* Sidebar Logic */
#filterSidebar { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); width: 350px; opacity: 1; transform: translateX(0); border-left: 1px solid rgba(255, 255, 255, 0.05); }
#filterSidebar.closed { width: 0px !important; padding: 0 !important; opacity: 0 !important; transform: translateX(100px); pointer-events: none; overflow: hidden; border-left: 0px solid transparent; }
/* Filter Buttons */
.filter-checkbox { display: none; }
.filter-btn { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-radius: 12px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; transition: all 0.2s ease; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.filter-checkbox:checked + .filter-btn { background: #6366f1; border-color: #818cf8; box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
/* Tags */
.tag { font-size: 0.6rem; font-weight: 900; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; }
.tag-free { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.tag-premium { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-undetected { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-keyless { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
/* Loading Spinner */
.loader { width: 48px; height: 48px; border: 5px solid #FFF; border-bottom-color: #6366f1; border-radius: 50%; display: inline-block; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Navbar -->
<nav class="p-6 border-b border-white/5 glass sticky top-0 z-50 flex justify-between items-center px-6 md:px-10">
<h1 class="text-xl font-black tracking-widest text-indigo-500 uppercase italic">WHAT<span class="text-white font-light">ARE</span>RIVALS<span class="text-indigo-500">SCRIPTS</span></h1>
<button onclick="toggleSidebar()" class="bg-white/5 hover:bg-white/10 p-3 px-5 rounded-xl border border-white/10 transition-all flex items-center gap-3">
<i class="fas fa-sliders-h text-indigo-500"></i>
<span class="text-[10px] font-black uppercase tracking-widest hidden sm:inline">Filters</span>
</button>
</nav>
<!-- Main Layout -->
<div class="flex flex-row flex-grow">
<main class="flex-grow p-6 md:p-12 transition-all duration-500">
<header class="max-w-4xl mx-auto mb-12 text-center md:text-left">
<h2 class="text-4xl md:text-6xl font-black italic uppercase mb-8">THE <span class="text-indigo-500">LEGIT</span> LIST</h2>
<div class="relative max-w-2xl mx-auto md:mx-0">
<input type="text" id="searchBar" placeholder="Search scripts..." class="w-full bg-slate-900/50 border border-white/10 rounded-2xl py-5 px-6 text-slate-200 focus:outline-none focus:border-indigo-500 transition-all text-lg">
<i class="fas fa-search absolute right-6 top-6 text-slate-600"></i>
</div>
</header>
<div id="scriptContainer" class="max-w-4xl mx-auto flex flex-col gap-10">
<div class="flex justify-center py-20"><span class="loader"></span></div>
</div>
</main>
<!-- Sidebar -->
<aside id="filterSidebar" class="p-8 hidden md:block closed">
<div class="w-[280px]">
<h3 class="text-sm font-black uppercase tracking-widest text-slate-400 mb-8">Settings</h3>
<div class="space-y-8">
<section>
<p class="text-[10px] font-black text-slate-500 uppercase tracking-widest mb-4">Ordering</p>
<input type="checkbox" id="sortAZ" class="filter-checkbox" onchange="applyFilters()">
<label for="sortAZ" class="filter-btn">
<span>Alphabetical A-Z</span>
<i class="fas fa-sort-alpha-down text-slate-600"></i>
</label>
</section>
<section>
<p class="text-[10px] font-black text-slate-500 uppercase tracking-widest mb-4">Categories</p>
<div class="flex flex-col gap-3">
<div><input type="checkbox" id="f-free" value="free" class="filter-checkbox tag-filter" onchange="applyFilters()"><label for="f-free" class="filter-btn"><span>Free</span><div class="w-2 h-2 rounded-full bg-green-500"></div></label></div>
<div><input type="checkbox" id="f-premium" value="premium" class="filter-checkbox tag-filter" onchange="applyFilters()"><label for="f-premium" class="filter-btn"><span>Premium</span><div class="w-2 h-2 rounded-full bg-purple-500"></div></label></div>
<div><input type="checkbox" id="f-keyless" value="keyless" class="filter-checkbox tag-filter" onchange="applyFilters()"><label for="f-keyless" class="filter-btn"><span>Keyless</span><div class="w-2 h-2 rounded-full bg-yellow-500"></div></label></div>
</div>
</section>
<button onclick="resetFilters()" class="w-full py-4 text-[10px] font-black text-slate-600 hover:text-white transition uppercase tracking-widest border border-dashed border-white/10 rounded-xl text-center">Reset All Filters</button>
</div>
</div>
</aside>
</div>
<!-- Footer -->
<footer class="p-10 border-t border-white/5 text-center opacity-20 text-[10px] font-bold tracking-[0.5em] uppercase">
WhatAreRivalsScripts © 2026
</footer>
<script>
// Updated Gist URL for automatic updates
const GIST_URL = "https://gist.githubusercontent.com/WhatAreRivalsScripts/e0e92bc331bbd3fb39d2b18f0e0bfec2/raw/scripts";
let allScripts = [];
async function fetchScripts() {
try {
const res = await fetch(GIST_URL);
allScripts = await res.json();
applyFilters();
} catch (e) {
document.getElementById('scriptContainer').innerHTML = `<div class="text-center py-20"><p class="text-red-500 font-bold">Failed to sync database.</p></div>`;
}
}
function toggleSidebar() { document.getElementById('filterSidebar').classList.toggle('closed'); }
function applyFilters() {
const term = document.getElementById('searchBar').value.toLowerCase();
const sort = document.getElementById('sortAZ').checked;
const tags = Array.from(document.querySelectorAll('.tag-filter:checked')).map(cb => cb.value);
let filtered = allScripts.filter(s => {
const nMatch = s.name.toLowerCase().includes(term);
const sTags = s.tags || [];
const tMatch = tags.length === 0 || tags.every(t => sTags.includes(t));
return nMatch && tMatch;
});
if (sort) filtered.sort((a, b) => a.name.localeCompare(b.name));
render(filtered);
}
function render(data) {
const container = document.getElementById('scriptContainer');
container.innerHTML = data.length ? '' : `<div class="text-center py-20 opacity-40 italic">No matches found...</div>`;
data.forEach(s => {
const tags = s.tags || [];
container.innerHTML += `
<div class="w-full transition-all duration-500 animate-in fade-in slide-in-from-bottom-4">
<div class="kicia-gradient p-[1px] rounded-[30px] shadow-xl">
<div class="bg-[#0b101a] rounded-[29px] p-8 md:p-12 relative overflow-hidden flex flex-col md:flex-row items-center justify-between gap-8">
<div class="text-center md:text-left">
<div class="flex flex-wrap justify-center md:justify-start gap-2 mb-6">
${tags.map(t => `<span class="tag tag-${t}">${t}</span>`).join('')}
</div>
<h3 class="text-4xl md:text-5xl font-black italic uppercase tracking-tighter">${s.name}</h3>
</div>
<div class="flex flex-col gap-3 w-full md:w-48">
<a href="${s.website}" target="_blank" class="bg-white text-black font-black py-4 rounded-xl text-xs uppercase tracking-widest text-center hover:bg-slate-200 transition-all">Website</a>
<a href="${s.discord}" target="_blank" class="bg-[#5865F2] text-white font-black py-4 rounded-xl text-xs uppercase tracking-widest text-center hover:bg-[#4752c4] transition-all">Discord</a>
</div>
</div>
</div>
</div>`;
});
}
function resetFilters() {
document.getElementById('searchBar').value = '';
document.querySelectorAll('.filter-checkbox').forEach(cb => cb.checked = false);
applyFilters();
}
document.getElementById('searchBar').addEventListener('input', applyFilters);
fetchScripts();
</script>
</body>
</html>