Last active
January 6, 2025 08:19
-
-
Save TheFlash2k/507b5558790f7a6ea81a7220fbd47343 to your computer and use it in GitHub Desktop.
Air University Student Portal Fill QEC Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* COURSE EVALUATION FORM */ | |
function CourseEvaluation() { | |
option = 1; // A = 1, B = 2, C = 3, D = 4 | |
var baseOpts = document.querySelector("#ctl00_ContentPlaceHolder2_cmb_courses"); | |
if(baseOpts.length == 1) { | |
console.log("Completed. Returning to home.."); | |
document.querySelector("#ctl00_ContentPlaceHolder2_linkBack").click(); | |
} | |
baseOpts.options[1].selected = true; // Selecting the first available value | |
selector = "#ctl00_ContentPlaceHolder2_q{VAR}_{OPTION}"; | |
for(var i = 1; i <= 12; i++) { | |
curr = selector.replace("{VAR}", i).replace("{OPTION}", option); | |
document.querySelector(curr).click(); | |
} | |
document.querySelector("#ctl00_ContentPlaceHolder2_btnSave").click(); | |
} | |
CourseEvaluation(); | |
/* TEACHER EVALUATION FORM */ | |
function TeacherEvaluation() { | |
option = 1; | |
InstructorMessage = "Good"; | |
CourseMessage = "Good"; | |
var teacher = document.querySelector("#ctl00_ContentPlaceHolder2_ddlTeacher"); | |
var course = document.querySelector("#ctl00_ContentPlaceHolder2_ddlCourse"); | |
if(teacher.length == 0) { | |
console.log("Completed. Returning to home.."); | |
document.querySelector("#ctl00_ContentPlaceHolder2_linkBack").click(); | |
} | |
teacher.options[1].selected = true; | |
setTimeout(__doPostBack('ctl00$ContentPlaceHolder2$ddlTeacher',''), 0); | |
try { if(course.length <= 1) { course.options[0].selected = true; } } catch { /* Do nothing... */ } | |
selector = "#ctl00_ContentPlaceHolder2_q{VAR}_{OPTION}"; | |
for(var i = 1; i <= 16; i++) { | |
curr = selector.replace("{VAR}", i).replace("{OPTION}", option); | |
document.querySelector(curr).click(); | |
} | |
document.querySelector("#ctl00_ContentPlaceHolder2_q20").textContent = InstructorMessage; | |
document.querySelector("#ctl00_ContentPlaceHolder2_q21").textContent = CourseMessage; | |
document.querySelector("#ctl00_ContentPlaceHolder2_btnSave").click(); | |
} | |
TeacherEvaluation(); | |
/* Online Learning Feedback Performa */ | |
function OnlineLearningEvaluation() { | |
option = 1; | |
InstructorMessage = "Very Good Teacher"; | |
var subject = document.querySelector("#ctl00_ContentPlaceHolder1_cmb_courses"); | |
if(subject.length <= 1) { | |
console.log("Completed. Returning to home.."); | |
document.querySelector("#ctl00_ContentPlaceHolder1_linkBack").click(); | |
} | |
subject.options[1].selected = true; | |
setTimeout(__doPostBack('ctl00$ContentPlaceHolder1$cmb_courses',''), 0); | |
selector = "#ctl00_ContentPlaceHolder1_q{VAR}_{OPTION}"; | |
for(var i = 1; i <= 15; i++) { | |
curr = selector.replace("{VAR}", i).replace("{OPTION}", option); | |
document.querySelector(curr).click(); | |
} | |
document.querySelector("#ctl00_ContentPlaceHolder1_q20").textContent = InstructorMessage; | |
document.querySelector("#ctl00_ContentPlaceHolder1_btnSave").click(); | |
} | |
OnlineLearningEvaluation(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How To:
COURSE EVALUATION FORM
and then pressF12
and then paste the code.