forked from huggingfacer04/ps4-games-database
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
472 lines (403 loc) · 15.9 KB
/
index.html
File metadata and controls
472 lines (403 loc) · 15.9 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Complete database of 17,065+ PS4 games with direct download links from Mediafire, 1File, and more. Free PKG files for jailbroken PS4 consoles.">
<meta name="keywords" content="PS4 games, PS4 PKG, PS4 download, free PS4 games, jailbroken PS4, Mediafire, 1File">
<title>PS4 Games Database - 17,065+ Games with Download Links</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
background: white;
border-radius: 15px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #003791 0%, #0066cc 100%);
color: white;
padding: 40px;
text-align: center;
}
h1 {
font-size: 3em;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.stats {
background: rgba(255,255,255,0.1);
padding: 20px;
border-radius: 10px;
margin-top: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 2em;
font-weight: bold;
display: block;
}
.stat-label {
font-size: 0.9em;
opacity: 0.9;
margin-top: 5px;
}
.search-container {
padding: 30px;
background: #f8f9fa;
border-bottom: 2px solid #e9ecef;
}
#searchInput {
width: 100%;
padding: 18px 25px;
font-size: 18px;
border: 2px solid #003791;
border-radius: 50px;
outline: none;
transition: all 0.3s;
}
#searchInput:focus {
border-color: #0066cc;
box-shadow: 0 0 0 4px rgba(0, 55, 145, 0.1);
}
.search-info {
margin-top: 15px;
text-align: center;
color: #666;
font-size: 14px;
}
.games-container {
padding: 30px;
max-height: 700px;
overflow-y: auto;
}
.letter-section {
margin-bottom: 30px;
}
.letter-header {
font-size: 2.5em;
font-weight: bold;
color: #003791;
padding: 15px 0;
border-bottom: 4px solid #003791;
margin-bottom: 20px;
position: sticky;
top: 0;
background: white;
z-index: 10;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.game-item {
padding: 20px;
margin: 10px 0;
border-radius: 10px;
transition: all 0.2s;
border-left: 5px solid transparent;
background: #f8f9fa;
}
.game-item:hover {
background: #e3f2fd;
border-left-color: #003791;
transform: translateX(8px);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.game-title {
font-size: 18px;
font-weight: 600;
color: #003791;
margin-bottom: 10px;
}
.download-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.download-btn {
padding: 8px 16px;
border-radius: 5px;
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: all 0.2s;
display: inline-block;
}
.btn-mediafire {
background: #1e88e5;
color: white;
}
.btn-mediafire:hover {
background: #1565c0;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}
.btn-1file {
background: #43a047;
color: white;
}
.btn-1file:hover {
background: #2e7d32;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(67, 160, 71, 0.3);
}
.btn-other {
background: #fb8c00;
color: white;
}
.btn-other:hover {
background: #e65100;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(251, 140, 0, 0.3);
}
.btn-page {
background: #6c757d;
color: white;
}
.btn-page:hover {
background: #495057;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}
.link-count {
font-size: 12px;
color: #666;
margin-top: 5px;
}
footer {
background: #f8f9fa;
padding: 25px;
text-align: center;
color: #666;
border-top: 2px solid #e9ecef;
}
footer a {
color: #003791;
text-decoration: none;
font-weight: 500;
}
footer a:hover {
text-decoration: underline;
}
.scroll-top {
position: fixed;
bottom: 30px;
right: 30px;
background: #003791;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
transition: all 0.3s;
font-size: 24px;
}
.scroll-top:hover {
background: #0066cc;
transform: scale(1.1);
}
.scroll-top.show {
display: flex;
}
.loading {
text-align: center;
padding: 50px;
font-size: 18px;
color: #666;
}
@media (max-width: 768px) {
h1 { font-size: 2em; }
.stat-number { font-size: 1.5em; }
#searchInput { font-size: 16px; padding: 15px 20px; }
.game-title { font-size: 16px; }
.download-btn { padding: 6px 12px; font-size: 12px; }
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>🎮 PS4 Games Complete Database</h1>
<div class="stats">
<div class="stat-item">
<span class="stat-number" id="totalGames">17,065</span>
<span class="stat-label">Total Games</span>
</div>
<div class="stat-item">
<span class="stat-number" id="totalLinks">45,910</span>
<span class="stat-label">Download Links</span>
</div>
<div class="stat-item">
<span class="stat-number">3 Sources</span>
<span class="stat-label">Database</span>
</div>
</div>
</header>
<div class="search-container">
<input type="text" id="searchInput" placeholder="🔍 Search for games... (e.g., 'Batman', 'Final Fantasy', 'Call of Duty')" onkeyup="searchGames()">
<div class="search-info" id="searchInfo">Loading games database...</div>
</div>
<div class="games-container" id="gamesContainer">
<div class="loading">Loading 17,065 games with download links...</div>
</div>
<footer>
<p><strong>PS4 Games Database</strong> | 17,065+ Games | 45,910+ Download Links</p>
<p>Sources: dlpsgame.com, romsfun.com, arabicps4games.github.io</p>
<p>Built with <a href="https://galaxy.ai/?via=start-building" target="_blank">Galaxy.ai</a></p>
</footer>
</div>
<div class="scroll-top" id="scrollTop" onclick="scrollToTop()">↑</div>
<script>
let allGames = [];
// Load games data
async function loadGames() {
try {
const response = await fetch('ps4_games_expanded.json');
allGames = await response.json();
displayGames(allGames);
document.getElementById('searchInfo').textContent = `Showing all ${allGames.length.toLocaleString()} games`;
} catch (error) {
document.getElementById('gamesContainer').innerHTML = '<div class="loading">Error loading games database. Please refresh the page.</div>';
console.error('Error loading games:', error);
}
}
function displayGames(games) {
const container = document.getElementById('gamesContainer');
container.innerHTML = '';
// Group by first letter
const grouped = {};
games.forEach(game => {
const firstChar = game.name[0].toUpperCase();
const letter = /[A-Z]/.test(firstChar) ? firstChar : '#';
if (!grouped[letter]) grouped[letter] = [];
grouped[letter].push(game);
});
// Sort letters
const letters = Object.keys(grouped).sort((a, b) => {
if (a === '#') return -1;
if (b === '#') return 1;
return a.localeCompare(b);
});
// Create sections
letters.forEach(letter => {
const section = document.createElement('div');
section.className = 'letter-section';
section.setAttribute('data-letter', letter);
const header = document.createElement('div');
header.className = 'letter-header';
header.textContent = letter;
section.appendChild(header);
grouped[letter].forEach(game => {
const gameDiv = document.createElement('div');
gameDiv.className = 'game-item';
const title = document.createElement('div');
title.className = 'game-title';
title.textContent = game.name;
gameDiv.appendChild(title);
const linksDiv = document.createElement('div');
linksDiv.className = 'download-links';
// Add Mediafire links
game.download_links.mediafire.forEach((link, index) => {
const btn = document.createElement('a');
btn.href = `redirect-optimized.html?url=${encodeURIComponent(link)}&game=${encodeURIComponent(game.name)}&host=mediafire`;
btn.className = 'download-btn btn-mediafire';
btn.textContent = `Mediafire ${index + 1}`;
btn.target = '_blank';
linksDiv.appendChild(btn);
});
// Add 1File links
game.download_links['1file'].forEach((link, index) => {
const btn = document.createElement('a');
btn.href = `redirect-optimized.html?url=${encodeURIComponent(link)}&game=${encodeURIComponent(game.name)}&host=1file`;
btn.className = 'download-btn btn-1file';
btn.textContent = `1File ${index + 1}`;
btn.target = '_blank';
linksDiv.appendChild(btn);
});
// Add other links
game.download_links.other.forEach((link, index) => {
const btn = document.createElement('a');
btn.href = `redirect-optimized.html?url=${encodeURIComponent(link)}&game=${encodeURIComponent(game.name)}&host=other`;
btn.className = 'download-btn btn-other';
btn.textContent = `Mirror ${index + 1}`;
btn.target = '_blank';
linksDiv.appendChild(btn);
});
// Add page link
const pageBtn = document.createElement('a');
pageBtn.href = game.page_url;
pageBtn.className = 'download-btn btn-page';
pageBtn.textContent = 'View Page';
pageBtn.target = '_blank';
linksDiv.appendChild(pageBtn);
gameDiv.appendChild(linksDiv);
const linkCount = document.createElement('div');
linkCount.className = 'link-count';
linkCount.textContent = `${game.total_links} download link${game.total_links !== 1 ? 's' : ''} available`;
gameDiv.appendChild(linkCount);
section.appendChild(gameDiv);
});
container.appendChild(section);
});
}
function searchGames() {
const input = document.getElementById('searchInput');
const filter = input.value.toUpperCase();
const sections = document.querySelectorAll('.letter-section');
const searchInfo = document.getElementById('searchInfo');
let visibleCount = 0;
sections.forEach(section => {
const games = section.querySelectorAll('.game-item');
let sectionHasVisible = false;
games.forEach(game => {
const text = game.textContent || game.innerText;
if (text.toUpperCase().indexOf(filter) > -1) {
game.style.display = '';
sectionHasVisible = true;
visibleCount++;
} else {
game.style.display = 'none';
}
});
section.style.display = sectionHasVisible ? '' : 'none';
});
if (filter) {
searchInfo.textContent = `Found ${visibleCount.toLocaleString()} game${visibleCount !== 1 ? 's' : ''} matching "${input.value}"`;
} else {
searchInfo.textContent = `Showing all ${allGames.length.toLocaleString()} games`;
}
}
// Scroll to top button
const scrollBtn = document.getElementById('scrollTop');
const gamesContainer = document.getElementById('gamesContainer');
gamesContainer.addEventListener('scroll', () => {
if (gamesContainer.scrollTop > 300) {
scrollBtn.classList.add('show');
} else {
scrollBtn.classList.remove('show');
}
});
function scrollToTop() {
gamesContainer.scrollTo({ top: 0, behavior: 'smooth' });
}
// Load games on page load
loadGames();
</script>
</body>
</html>