-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
205 lines (173 loc) · 8.57 KB
/
main.js
File metadata and controls
205 lines (173 loc) · 8.57 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
window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(
"sign-in-button",
{
size: "invisible",
callback: function(response) {
// reCAPTCHA solved, allow signInWithPhoneNumber.
onSignInSubmit();
}
}
);
document.getElementById("submitbtn").onclick=function onsubmitclicked() {
var phoneNumber = document.getElementById("phonenumber").value;
var appVerifier = window.recaptchaVerifier;
firebase
.auth()
.signInWithPhoneNumber(phoneNumber, appVerifier)
.then(function(confirmationResult) {
// SMS sent. Prompt user to type the code from the message, then sign the
// user in with confirmationResult.confirm(code).
window.confirmationResult = confirmationResult;
})
.catch(function(error) {
// Error; SMS not sent
// ...
});
}
var code = getCodeFromUserInput();
confirmationResult
.confirm(code)
.then(function(result) {
// User signed in successfully.
var user = result.user;
// ...
})
.catch(function(error) {
// User couldn't sign in (bad verification code?)
// ...
});
function subkk()
{
var score = document.querySelector("input[name = subk]:checked").value;
console.log("The score of subk is: " + score);
}
function saveformdata()
{
var rollnumber=document.getElementById("roll").value;
var dept=document.getElementById("dept").value;
var year=document.getElementById("year").value;
var section=document.getElementById("section").value;
if(rollnumber.length>0 && dept!=="-" && year!=="-" && section!=="-")
{
updateFacultyDetails(rollnumber,dept,year,section);
}
}
function updateFacultyDetails(rollnumber,dept,year,section) {
var CSEIyB=["Mrs. Ismath Aijaz(Engineering Mathematics-II)","Prof. Dr. Shaik Zameeruddin(Engineering Physics-II)",
"Dr. Aneesa Ferdose(Engineering Chemistry-II)","Mr. Ahmed(Object Orieted Programming using C++)",
"Dr. Nirmala Rita Nair(Business Communication and Presentation","Nausheen Bano(Basic Electrical Engineering)",
"Mr. Syed Ilyas Mohiuddin(Engineering Physics Lab-II)","Dr. Mohd. Abdul Gafoor(Engineering Physics Lab-II)",
"Dr. Shaik Kareem Ahmed(Engineering Physics Lab-II)","Dr. MGV Satyanarayana(Engineering Chemistry Lab-II)",
"Dr. Pragathi Jogi(Engineering Chemistry Lab-II)","Dr. Sariah Sana(Engineering Chemistry Lab-II)",
"K. Niraja(Computer Skills)","Zainuddin Naveed(Computer Skills)",
"T Anita(Communication Skills)","Sher Muhammed Khan(Communication Skills)",
"Manjusha(C++ Programming Lab)","Mir Ahmed Ali(C++ Programming Lab)"];
var CSEIyA=["Mrs. Ismath Aijaz(Engineering Mathematics-II)","Prof. Dr. Shaik Zameeruddin(Engineering Physics-II)",
"Dr. Aneesa Ferdose(Engineering Chemistry-II)","K. Manjusha(Object Orieted Programming using C++)",
"Farha Shah(Business Communication and Presentation","MD. Jaffar(Basic Electrical Engineering)",
"Mr. Syed Ilyas Mohiuddin(Engineering Physics Lab-II)","Dr. Mohd. Abdul Gafoor(Engineering Physics Lab-II)",
"Mr. Rahim Ahmed(Engineering Physics Lab-II)","Dr. V Shanthi(Engineering Chemistry Lab-II)",
"Dr. Pragathi Jogi(Engineering Chemistry Lab-II)","Dr. Y Arun Kumar(Engineering Chemistry Lab-II)",
"Meer Arshad Ali(Computer Skills)","Krishna Keerthi(Computer Skills)",
"T Anita(Communication Skills)","Sher Muhammed Khan(Communication Skills)",
"Manjusha(C++ Programming Lab)","Mir Ahmed Ali(C++ Programming Lab)"];
var CSEIIyA = [
"Mr. Syed Rawoof(Mathematics And Statistics)",
"Mrs. S Shabeera Khader(Signals and System Analysis)",
"Mrs. Krishna Keerthi(Computer Organization)",
"Mr. Syed Akbar Hashmi(Object Programming Using Java)",
"Mr. G Rajesham(Programming Languages)",
"Mrs. K Sridevi(Micro Processor And Interfacing)",
"Mr. Syed Akbar Hashmi(Java Programming Lab)",
"Mrs. K Sridevi(Micro Processor lab)",
"Mr. J Srinivas(Mini Project lab)",
"Mr. Ahmed Ali(Society Outreach Program)"
];
var CSEIIyB = [
"Mr. Syed Rawoof(Mathematics And Statistics)",
"Mrs. Kameka(Signals and System Analysis)",
"Mrs. Krishna Keerthi(Computer Organization)",
"Mr. Meer Arshad Ali(Object Programming Using Java)",
"Mr. G Rajesham(Programming Languages)",
"Mrs. Niraja(Micro Processor And Interfacing)",
"Mr. Meer Arshad Ali(Java Programming lab)",
"Mrs. Niraja(Micro Processor lab)",
"Mr. Raheem(Mini Project lab)",
"Mr. Mohd Imran(Society Outreach Program)",
"Mr. Mohd Nazeer(Society Outreach Program)"
];
var CSEIIIyA = ["Dr. Umar Farooq(Web Programming and services)", "Mr. Mohd Ahmed(Compiler Construction)",
"Mr. Zainuddin Naveed(Design Algorithm and analysis)", "Mr. Saleem Khan(Object Oriented System Development)",
"Mrs. Maniza Hijab(Computer Networks)",
"Dr. Umar Farooq/(Web Programming)","Mrs. Maniza Hijab(Computer Networks lab)",
"Mr Saleem Khan(OOSD lab)", "Mr. G Rajesham(Compiler Construction lab)",
"Mr. Zainuddin Naveed(Mini Project lab)"];
var CSEIIIyB = ["Mr. Syed Mohiuddin(Web Programming and services)", "Mr. Mohd Ahmed(Compiler Construction)",
"Dr. Syed Shabbir Ahmed(Design Algorithm and Analysis)",
"Mrs. Sayeda Ambareen Rana(Object Oriented System Development)", "Mr. Khaja Zahooruddin(Computer Networks)",
"Mr. Syed Mohiuddin(Web Programming)","Mr. Khaja Zahooruddin( Computer Networks lab)",
"Mrs. Sayeda Ambareen Rana(OOSD Lab)",
"Mrs. Gouri R Patil(Compiler Construction lab)", "Mrs. Afreen Sultana(Mini Project lab)"];
var CSEIVyA = ["Mr. Mohd Nazeer(Data Mining)", "Mr J Srinivas(Elective-II Software Quality Testing)",
"Mr. Shabaz Hussain(Elective-III Information Retrieval System)", "Mr. Mohd Nazeer(Data Mining lab)"];
var CSEIVyB=["Mr. Mohd Imran(Data Mining)","Mr Mohd sharuddin(Elective-II Software Quality Testing)",
"Prof. K Manmohan Rao(Elective-III Information Retrieval System)","Mr. Mohd Imran(Data Mining lab)"];
if(dept==="CSE")
{
if (year === "I Year") {
if (section === "B") {
updateUI(CSEIyB);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
alert(strUser);
} else if (section === "A") {
updateUI(CSEIyA);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
alert(strUser);
}
} else if (year === "II Year") {
if (section === "A") {
updateUI(CSEIIyA);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
} else if (section === "B") {
updateUI(CSEIIyB);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
}
} else if (year === "III Year") {
if (section === "A") {
updateUI(CSEIIIyA);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
} else if (section === "B") {
updateUI(CSEIIIyB);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
}
} else if (year === "IV Year") {
if (section === "A") {
updateUI(CSEIVyA);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
} else if (section === "B") {
updateUI(CSEIVyB);
var e = document.getElementById("subjAndFac");
var strUser = e.options[e.selectedIndex].value;
}
}
}
}
function updateUI(classYearSection){
str = "";
for (var i = 0; i < classYearSection.length; i++) {
str += '<option name="subjects" value="'+classYearSection[i]+'">' + classYearSection[i] + '</option>';
if(classYearSection[i].length>64)
{
console.log(classYearSection[i])
}
}
document.getElementById("subjAndFac").size = classYearSection.length;
document.getElementById("subjAndFac").innerHTML = str;
}