HenzHosting commited on
Commit
7df0fcf
Β·
verified Β·
1 Parent(s): 756afd5

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +134 -19
index.html CHANGED
@@ -1,19 +1,134 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html lang="en"><head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <title>Login to Premium</title>
5
+
6
+ <!-- Tailwind CSS -->
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+
9
+ <!-- Google Fonts -->
10
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
11
+
12
+ <style>
13
+ body {
14
+ font-family: 'Inter', sans-serif;
15
+ }
16
+
17
+ /* Moving text animation */
18
+ .moving-text {
19
+ font-weight: bold;
20
+ color: #ff4d4d; /* Thin red bold text */
21
+ white-space: nowrap;
22
+ position: relative;
23
+ display: inline-block;
24
+ animation: moveText 10s linear infinite, zoomText 2s ease-in-out infinite;
25
+ transform-origin: center center;
26
+ }
27
+
28
+ @keyframes moveText {
29
+ from { transform: translateX(100%); }
30
+ to { transform: translateX(-100%); }
31
+ }
32
+
33
+ @keyframes zoomText {
34
+ 0%, 100% { transform: scale(1); }
35
+ 50% { transform: scale(1.05); } /* Slight zoom to avoid cutting off */
36
+ }
37
+
38
+ /* Ensure container handles text overflow */
39
+ .text-container {
40
+ overflow: hidden;
41
+ width: 100%;
42
+ text-align: center; /* Center the text horizontally */
43
+ }
44
+ </style>
45
+ </head>
46
+ <body class="bg-gray-900 text-white flex flex-col items-center justify-center min-h-screen">
47
+
48
+ <div id="login-page" class="w-full max-w-md bg-gray-800 p-6 rounded-lg shadow-md">
49
+ <h2 class="text-3xl font-bold text-center mb-6">π—Ÿπ—’π—šπ—œπ—‘ 𝗧𝗒 𝗣π—₯π—˜π— π—œπ—¨π— </h2>
50
+
51
+ <form id="login-form" class="space-y-6">
52
+ <div class="form-group">
53
+ <label for="username" class="block font-medium mb-2">Username</label>
54
+ <input type="text" id="username" name="username" placeholder="Enter your username" required="" class="w-full px-4 py-2 bg-gray-700 rounded-md focus:ring-2 focus:ring-blue-500 focus:outline-none">
55
+ </div>
56
+
57
+ <div class="form-group">
58
+ <label for="pin" class="block font-medium mb-2">Pin</label>
59
+ <input type="text" id="pin" name="pin" placeholder="Enter your 4-digit pin" maxlength="4" required="" oninput="validatePin(this)" class="w-full px-4 py-2 bg-gray-700 rounded-md focus:ring-2 focus:ring-blue-500 focus:outline-none">
60
+ </div>
61
+
62
+ <!-- Replacing Click to Purchase Premium with moving text -->
63
+ <div class="text-container mb-4">
64
+ <span class="moving-text">Click Our LiveChat Button below and Purchase Username/Pin</span>
65
+ </div>
66
+
67
+ <button type="submit" class="w-full py-3 bg-blue-600 rounded-md text-white font-bold hover:bg-blue-700 transition focus:outline-none focus:ring-4 focus:ring-blue-500">
68
+ Login
69
+ </button>
70
+ </form>
71
+ </div>
72
+
73
+ <script>
74
+ const rawFileUrl = 'https://huggingface.co/HenzHosting/Database/raw/main/id.json';
75
+
76
+ // This function validates the pin to ensure it's a 4-digit number
77
+ function validatePin(input) {
78
+ input.value = input.value.replace(/[^0-9]/g, '').slice(0, 4);
79
+ }
80
+
81
+ // Function to handle the login action when the form is submitted
82
+ async function handleLogin(event) {
83
+ event.preventDefault(); // Prevent default form submission
84
+
85
+ const username = document.getElementById('username').value.trim();
86
+ const pin = document.getElementById('pin').value.trim();
87
+
88
+ if (!username || pin.length !== 4) {
89
+ alert('Invalid Input');
90
+ return;
91
+ }
92
+
93
+ try {
94
+ const response = await fetch(rawFileUrl);
95
+ if (!response.ok) {
96
+ alert('Error fetching data. Please try again later.');
97
+ return;
98
+ }
99
+
100
+ const approvedUsers = await response.json();
101
+ const userKey = `${username}-${pin}`; // Combine username and pin as the key
102
+
103
+ // Check if the username and PIN pair exists in the JSON data
104
+ const userExists = approvedUsers.includes(userKey);
105
+
106
+ if (userExists) {
107
+ // Redirect if the user exists
108
+ window.location.href = 'fb1-ban.html';
109
+ } else {
110
+ alert('Unable to Access ES TEAMS PREMIUM. Please check your credentials.');
111
+ }
112
+ } catch (error) {
113
+ console.error('Error processing login:', error);
114
+ alert('An error occurred. Please try again later.');
115
+ }
116
+ }
117
+
118
+ // Add event listener for form submission
119
+ document.getElementById('login-form').addEventListener('submit', handleLogin);
120
+ </script>
121
+
122
+ <!-- Begin of Chaport Live Chat code -->
123
+ <script type="text/javascript">
124
+ (function(w,d,v3){
125
+ w.chaportConfig = {
126
+ appId : '6512c90d8bbcce468960ab73'
127
+ };
128
+
129
+ if(w.chaport)return;v3=w.chaport={};v3._q=[];v3._l={};v3.q=function(){v3._q.push(arguments)};v3.on=function(e,fn){if(!v3._l[e])v3._l[e]=[];v3._l[e].push(fn)};var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://app.chaport.com/javascripts/insert.js';var ss=d.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s,ss)})(window, document);
130
+ </script>
131
+ <!-- End of Chaport Live Chat code -->
132
+
133
+
134
+ </body></html>