/
index.html
390 lines (380 loc) · 12.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Report Card</title>
<!-- BootCss -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.3/jspdf.debug.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js" defer></script>
<script type="text/javascript" src="script.js" defer></script>
</head>
<body>
<!-- 1st section -->
<section id="title">
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand brand-text" href="#">Report Carder</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#std_input_table">Get started</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#features">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contacts">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="row">
<div class="col-lg-6">
<h1>Generate report card immidietly.<br><br>PDF | PRINT</h1>
<a type="button" href="#std_input_table" class="btn btn-light btn-lg title-btn"><i class="material-icons title-icons">
create
</i> Create</a>
</div>
<div class="col-lg-6">
<img class="rc-img" src="rc.jpg" alt="Report Card Image">
</div>
</div>
</div>
<!-- title name and a picture and button -->
</section>
<section id="features">
<div class="row">
<div class="col-lg-4"><i class="material-icons icons">emoji_emotions</i>
<h3>Easy to use.</h3>
<p>So easy to use, just type.</p>
</div>
<div class="col-lg-4"><i class="material-icons icons">wifi_off</i>
<h3>Works in offline</h3>
<p>Once the site load, no need of internet.</p>
</div>
<div class="col-lg-4"><i class="material-icons icons">picture_as_pdf</i>
<h3>Download report as PDF</h3>
<p>Instant convert to pdf, you can print.</p>
</div>
</div>
</section>
<!-- Form Section -->
<table class="input-form" id="std_input_table" style="width: 100%;">
<colgroup>
<col span="1" style="width: 20%;">
<col span="1" style="width: auto;">
</colgroup>
<tr>
<th colspan="2" style="font-size: 25px;">INPUT DATA HERE</th>
</tr>
<tr>
<td>School</td>
<td><input type="text" name="" placeholder="School name" class="i-school"></td>
</tr>
<tr>
<td>Student Name</td>
<td><input type="text" name="" placeholder="Full name" class="i-name"></td>
</tr>
<tr>
<td>Roll No.</td>
<td><input type="text" name="" placeholder="Roll no" class="i-roll"></td>
</tr>
<tr>
<td>Class</td>
<td>
<select class="i-class">
<option value="I">Class 1</option>
<option value="II">Class 2</option>
<option value="III">Class 3</option>
<option value="IV">Class 4</option>
<option value="V">Class 5</option>
<option value="VI">Class 6</option>
<option value="VII">Class 7</option>
<option value="VIII">Class 8</option>
<option value="IX">Class 9</option>
<option value="X">Class 10</option>
<option value="XI">Class 11</option>
<option value="XII">Class 12</option>
</select>
</td>
</tr>
<tr>
<td>Gender</td>
<td>
<select class="i-gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Other">Other</option>
</select>
</td>
</tr>
<tr>
<td>Section</td>
<td><input type="text" name="" placeholder="Section" class="i-sec"></td>
</tr>
<tr>
<td>Father Name</td>
<td><input type="text" name="" placeholder="Father's name" class="i-father"></td>
</tr>
<tr>
<td>Mobile No.</td>
<td><input type="text" name="" placeholder="Mobile no" class="i-mob"></td>
</tr>
<tr>
<td>Physics Total</td>
<td><input type="number" name="" placeholder="Physics total" class="i-p-total"></td>
</tr>
<tr>
<td>Physics Secured</td>
<td><input type="number" value="0" name="" class="i-p-sec"></td>
</tr>
<tr>
<td>Chemistry Total</td>
<td><input type="number" name="" placeholder="Chemistry total" class="i-c-total"></td>
</tr>
<tr>
<td>Chemistry Secured</td>
<td><input type="number" value="0" name="" class="i-c-sec"></td>
</tr>
<tr>
<td>Math Total</td>
<td><input type="number" name="" placeholder="Math total" class="i-math-total"></td>
</tr>
<tr>
<td>Math Secured</td>
<td><input type="number" value="0" name="" class="i-math-sec"></td>
</tr>
<tr>
<td>Result</td>
<td>
<select class="i-res">
<option value="PASS">PASS</option>
<option value="FAIL">FAIL</option>
<option value="ABSENT">ABSENT</option>
</select>
</td>
</tr>
<tr>
<th><button style="color: red;width: 70%" onclick="reset_table();">RESET</button></th>
<th><input onclick="send_data_for_print()" type="submit" value="SUBMIT DATA" name=""></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<th>Download</th>
<td>
<button style="margin-right: 30px;padding: 5px;" onclick="GenerateCard()">PDF(C)</button>
<button style="margin-top: 10px; margin-right: 30px; padding: 5px;" onclick="GenerateCard_bw()">PDF(B&W)</button>
</td>
</tr>
<tr>
<th>Print</th>
<td>
<button style="padding: 5px;width: 40%;" onclick="print_report_card()">PRINT(C)</button>
<button style="padding: 5px;width: 40%;" onclick="print_report_card_bw()">PRINT(B/W)</button>
</td>
</tr>
</table>
<!-- Pdf generate section -->
<hr>
<h3 style="text-align: center;">TYPE: COLOUR</h3 style="text-align: center;">
<hr>
<div id="report-card-HTML">
<p class="school-title">TETRAHEDRON JUNIOR SCIENCE COLLEGE</p>
<center>
<table id="report-table">
<tr>
<th colspan="2">STUDENT DETAILS</th>
</tr>
<tr>
<th colspan="2"></th>
</tr>
<tr>
<th>NAME :</th>
<th id="p-name">Subhranshu Choudhury</th>
</tr>
<tr>
<td>Class :</td>
<td id="p-class">12</td>
</tr>
<tr>
<td>Roll No :</td>
<td id="p-roll">036AC2021</td>
</tr>
<tr>
<td>Section :</td>
<td id="p-section">IT-1</td>
</tr>
<tr>
<td>Gender: </td>
<td id="p-gender">Male</td>
</tr>
<tr>
<td>Father :</td>
<td id="p-father">Harapriya Choudhury</td>
</tr>
<tr>
<td>Mobile :</td>
<td id="p-mobile">8249587552</td>
</tr>
</table>
<table id="report-table">
<tr>
<th colspan="3">MARK DISTRIBUTION</th>
</tr>
<tr>
<th colspan="3"></th>
</tr>
<tr>
<th>SUBJECTS</th>
<th>TOTAL</th>
<th>SECURED</th>
</tr>
<tr>
<td>PHYSICS</td>
<td id="p-phy-total">100</td>
<td id="p-phy-mark">100</td>
</tr>
<tr>
<td>CHEMISTRY</td>
<td id="p-chem-total">100</td>
<td id="p-chem-mark">100</td>
</tr>
<tr>
<td>MATH</td>
<td id="p-math-total">100</td>
<td id="p-math-mark">100</td>
</tr>
<tr>
<th colspan="2">RESULT</th>
<td id="p-result">100</td>
</tr>
<tr>
<th colspan="2">TOTAL MARKS</th>
<td id="p-total-mark">300</td>
</tr>
<tr>
<th colspan="2">PERCENTAGE %</th>
<td id="p-percentage">100%</td>
</tr>
</table>
<h6 style="color: grey;">@made by <a href="https://peerlist.io/subhranshu">SSC</a></h6>
</center>
</div>
<hr>
<h3 style="text-align: center;">TYPE: B/W</h3>
<hr>
<!-- Pdf Black and White -->
<div class="table_bw-div">
<center>
<b style="font-size: 23px;" class="school-title_bw">TETRAHEDRON JUNIOR SCIENCE COLLEGE</b><br><p>REPORT CARD</p>
<table class="table_bw">
<tr>
<th colspan="2">STUDENT DETAILS</th>
</tr>
<tr>
<th colspan="2"></th>
</tr>
<tr>
<th>NAME :</th>
<th class="p-name">Subhranshu Choudhury</th>
</tr>
<tr>
<td>Class :</td>
<td class="p-class">12</td>
</tr>
<tr>
<td>Roll No :</td>
<td class="p-roll">036AC2021</td>
</tr>
<tr>
<td>Section :</td>
<td class="p-section">IT-1</td>
</tr>
<tr>
<td>Gender: </td>
<td class="p-gender">Male</td>
</tr>
<tr>
<td>Father :</td>
<td class="p-father">Harapriya Choudhury</td>
</tr>
<tr>
<td>Mobile :</td>
<td class="p-mobile">8249587552</td>
</tr>
</table>
<table class="table_bw">
<tr>
<th colspan="3">MARK DISTRIBUTION</th>
</tr>
<tr>
<th colspan="3"></th>
</tr>
<tr>
<th>SUBJECTS</th>
<th>TOTAL</th>
<th>SECURED</th>
</tr>
<tr>
<td>PHYSICS</td>
<td class="p-phy-total">100</td>
<td class="p-phy-mark">85</td>
</tr>
<tr>
<td>CHEMISTRY</td>
<td class="p-chem-total">100</td>
<td class="p-chem-mark">90</td>
</tr>
<tr>
<td>MATH</td>
<td class="p-math-total">100</td>
<td class="p-math-mark">78</td>
</tr>
<tr>
<th colspan="2">RESULT</th>
<td class="p-result">100</td>
</tr>
<tr>
<th colspan="2">TOTAL MARKS</th>
<td class="p-total-mark">300</td>
</tr>
<tr>
<th colspan="2">PERCENTAGE %</th>
<td class="p-percentage">100%</td>
</tr>
</table>
<h6 style="color: grey;">@made by <a href="https://peerlist.io/subhranshu">SSC</a></h6>
</center>
</div>
<hr><hr>
<center>
<div class="footer" id="contacts">
<a href="mailto:subhransuchoudhury00@gmail.com"><i class="material-icons">
email
</i></a>
<a href="https://github.com/subhranshuchoudhury"><i class="material-icons">
code
</i></a>
<a href="https://peerlist.io/subhranshu"><i class="material-icons">
account_circle
</i></a>
<br>
<p>@subhranshu choudhury, 918249587552</p>
</div>
</section>
</center>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>