godhosting commited on
Commit
c1e6be7
·
verified ·
1 Parent(s): 922acc0

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +282 -55
index.html CHANGED
@@ -1,57 +1,284 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Gradio-Lite: Serverless Gradio Running Entirely in Your Browser</title>
7
- <meta name="description" content="Gradio-Lite: Serverless Gradio Running Entirely in Your Browser">
8
-
9
- <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js"></script>
10
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css" />
11
-
12
- <style>
13
- html, body {
14
- margin: 0;
15
- padding: 0;
16
- height: 100%;
17
- }
18
- </style>
19
- </head>
20
- <body>
21
- <gradio-lite>
22
- <gradio-file name="app.py" entrypoint>
23
- import gradio as gr
24
-
25
- from filters import as_gray
26
-
27
- def process(input_image):
28
- output_image = as_gray(input_image)
29
- return output_image
30
-
31
- demo = gr.Interface(
32
- process,
33
- "image",
34
- "image",
35
- examples=["lion.jpg", "logo.png"],
36
- )
37
-
38
- demo.launch()
39
- </gradio-file>
40
-
41
- <gradio-file name="filters.py">
42
- from skimage.color import rgb2gray
43
-
44
- def as_gray(image):
45
- return rgb2gray(image)
46
- </gradio-file>
47
-
48
- <gradio-file name="lion.jpg" url="https://raw.githubusercontent.com/gradio-app/gradio/main/gradio/test_data/lion.jpg" />
49
- <gradio-file name="logo.png" url="https://raw.githubusercontent.com/gradio-app/gradio/main/guides/assets/logo.png" />
50
-
51
- <gradio-requirements>
52
- # Same syntax as requirements.txt
53
- scikit-image
54
- </gradio-requirements>
55
- </gradio-lite>
56
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="hi">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Professional Aadhaar PDF Generation Tool - High Resolution & Secure">
7
+ <title>Aadhaar PDF Pro | Standalone Web App</title>
8
+ <!-- Add premium styles -->
9
+ <link rel="manifest" href="manifest.json">
10
+ <meta name="theme-color" content="#2d3436">
11
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
12
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📄</text></svg>">
13
+ <link rel="stylesheet" href="assets/css/flatpickr.min.css">
14
+ <link rel="stylesheet" href="assets/css/material_green.css">
15
+ <link rel="stylesheet" href="style.css?v=3">
16
+ <link rel="stylesheet" href="light-theme.css?v=3">
17
+ <link rel="stylesheet" href="dark-theme.css?v=3">
18
+
19
+ <!-- Base64 data file -->
20
+ <script src="base64-data.js"></script>
21
+ <!-- html2canvas for high-res rasterization -->
22
+ <script src="html2canvas.min.js?v=2"></script>
23
+ <!-- jsPDF for proper font-embedded PDF generation -->
24
+ <script src="jspdf.umd.min.js?v=2"></script>
25
+ <!-- PDF Generator (replaces window.print with jsPDF) -->
26
+ <script src="pdf-generator.js?v=2"></script>
27
+ <!-- Aadhaar History Database -->
28
+ <script src="db.js?v=2"></script>
29
+ <!-- All scripts bundled into one file -->
30
+ <script src="bundle.js?v=2"></script>
31
+ </head>
32
+ <body>
33
+
34
+ <header class="main-header no-print">
35
+ <div class="header-content">
36
+ <div class="logo">
37
+ <span class="logo-icon">📄</span>
38
+ <h1>Aadhaar Pro</h1>
39
+ </div>
40
+ <button type="button" id="mobile-menu-toggle" class="mobile-nav-toggle" aria-label="Toggle Navigation">
41
+ <span class="hamburger-line"></span>
42
+ <span class="hamburger-line"></span>
43
+ <span class="hamburger-line"></span>
44
+ </button>
45
+ <div class="header-right">
46
+ <nav class="main-nav" id="main-nav">
47
+ <a href="index.html" class="nav-btn active">
48
+ <span class="icon">✨</span> Generate Aadhaar
49
+ </a>
50
+ <a href="download.html" class="nav-btn">
51
+ <span class="icon">📥</span> Download Aadhaar
52
+ </a>
53
+ <button type="button" id="btn-show-history" class="nav-btn">
54
+ <span class="icon">📜</span> History
55
+ </button>
56
+ </nav>
57
+ <div class="header-actions">
58
+ <div class="theme-toggle-container">
59
+ <button type="button" id="theme-toggle" class="theme-toggle-btn" title="Toggle Theme">
60
+ <span class="theme-icon sun-icon">☀️</span>
61
+ <span class="theme-icon moon-icon">🌙</span>
62
+ </button>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </header>
68
+
69
+ <div class="app-container">
70
+ <!-- UI Form Sidebar (Hidden during print) -->
71
+ <aside class="sidebar-form no-print">
72
+ <div class="sidebar-header">
73
+ <h2>Aadhaar Details</h2>
74
+ <p class="sidebar-subtitle">Fill in the information below</p>
75
+ </div>
76
+ <form id="aadhaar-form">
77
+ <div class="form-row" style="align-items: center; margin-bottom: 20px;">
78
+ <div class="form-group" style="flex: 1;">
79
+ <label>Photo</label>
80
+ <input type="file" id="in-photo" accept="image/*">
81
+ </div>
82
+ <div class="photo-preview-container" style="margin-left: 20px;">
83
+ <img id="form-photo-preview" src="" data-base64-src="photo_base64.txt" alt="Preview">
84
+ </div>
85
+ </div>
86
+
87
+ <div class="form-row">
88
+ <div class="form-group">
89
+ <label>Name (English / Hindi)</label>
90
+ <div style="display:flex; gap:10px;">
91
+ <input type="text" id="in-name-en" placeholder="Name" value="" style="width:50%">
92
+ <input type="text" id="in-name-hi" placeholder="नाम" value="" style="width:50%">
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <div class="form-row">
98
+ <div class="form-group">
99
+ <label>DOB (DD/MM/YYYY)</label>
100
+ <input type="text" id="in-dob" class="date-picker" value="09/08/2007" placeholder="Select Date">
101
+ </div>
102
+ <div class="form-group">
103
+ <label>Gender</label>
104
+ <div style="display:flex; gap:15px; margin-top:10px; align-items: center;">
105
+ <label style="display:flex; align-items:center; gap:5px; font-weight:normal; margin:0; cursor:pointer;">
106
+ <input type="radio" name="in-gender" value="M" checked style="width:auto; margin:0;"> Male
107
+ </label>
108
+ <label style="display:flex; align-items:center; gap:5px; font-weight:normal; margin:0; cursor:pointer;">
109
+ <input type="radio" name="in-gender" value="F" style="width:auto; margin:0;"> Female
110
+ </label>
111
+ </div>
112
+ </div>
113
+ </div>
114
+
115
+ <div class="form-group">
116
+ <label>Aadhaar Number</label>
117
+ <input type="text" id="in-aadhaar" placeholder="Aadhaar Number" value="" maxlength="14">
118
+ </div>
119
+
120
+ <h3 style="font-size:14px; margin-top:15px; border-bottom:1px solid #ddd; padding-bottom:5px;">Address Details</h3>
121
+
122
+ <div class="form-row">
123
+ <div class="form-group">
124
+ <label>Father Name (En / Hi)</label>
125
+ <div style="display:flex; gap:10px;">
126
+ <input type="text" id="in-father-en" placeholder="Father Name" value="" style="width:50%">
127
+ <input type="text" id="in-father-hi" placeholder="पिता का नाम" value="" style="width:50%">
128
+ </div>
129
+ </div>
130
+ </div>
131
+
132
+ <div class="form-row">
133
+ <div class="form-group">
134
+ <label>House No. / Building (En / Hi)</label>
135
+ <div style="display:flex; gap:10px;">
136
+ <input type="text" id="in-house-en" placeholder="House Number" value="" style="width:50%">
137
+ <input type="text" id="in-house-hi" placeholder="घर नंबर" value="" style="width:50%">
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="form-row">
143
+ <div class="form-group">
144
+ <label>Village (En / Hi)</label>
145
+ <div style="display:flex; gap:10px;">
146
+ <input type="text" id="in-village-en" placeholder="Village Name" value="" style="width:50%">
147
+ <input type="text" id="in-village-hi" placeholder="गांव का नाम" value="" style="width:50%">
148
+ </div>
149
+ </div>
150
+ </div>
151
+
152
+ <div class="form-row">
153
+ <div class="form-group">
154
+ <label>Post (En / Hi)</label>
155
+ <div style="display:flex; gap:10px;">
156
+ <input type="text" id="in-post-en" placeholder="Post Name" value="" style="width:50%">
157
+ <input type="text" id="in-post-hi" placeholder="पोस्ट का नाम" value="" style="width:50%">
158
+ </div>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="form-row">
163
+ <div class="form-group">
164
+ <label>PIN Code</label>
165
+ <input type="text" id="in-pin" placeholder="PIN Code / पिन कोड" value="" maxlength="6" inputmode="numeric">
166
+ </div>
167
+ </div>
168
+
169
+ <div class="form-row">
170
+ <div class="form-group">
171
+ <label>District (En / Hi)</label>
172
+ <div style="display:flex; gap:10px;">
173
+ <input type="text" id="in-district-en" placeholder="District Name" value="" style="width:50%">
174
+ <input type="text" id="in-district-hi" placeholder="जिला का नाम" value="" style="width:50%">
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+ <div class="form-row">
180
+ <div class="form-group">
181
+ <label>State (En / Hi)</label>
182
+ <div style="display:flex; gap:10px;">
183
+ <input type="text" id="in-state-en" placeholder="State Name" value="" style="width:50%">
184
+ <input type="text" id="in-state-hi" placeholder="राज्य का नाम" value="" style="width:50%">
185
+ </div>
186
+ </div>
187
+ </div>
188
+
189
+ <div class="form-row">
190
+ <div class="form-group">
191
+ <label>Issue Date</label>
192
+ <input type="text" id="in-issue-date" class="date-picker" value="25/03/2016" placeholder="Select Date">
193
+ </div>
194
+ <div class="form-group">
195
+ <label>Download Date</label>
196
+ <input type="text" id="in-download-date" class="date-picker" value="14/11/2025" placeholder="Select Date">
197
+ </div>
198
+ </div>
199
+
200
+ <button type="button" class="btn-print" id="btn-print-aadhaar">Print Aadhaar</button>
201
+ </form>
202
+ </aside>
203
+
204
+ <main class="preview-area">
205
+ <div class="workspace" id="workspace" style="transform-origin: top center; transform: scale(0.85); box-shadow: 0 4px 15px rgba(0,0,0,0.2);">
206
+ <!-- Blank Background -->
207
+ <div class="bg-layer"></div>
208
+
209
+ <!-- Reference Overlay for Alignment (50% opacity) -->
210
+ <div class="ref-layer"></div>
211
+
212
+ <!-- Fixed Text Elements -->
213
+
214
+ <!-- Enrollment Section -->
215
+ <div class="inrol-section">
216
+ <div class="text-element enrolment-no" id="out-enrolment-no"></div>
217
+ <p class="inroltext" id="out-inroltext">
218
+
219
+ </div>
220
+ <div class="signature-section">
221
+ <div class="signature">Signature Not Verified</div>
222
+ <div class="signature-text">Digitally signed by DS Unique
223
+ Identification Authority of India<br>
224
+ 05<br>
225
+ Date: <span id="out-signature-date"></span><br>
226
+ IST
227
+ </div>
228
+ </div>
229
+ <div class="qr-code ">
230
+ <img class="qr-code-image" id="out-qrcode1" src="" alt="QR Code">
231
+ <img class="qr-code-image-2" id="out-qrcode2" src="" alt="Qr-Code">
232
+ </div>
233
+
234
+ <div class="text-element aadhar-no-top" id="out-aadhaar-1"></div>
235
+
236
+ <!-- Left Panel (Photo & Details) -->
237
+ <div class="left-panel">
238
+ <p class="inrol-date" id="out-inrol-date"></p>
239
+ <img class="fixed-image" id="out-photo" src="" data-base64-src="photo_base64.txt" alt="Aadhaar Image">
240
+
241
+ <!-- Name & Details Section -->
242
+ <div class="name-section">
243
+ <!-- Hindi Name -->
244
+ <div class="text-element hindi-name" id="out-name-hi"></div>
245
+ <!-- English Name -->
246
+ <div class="text-element english-name" id="out-name-en"></div>
247
+ <div class="text-element dob-text">जन्म तिथि/ DOB: <span id="out-dob"></span></div>
248
+ <div class="text-element gender-text"><span id="out-gender-hi"></span>/ <span id="out-gender-en"></span></div>
249
+ </div>
250
+
251
+ <div class="text-element aadhar-no-middle" id="out-aadhaar-2"></div>
252
+ </div>
253
+
254
+ <!-- Right Panel (Address Section) -->
255
+ <div class="address-section ">
256
+ <p class="download-date" id="out-download-date"></p>
257
+ <div class="text-element address-hi-label">पता:</div>
258
+ <div class="text-element address-hi-text" id="out-address-hi"></div>
259
+
260
+ <div class="text-element address-en-label">Address:</div>
261
+ <div class="text-element address-en-text" id="out-address-en"></div>
262
+
263
+ <!-- Second instance of Aadhaar Number -->
264
+ <div class="text-element aadhar-no-bottom" id="out-aadhaar-3"></div>
265
+ </div>
266
+ </main>
267
+ </div>
268
+
269
+
270
+ <!-- History Modal -->
271
+ <div id="history-modal" class="popup-overlay" style="display: none;">
272
+ <div class="history-popup-content">
273
+ <div class="history-modal-header">
274
+ <h3>📜 Aadhaar History</h3>
275
+ <button id="close-history-btn" class="close-modal-btn">&times;</button>
276
+ </div>
277
+ <div id="history-list">
278
+ <!-- History items will be injected here -->
279
+ </div>
280
+ </div>
281
+ </div>
282
+
283
+ </body>
284
  </html>