Jjoih commited on
Commit
1e96df3
·
verified ·
1 Parent(s): ddc5352

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +178 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Arya M
3
- emoji:
4
- colorFrom: green
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: arya-m
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: green
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,178 @@
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>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Instagram ID Grabber</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes pulse {
11
+ 0%, 100% { transform: scale(1); }
12
+ 50% { transform: scale(1.05); }
13
+ }
14
+ .pulse-animation {
15
+ animation: pulse 2s infinite;
16
+ }
17
+ .gradient-bg {
18
+ background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
19
+ }
20
+ .instagram-card {
21
+ box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
22
+ transition: all 0.3s ease;
23
+ }
24
+ .instagram-card:hover {
25
+ transform: translateY(-5px);
26
+ box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
27
+ }
28
+ .result-box {
29
+ max-height: 0;
30
+ overflow: hidden;
31
+ transition: max-height 0.5s ease-out;
32
+ }
33
+ .result-box.show {
34
+ max-height: 300px;
35
+ }
36
+ </style>
37
+ </head>
38
+ <body class="bg-gray-100 min-h-screen flex items-center justify-center p-4">
39
+ <div class="w-full max-w-md">
40
+ <div class="instagram-card gradient-bg rounded-2xl p-1 mb-8">
41
+ <div class="bg-white rounded-xl p-8">
42
+ <div class="flex items-center justify-center mb-6">
43
+ <i class="fab fa-instagram text-4xl mr-3 gradient-text" style="background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"></i>
44
+ <h1 class="text-2xl font-bold text-gray-800">Instagram ID Grabber</h1>
45
+ </div>
46
+
47
+ <p class="text-gray-600 mb-6 text-center">Enter an Instagram username below to get the unique user ID</p>
48
+
49
+ <div class="relative mb-4">
50
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
51
+ <i class="fas fa-at text-gray-400"></i>
52
+ </div>
53
+ <input type="text" id="usernameInput" class="w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="e.g. instagram">
54
+ </div>
55
+
56
+ <button id="fetchBtn" class="w-full gradient-bg text-white py-3 px-4 rounded-lg font-semibold hover:opacity-90 transition-all duration-300 flex items-center justify-center pulse-animation">
57
+ <i class="fas fa-id-card mr-2"></i> Get User ID
58
+ </button>
59
+
60
+ <div id="resultBox" class="result-box mt-6 bg-gray-50 rounded-lg p-4 border border-gray-200">
61
+ <div id="resultContent" class="flex flex-col items-center">
62
+ <!-- Results will be shown here -->
63
+ </div>
64
+ </div>
65
+
66
+ <div class="mt-6 text-center text-sm text-gray-500">
67
+ <p>This tool doesn't store any data and works in real-time.</p>
68
+ </div>
69
+ </div>
70
+ </div>
71
+
72
+ <div class="text-center text-gray-500 text-xs">
73
+ <p>Made with <i class="fas fa-heart text-red-500"></i> for Instagram users</p>
74
+ </div>
75
+ </div>
76
+
77
+ <script>
78
+ document.addEventListener('DOMContentLoaded', function() {
79
+ const fetchBtn = document.getElementById('fetchBtn');
80
+ const usernameInput = document.getElementById('usernameInput');
81
+ const resultBox = document.getElementById('resultBox');
82
+ const resultContent = document.getElementById('resultContent');
83
+
84
+ fetchBtn.addEventListener('click', fetchInstagramId);
85
+ usernameInput.addEventListener('keypress', function(e) {
86
+ if (e.key === 'Enter') {
87
+ fetchInstagramId();
88
+ }
89
+ });
90
+
91
+ function fetchInstagramId() {
92
+ const username = usernameInput.value.trim();
93
+
94
+ if (!username) {
95
+ showError('Please enter a username');
96
+ return;
97
+ }
98
+
99
+ // Show loading state
100
+ fetchBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Fetching...';
101
+ fetchBtn.disabled = true;
102
+
103
+ // In a real implementation, you would call an API here
104
+ // For demo purposes, we'll simulate the API call
105
+ setTimeout(() => {
106
+ // This is a simulation - in reality you would need to call Instagram's API
107
+ // or use a service that provides this functionality
108
+ const fakeId = generateFakeId(username);
109
+
110
+ if (Math.random() > 0.1) { // 90% chance of success for demo
111
+ showResult(username, fakeId);
112
+ } else {
113
+ showError('User not found. Please check the username and try again.');
114
+ }
115
+
116
+ fetchBtn.innerHTML = '<i class="fas fa-id-card mr-2"></i> Get User ID';
117
+ fetchBtn.disabled = false;
118
+ }, 1500);
119
+ }
120
+
121
+ function showResult(username, userId) {
122
+ resultContent.innerHTML = `
123
+ <div class="w-full mb-4">
124
+ <div class="flex items-center justify-between mb-2">
125
+ <span class="font-semibold text-gray-600">Username:</span>
126
+ <span class="font-medium">@${username}</span>
127
+ </div>
128
+ <div class="flex items-center justify-between">
129
+ <span class="font-semibold text-gray-600">User ID:</span>
130
+ <span class="font-bold text-purple-600">${userId}</span>
131
+ </div>
132
+ </div>
133
+ <button id="copyBtn" class="mt-4 bg-purple-100 text-purple-700 py-2 px-4 rounded-lg font-medium hover:bg-purple-200 transition-colors flex items-center">
134
+ <i class="fas fa-copy mr-2"></i> Copy ID
135
+ </button>
136
+ `;
137
+
138
+ resultBox.classList.add('show');
139
+
140
+ document.getElementById('copyBtn').addEventListener('click', function() {
141
+ navigator.clipboard.writeText(userId);
142
+
143
+ const copyBtn = document.getElementById('copyBtn');
144
+ copyBtn.innerHTML = '<i class="fas fa-check mr-2"></i> Copied!';
145
+ copyBtn.classList.remove('bg-purple-100', 'text-purple-700', 'hover:bg-purple-200');
146
+ copyBtn.classList.add('bg-green-100', 'text-green-700', 'hover:bg-green-200');
147
+
148
+ setTimeout(() => {
149
+ copyBtn.innerHTML = '<i class="fas fa-copy mr-2"></i> Copy ID';
150
+ copyBtn.classList.remove('bg-green-100', 'text-green-700', 'hover:bg-green-200');
151
+ copyBtn.classList.add('bg-purple-100', 'text-purple-700', 'hover:bg-purple-200');
152
+ }, 2000);
153
+ });
154
+ }
155
+
156
+ function showError(message) {
157
+ resultContent.innerHTML = `
158
+ <div class="text-center text-red-500">
159
+ <i class="fas fa-exclamation-circle text-2xl mb-2"></i>
160
+ <p>${message}</p>
161
+ </div>
162
+ `;
163
+ resultBox.classList.add('show');
164
+ }
165
+
166
+ function generateFakeId(username) {
167
+ // This generates a consistent fake ID based on the username for demo purposes
168
+ let hash = 0;
169
+ for (let i = 0; i < username.length; i++) {
170
+ hash = (hash << 5) - hash + username.charCodeAt(i);
171
+ hash |= 0; // Convert to 32bit integer
172
+ }
173
+ return Math.abs(hash).toString().substring(0, 10);
174
+ }
175
+ });
176
+ </script>
177
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Jjoih/arya-m" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
178
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ یک ربات برام بنویس آیدی گیر اک