Spaces:
Paused
Paused
Update public/docs.html
Browse files- public/docs.html +102 -56
public/docs.html
CHANGED
|
@@ -3,22 +3,10 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
| 8 |
<link rel="icon" type="image/png" href="favicon.png">
|
| 9 |
<style>
|
| 10 |
-
.hidden { display: none; }
|
| 11 |
-
.slide-in { animation: slide-in 0.5s forwards; }
|
| 12 |
-
.slide-out { animation: slide-out 0.5s forwards; }
|
| 13 |
-
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
|
| 14 |
-
@keyframes slide-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
|
| 15 |
-
.pop-up { animation: pop-up 0.3s forwards; }
|
| 16 |
-
@keyframes pop-up { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
|
| 17 |
-
.fade-in { animation: fade-in 0.5s forwards; }
|
| 18 |
-
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
| 19 |
-
.watermark { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); opacity: 0.3; font-size: 12px; color: black; }
|
| 20 |
-
.z-max { z-index: 1001; }
|
| 21 |
-
|
| 22 |
|
| 23 |
.background {
|
| 24 |
position: fixed;
|
|
@@ -26,73 +14,131 @@
|
|
| 26 |
left: 0;
|
| 27 |
width: 100%;
|
| 28 |
height: 100vh;
|
| 29 |
-
background: linear-gradient(135deg, #
|
| 30 |
overflow: hidden;
|
| 31 |
z-index: -1;
|
| 32 |
}
|
| 33 |
|
| 34 |
-
.
|
| 35 |
position: absolute;
|
| 36 |
-
top: 0;
|
| 37 |
-
left: 0;
|
| 38 |
width: 100%;
|
| 39 |
height: 100%;
|
| 40 |
-
overflow: hidden;
|
| 41 |
}
|
| 42 |
|
| 43 |
-
.
|
| 44 |
position: absolute;
|
| 45 |
display: block;
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
animation:
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
.
|
| 61 |
-
.
|
| 62 |
-
.
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
@keyframes
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
</style>
|
| 70 |
</head>
|
| 71 |
<body class="bg-gray-100 p-6">
|
|
|
|
| 72 |
<div class="background">
|
| 73 |
-
<
|
| 74 |
-
<li></li><li></li><li></li><li></li><li></li>
|
| 75 |
-
<li></li><li></li><li></li><li></li><li></li>
|
| 76 |
-
</ul>
|
| 77 |
</div>
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
<
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</div>
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
<p id="
|
| 91 |
-
<p id="
|
|
|
|
|
|
|
| 92 |
</div>
|
| 93 |
</div>
|
| 94 |
</div>
|
|
|
|
|
|
|
| 95 |
<div class="watermark">Dev: Jonell Hutchin Magallanes</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
<script src="script.js"></script>
|
|
|
|
| 97 |
</body>
|
| 98 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>CC API EXPLORER - Jonell Magallanes</title>
|
| 7 |
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
| 8 |
<link rel="icon" type="image/png" href="favicon.png">
|
| 9 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
.background {
|
| 12 |
position: fixed;
|
|
|
|
| 14 |
left: 0;
|
| 15 |
width: 100%;
|
| 16 |
height: 100vh;
|
| 17 |
+
background: linear-gradient(135deg, #3B82F6, #1E40AF);
|
| 18 |
overflow: hidden;
|
| 19 |
z-index: -1;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
.particles {
|
| 23 |
position: absolute;
|
|
|
|
|
|
|
| 24 |
width: 100%;
|
| 25 |
height: 100%;
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
+
.particles span {
|
| 29 |
position: absolute;
|
| 30 |
display: block;
|
| 31 |
+
width: 10px;
|
| 32 |
+
height: 10px;
|
| 33 |
+
background: rgba(255, 255, 255, 0.3);
|
| 34 |
+
border-radius: 50%;
|
| 35 |
+
animation: floatUp 12s linear infinite;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.particles span:nth-child(odd) {
|
| 39 |
+
animation-duration: 15s;
|
| 40 |
}
|
| 41 |
|
| 42 |
+
@keyframes floatUp {
|
| 43 |
+
0% { transform: translateY(100vh) scale(1); opacity: 1; }
|
| 44 |
+
100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
.hidden { display: none; }
|
| 49 |
+
.slide-in { animation: slide-in 0.4s forwards; }
|
| 50 |
+
.slide-out { animation: slide-out 0.4s forwards; }
|
| 51 |
+
|
| 52 |
+
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
|
| 53 |
+
@keyframes slide-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
|
| 54 |
+
|
| 55 |
+
.watermark {
|
| 56 |
+
position: fixed;
|
| 57 |
+
bottom: 10px;
|
| 58 |
+
left: 50%;
|
| 59 |
+
transform: translateX(-50%);
|
| 60 |
+
opacity: 0.4;
|
| 61 |
+
font-size: 12px;
|
| 62 |
+
color: white;
|
| 63 |
}
|
| 64 |
</style>
|
| 65 |
</head>
|
| 66 |
<body class="bg-gray-100 p-6">
|
| 67 |
+
|
| 68 |
<div class="background">
|
| 69 |
+
<div class="particles"></div>
|
|
|
|
|
|
|
|
|
|
| 70 |
</div>
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
<button id="toggle-button" onclick="toggleMenu()" class="fixed top-4 left-4 text-white bg-indigo-600 px-3 py-2 rounded-md shadow-lg z-50">☰</button>
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
<div id="menu" class="hidden fixed top-0 left-0 bg-white shadow-xl w-64 h-full p-6 overflow-y-auto z-50 slide-out">
|
| 77 |
+
<div class="flex justify-between items-center">
|
| 78 |
+
<h2 class="text-lg font-semibold text-indigo-600 uppercase">API Categories</h2>
|
| 79 |
+
<button onclick="toggleMenu()" class="text-gray-600 hover:text-red-500 text-xl">✖</button>
|
| 80 |
+
</div>
|
| 81 |
+
<div id="api-list" class="space-y-3 mt-4"></div>
|
| 82 |
</div>
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
<div class="flex flex-col items-center justify-center min-h-screen text-center relative z-10 fade-in">
|
| 86 |
+
<h1 class="text-4xl font-extrabold text-white shadow-md mb-4">Welcome to CC API Explorer</h1>
|
| 87 |
+
<div class="bg-white rounded-lg shadow-lg p-6 w-full max-w-md pop-up">
|
| 88 |
+
<div id="device-info" class="text-gray-700 text-sm mb-4">
|
| 89 |
+
<p id="user-agent">User Agent: <span>Loading...</span></p>
|
| 90 |
+
<p id="ip">IP Address: <span>Loading...</span></p>
|
| 91 |
+
<p id="current-time">Current Time: <span>Loading...</span></p>
|
| 92 |
+
<p id="request-count">Request Count: <span>Loading...</span></p>
|
| 93 |
</div>
|
| 94 |
</div>
|
| 95 |
</div>
|
| 96 |
+
|
| 97 |
+
|
| 98 |
<div class="watermark">Dev: Jonell Hutchin Magallanes</div>
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<script>
|
| 102 |
+
function toggleMenu() {
|
| 103 |
+
const menu = document.getElementById("menu");
|
| 104 |
+
const toggleButton = document.getElementById("toggle-button");
|
| 105 |
+
|
| 106 |
+
if (menu.classList.contains("hidden")) {
|
| 107 |
+
menu.classList.remove("hidden", "slide-out");
|
| 108 |
+
menu.classList.add("slide-in");
|
| 109 |
+
toggleButton.style.display = "none";
|
| 110 |
+
} else {
|
| 111 |
+
menu.classList.remove("slide-in");
|
| 112 |
+
menu.classList.add("slide-out");
|
| 113 |
+
setTimeout(() => {
|
| 114 |
+
menu.classList.add("hidden");
|
| 115 |
+
toggleButton.style.display = "block";
|
| 116 |
+
}, 400);
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
document.addEventListener("DOMContentLoaded", function() {
|
| 122 |
+
const particleContainer = document.querySelector(".particles");
|
| 123 |
+
for (let i = 0; i < 15; i++) {
|
| 124 |
+
let particle = document.createElement("span");
|
| 125 |
+
let size = Math.random() * 20 + 5;
|
| 126 |
+
let delay = Math.random() * 10;
|
| 127 |
+
let positionX = Math.random() * 100;
|
| 128 |
+
let duration = Math.random() * 10 + 8;
|
| 129 |
+
|
| 130 |
+
particle.style.width = `${size}px`;
|
| 131 |
+
particle.style.height = `${size}px`;
|
| 132 |
+
particle.style.left = `${positionX}%`;
|
| 133 |
+
particle.style.animationDelay = `${delay}s`;
|
| 134 |
+
particle.style.animationDuration = `${duration}s`;
|
| 135 |
+
|
| 136 |
+
particleContainer.appendChild(particle);
|
| 137 |
+
}
|
| 138 |
+
});
|
| 139 |
+
</script>
|
| 140 |
+
|
| 141 |
<script src="script.js"></script>
|
| 142 |
+
|
| 143 |
</body>
|
| 144 |
</html>
|