-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent mangement code.html
More file actions
784 lines (655 loc) · 23.6 KB
/
Event mangement code.html
File metadata and controls
784 lines (655 loc) · 23.6 KB
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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 300px;
text-align: center;
}
input {
width: 100%;
margin-bottom: 10px;
padding: 10px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #4caf50;
color: #fff;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
.register-link {
margin-top: 10px;
display: block;
color: #4caf50;
text-decoration: none;
}
</style>
</head>
<body>
<form id="loginForm">
<h2>Login</h2>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="loginPassword">Password:</label>
<input type="password" id="loginPassword" name="loginPassword" required>
<button type="button" onclick="login()">Login</button>
<a href="#" class="register-link" onclick="showRegisterForm()">Register</a>
</form>
<form id="registerForm" style="display:none;">
<h2>Register</h2>
<label for="Name">Name:</label>
<input type="text" id="Name" name="Name" required>
<label for="Email">Email:</label>
<input type="text" id="Email" name="Email" required>
<label for="mobileNumber">Mobile Number:</label>
<input type="tel" id="mobileNumber" name="mobileNumber" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<label for="confirmPassword">Confirm Password:</label>
<input type="password" id="confirmPassword" name="confirmPassword" required>
<button type="button" onclick="register()">Register</button>
<a href="#" class="register-link" onclick="showLoginForm()">Back to Login</a>
</form>
<script>
function showRegisterForm() {
document.getElementById('loginForm').style.display = 'none';
document.getElementById('registerForm').style.display = 'block';
}
function showLoginForm() {
document.getElementById('registerForm').style.display = 'none';
document.getElementById('loginForm').style.display = 'block';
}
function register() {
var email = document.getElementById('Email').value;
var name = document.getElementById('Name').value;
var password = document.getElementById('password').value;
var confirmPassword = document.getElementById('confirmPassword').value;
var mobileNumber = document.getElementById('mobileNumber').value;
// Add your registration logic here (e.g., send data to server)
// For demonstration purposes, redirect to a hypothetical dashboard.html page
window.location.href = 'dashboard.html';
}
function login() {
var username = document.getElementById('username').value;
var loginPassword = document.getElementById('loginPassword').value;
// Add your login logic here (e.g., send data to server)
// For demonstration purposes, redirect to a hypothetical dashboard.html page
window.location.href = 'home.html';s
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Home Page</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: url('C:\\Users\\harsh\\OneDrive\\Documents\\Pictures\\f7613c49aff1202163cb2cde3ec49a35.jpg') center/cover no-repeat;
overflow: hidden;
height: 100vh;
display: flex;
align-items: flex-start;
justify-content: center;
color: #fff;
position: relative;
}
.blur {
position: absolute;
width: 100%;
height: 100%;
background: inherit;
filter: blur(10px);
}
.content {
text-align: center;
z-index: 1;
margin-top: 20vh;
}
h1 {
font-size: 5em;
margin-bottom: 0.5em;
font-style: italic;
}
p {
font-size: 1.2em;
}
label {
text-transform: uppercase;
font-size: 1.2em;
margin-top: 1em;
display: block;
}
select {
padding: 10px;
font-size: 1em;
margin-top: 0.5em;
}
#eventSection,
#registrationForm {
display: none;
margin-top: 20px;
}
#registrationForm h2 {
font-size: 2em;
margin-bottom: 0.5em;
}
#registrationForm form {
text-align: left;
max-width: 400px;
margin: 0 auto;
}
#registrationForm label {
display: block;
margin-bottom: 0.5em;
}
#registrationForm input {
width: 100%;
padding: 8px;
margin-bottom: 1em;
}
#registrationForm input[type="submit"] {
background-color: #4CAF50;
color: white;
cursor: pointer;
}
footer {
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
}
button {
padding: 10px;
font-size: 1em;
background-color: #f44336;
color: white;
cursor: pointer;
margin-right: 10px;
}
#aboutSection {
display: none;
margin-top: 20px;
color: #fff; /* Set the text color to white */
z-index: 2;
}
#aboutSection button {
padding: 10px;
font-size: 1em;
background-color: #2196F3;
color: white;
cursor: pointer;
margin-right: 10px;
}
#blurOverlay {
display: none;
}
#backButton {
padding: 10px;
font-size: 1em;
background-color: #2196F3;
color: white;
cursor: pointer;
margin-right: 10px;
display: none;
}
</style>
</head>
<body>
<div class="blur"></div>
<div class="content">
<h1>EVENT MANAGEMENT</h1>
<select id="Department" name="Department" onchange="handleDepartmentChange(this.value)">
<option value="default">Select Department</option>
<option value="AIML">AIML</option>
<option value="CSE">CSE</option>
<option value="CS">CS</option>
<option value="DS">DS</option>
<option value="IOT">IOT</option>
<option value="IT">IT</option>
</select>
</div>
<div id="eventSection">
<!-- Your existing input fields and forms for event details go here -->
<label for="eventName">Event Name:</label>
<input type="text" id="eventName" name="eventName">
<label for="eventDate">Event Date:</label>
<input type="date" id="eventDate" name="eventDate">
</div>
<div id="registrationForm">
<h2>Registration Form</h2>
<form>
<!-- Your existing registration form fields go here -->
<label for="fullName">Full Name:</label>
<input type="text" id="fullName" name="fullName">
<label for="email">Email:</label>
<input type="email" id="email" name="email">
<input type="submit" value="Submit">
</form>
</div>
<footer>
<button onclick="logout()">Logout</button>
<button onclick="showAbout()">About</button>
<button id="backButton" onclick="goBack()">Back</button>
</footer>
<div id="aboutSection">
<h2>About Event Management App</h2>
<p id="aboutContent">Click the "About" button to load data.</p>
<button onclick="goBack()">Back</button>
</div>
<div id="blurOverlay" class="blur"></div>
<script>
function logout() {
alert('Logout logic goes here');
}
function showAbout() {
var aboutSection = document.getElementById("aboutSection");
var aboutContent = document.getElementById("aboutContent");
var blurOverlay = document.getElementById("blurOverlay");
var backButton = document.getElementById("backButton");
var aboutData = "Since every student and professor has been a part of an event here at the university, they would know the chaotic environment that is created when the information about the event is first shared. Then this single message has to be shared by the coordinator to every individual Whatsapp group, which is not only a hassle but also a genuine discomfort for some people.\n\nAfter the information is shared, a Google form for registration and another Google form for fee payment is typically shared. If auditions are conducted for a particular event, the list of selected participants is shared and needs to be updated when a person is missed out. A new Whatsapp group has to be created for this new list of people. The thought itself of reading this entire passage seems very chaotic, and imagining it is even worse. When it actually comes to a real-life scenario, it is that bad.\n\nTherefore, our group has come up with an idea to create an app to reduce the chaos that is born whenever an event is hosted and create a clear flow of events without any hassle. Our app, 'ACARA,' is designed to act like a hub for every event information that is conducted in the university for all branches, years, and irrespective of student or professor.\n\n- The initial event announcement can be shared.\n- The sub-events that are being conducted can be shared.";
aboutContent.innerHTML = aboutData;
if (!blurOverlay) {
blurOverlay = document.createElement("div");
blurOverlay.id = "blurOverlay";
blurOverlay.className = "blur";
document.body.appendChild(blurOverlay);
}
aboutSection.style.display = "block";
blurOverlay.style.display = "block";
backButton.style.display = "inline";
}
function goBack() {
var aboutSection = document.getElementById("aboutSection");
var blurOverlay = document.getElementById("blurOverlay");
var backButton = document.getElementById("backButton");
aboutSection.style.display = "none";
blurOverlay.style.display = "none";
backButton.style.display = "none";
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PANORAMA - AIML Department</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: url('file:///C:/Users/harsh/OneDrive/Documents/Pictures/concert-8d45.jpg') center/cover fixed no-repeat;
height: 100vh;
overflow: hidden;
}
header {
background-color: rgba(51, 51, 51, 0.8);
color: #fff;
text-align: center;
padding: 10px;
text-transform: uppercase;
}
.content {
width: 400px;
margin: 50px auto;
background-color: rgba(240, 240, 240, 0.8);
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #fff;
display: inline-block;
}
.button-container {
text-align: center;
margin-top: 20px;
}
.button {
display: inline-block;
padding: 10px 20px;
margin: 5px;
background-color: rgba(51, 51, 51, 0.8);
color: #fff;
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;
}
footer {
background-color: rgba(51, 51, 51, 0.8);
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<p>AIML Department welcomes you</p>
<h1>PANORAMA</h1>
</header>
<div class="content">
<div class="button-container">
<button class="button">QUIZ</button>
<button class="button">DANCE</button>
<button class="button">SPORTS</button>
<button class="button">HACKATHON</button>
</div>
</div>
<footer>
<button class="button">Back</button>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event Registration</title>
<style>
body {
font-family: Arial, sans-serif;
background-image: url('C:\\Users\\harsh\\OneDrive\\Documents\\Pictures\\363514014_1323190098552320_3551131537919886709_n.jpg');
background-size: cover;
background-position: center;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
header {
color: #fff;
font-size: 36px;
font-family: 'Helvetica', sans-serif;
margin-bottom: 20px;
}
form {
background-color: rgba(255, 255, 255, 0.6);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 300px;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
}
input {
width: 100%;
padding: 8px;
margin-bottom: 12px;
box-sizing: border-box;
}
button {
background-color: #4caf50;
color: #fff;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
.chatbot-button {
background-color: #3498db;
color: #fff;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
footer {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
footer button {
background-color: #555;
}
footer button:hover {
background-color: #777;
}
</style>
</head>
<body>
<header>
REGISTER FOR HACKATHON
</header>
<form action="#" method="post">
<label for="fullName">Full Name:</label>
<input type="text" id="fullName" name="fullName" required>
<label for="rollNumber">Roll Number:</label>
<input type="text" id="rollNumber" name="rollNumber" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
<label for="eventRole">Select your role in the event:</label>
<select id="eventRole" name="eventRole" required>
<option value="participant">Participant</option>
<option value="speaker">Speaker</option>
<option value="volunteer">Volunteer</option>
</select>
<button type="submit">Register</button>
</form>
<button class="chatbot-button" onclick="openChatbot()">Open Chatbot</button>
<footer>
<button onclick="goBack()">Back</button>
</footer>
<script>
function goBack() {
window.history.back();
}
function openChatbot() {
var chatbotWindow = window.open('', 'ChatbotWindow', 'width=400,height=400');
chatbotWindow.document.write('<div id="chatbot-container"></div>');
chatbotWindow.document.write('<input type="text" id="userInput" placeholder="Type your message...">');
chatbotWindow.document.write('<button onclick="sendMessage()">Send</button>');
function appendMessage(message, sender) {
var chatContainer = chatbotWindow.document.getElementById('chatbot-container');
var messageElement = chatbotWindow.document.createElement('p');
messageElement.className = sender;
messageElement.textContent = message;
chatContainer.appendChild(messageElement);
}
var chatMessages = [
'Hello! How can I assist you today?',
'Feel free to ask any questions.',
'You can type "help" for assistance.',
'Have a great day!'
];
chatMessages.forEach(function (message) {
appendMessage(message, 'bot');
});
function sendMessage() {
var userInput = chatbotWindow.document.getElementById('userInput').value;
if (userInput.trim() !== '') {
appendMessage('You: ' + userInput, 'user');
var botResponse = generateBotResponse(userInput);
appendMessage('Bot: ' + botResponse, 'bot');
chatbotWindow.document.getElementById('userInput').value = '';
}
}
function generateBotResponse(userInput) {
userInput = userInput.toLowerCase();
if (userInput.includes('event')) {
return 'Sure, I can provide information about the upcoming events.';
} else if (userInput.includes('help')) {
return 'You can ask about events or any other information you need.';
} else if (userInput.includes('register')) {
return 'To register for the hackathon, please fill out the registration form above.';
} else {
return "I'm sorry, I didn't understand. Please ask another question.";
}
}
chatbotWindow.document.write('<button onclick="window.close()">Close Chatbot</button>');
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UPI Payment</title>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background-image: url('C:\\Users\\harsh\\OneDrive\\Documents\\Pictures\\OIP.jpg'); /* Replace with your image path */
background-size: cover;
}
form {
width: 300px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
text-align: center;
background-color: rgba(255, 255, 255, 0.8); /* Adjust the alpha value for transparency */
}
label {
display: block;
margin-bottom: 8px;
}
input {
width: 100%;
padding: 8px;
margin-bottom: 16px;
box-sizing: border-box;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
display: inline-block;
margin-right: 10px;
}
button:hover {
background-color: #45a049;
}
#qrcode {
margin-top: 10px;
}
.or-label {
margin-top: 10px;
font-weight: bold;
}
</style>
</head>
<body>
<form id="payment-form">
<h2>PAYMENT FOR HACKATHON</h2>
<label for="upi-id">UPI ID:</label>
<input type="text" id="upi-id" placeholder="Enter UPI ID" required>
<label for="amount">Amount:</label>
<input type="text" id="amount" value="500" readonly>
<div class="or-label">OR</div>
<button type="button" onclick="displayQRCode()">Display QR Code</button>
<div id="qrcode"></div>
<label for="otp">Enter OTP:</label>
<input type="text" id="otp" placeholder="Enter OTP">
<button type="button" onclick="submitToPay()">Submit to Pay</button>
<button type="button" onclick="cancelPayment()">Cancel Payment</button>
</form>
<script>
function displayQRCode() {
const upiId = document.getElementById('upi-id').value;
const amount = document.getElementById('amount').value;
if (!upiId || !amount) {
alert('Please fill in all required fields.');
return;
}
// Display QR Code
const qrcode = new QRCode(document.getElementById('qrcode'), {
text: upiId,
width: 128,
height: 128
});
// You can handle specific UPI payment processing based on the entered UPI ID.
alert(`UPI payment initiated to ${upiId}`);
// You would typically send the data to your server here for actual payment processing.
}
function submitToPay() {
const upiId = document.getElementById('upi-id').value;
const amount = document.getElementById('amount').value;
const otp = document.getElementById('otp').value;
if (!upiId || !amount || !otp) {
alert('Please fill in all required fields.');
return;
}
// Simulate payment processing
alert(`Payment successful! Amount: $${amount}`);
// You would typically send the data to your server here for actual payment processing.
// Clear form and QR code
resetForm();
}
function cancelPayment() {
// Clear form and QR code
window.location.href = 'reg.html';
}
function resetForm() {
document.getElementById('upi-id').value = '';
document.getElementById('otp').value = '';
document.getElementById('qrcode').innerHTML = '';
}
</script>
</body>
</html>