|
6 | 6 | <title>iOS Cracked Apps Repo</title> |
7 | 7 | <script src="https://cdn.tailwindcss.com"></script> |
8 | 8 | </head> |
9 | | -<body class="bg-gray-900 text-white flex flex-col items-center justify-center min-h-screen p-4"> |
| 9 | +<body class="bg-gray-900 text-white flex flex-col items-center min-h-screen p-6"> |
| 10 | + |
10 | 11 | <h1 class="text-3xl font-bold mb-4">iOS Cracked Apps Repo</h1> |
11 | | - <div class="flex space-x-4 mb-4"> |
| 12 | + |
| 13 | + <!-- GitHub badges --> |
| 14 | + <div class="flex space-x-4 mb-6"> |
12 | 15 | <img src="https://img.shields.io/github/stars/sudo-self/iOS-Cracked-Apps" alt="GitHub Stars Badge"> |
13 | 16 | <img src="https://img.shields.io/github/forks/sudo-self/iOS-Cracked-Apps" alt="GitHub Forks Badge"> |
14 | 17 | </div> |
15 | 18 |
|
16 | | - <div class="bg-gray-800 p-4 rounded-xl w-full max-w-2xl"> |
17 | | - <iframe |
18 | | - src="https://github.com/sudo-self/iOS-Cracked-Apps/tree/main" |
19 | | - class="w-full h-96 rounded-xl" |
20 | | - frameborder="0"> |
21 | | - </iframe> |
| 19 | + <!-- File list --> |
| 20 | + <div id="file-list" class="w-full max-w-2xl bg-gray-800 p-4 rounded-xl space-y-2"> |
| 21 | + <!-- Files will be injected here --> |
22 | 22 | </div> |
23 | 23 |
|
24 | 24 | <footer class="mt-6 text-sm text-gray-500">sudo-self/iOS-Cracked-Apps</footer> |
| 25 | + |
| 26 | + <script> |
| 27 | + // Automatically read current directory files |
| 28 | + fetch("./") |
| 29 | + .then(res => res.text()) |
| 30 | + .then(html => { |
| 31 | + const parser = new DOMParser(); |
| 32 | + const doc = parser.parseFromString(html, "text/html"); |
| 33 | + |
| 34 | + // Extract file links |
| 35 | + const items = [...doc.querySelectorAll("a")] |
| 36 | + .map(a => a.getAttribute("href")) |
| 37 | + .filter(f => f && f.endsWith(".ipa")); |
| 38 | + |
| 39 | + const listEl = document.getElementById("file-list"); |
| 40 | + |
| 41 | + items.forEach(file => { |
| 42 | + const div = document.createElement("div"); |
| 43 | + div.innerHTML = ` |
| 44 | + <a href="${file}" class="block bg-gray-700 hover:bg-gray-600 p-3 rounded-lg"> |
| 45 | + ${file} |
| 46 | + </a> |
| 47 | + `; |
| 48 | + listEl.appendChild(div); |
| 49 | + }); |
| 50 | + }); |
| 51 | + </script> |
| 52 | + |
25 | 53 | </body> |
26 | 54 | </html> |
27 | 55 |
|
| 56 | + |
0 commit comments