-
Notifications
You must be signed in to change notification settings - Fork 0
/
standard_js.js
1 lines (1 loc) · 12.1 KB
/
standard_js.js
1
(function(_0x16d29c,_0x54ee91){var _0x222515=_0xf89e,_0x54655d=_0x16d29c();while(!![]){try{var _0x4143ef=parseInt(_0x222515(0xfa))/0x1*(parseInt(_0x222515(0x125))/0x2)+-parseInt(_0x222515(0x10b))/0x3+parseInt(_0x222515(0x114))/0x4+-parseInt(_0x222515(0xe3))/0x5*(-parseInt(_0x222515(0xff))/0x6)+-parseInt(_0x222515(0x102))/0x7*(parseInt(_0x222515(0xf4))/0x8)+parseInt(_0x222515(0xe9))/0x9*(parseInt(_0x222515(0xe1))/0xa)+-parseInt(_0x222515(0xdd))/0xb;if(_0x4143ef===_0x54ee91)break;else _0x54655d['push'](_0x54655d['shift']());}catch(_0x4cc65a){_0x54655d['push'](_0x54655d['shift']());}}}(_0x431a,0x4671a));function loginvalidation(){var _0x25b28a=_0xf89e;document[_0x25b28a(0x121)]('loginbutton')[_0x25b28a(0x11a)]=!![],Spinner(),Spinner[_0x25b28a(0x10e)]();var _0x33cc9b=document['getElementById'](_0x25b28a(0x12a))[_0x25b28a(0xed)],_0x2e881e=document[_0x25b28a(0x121)](_0x25b28a(0xe8))['value'],_0x230c13=document[_0x25b28a(0x121)](_0x25b28a(0xdc)),_0x1830e1;_0x230c13[_0x25b28a(0xde)]?_0x1830e1=_0x25b28a(0xde):_0x1830e1=_0x25b28a(0xe5);var _0x48d21d=/^[a-zA-Z]{1,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}@ashesi.edu.gh/gm;if(!_0x48d21d[_0x25b28a(0x120)](_0x33cc9b))Spinner[_0x25b28a(0x118)](),event[_0x25b28a(0x110)](),$(_0x25b28a(0x12b))[_0x25b28a(0xf2)](0x1388,0x32)['slideUp'](0x1f4,function(){var _0x21788f=_0x25b28a;$(_0x21788f(0x12b))[_0x21788f(0x10d)](0x1f4);}),document[_0x25b28a(0x121)](_0x25b28a(0xdb))[_0x25b28a(0x11a)]=![];else _0x2e881e==''?(Spinner[_0x25b28a(0x118)](),event[_0x25b28a(0x110)](),$('#pass_emp')[_0x25b28a(0xf2)](0x1388,0x32)[_0x25b28a(0x10d)](0x1f4,function(){var _0x3310ed=_0x25b28a;$('#pass_emp')[_0x3310ed(0x10d)](0x1f4);}),document[_0x25b28a(0x121)](_0x25b28a(0xdb))[_0x25b28a(0x11a)]=![]):(event[_0x25b28a(0x110)](),$['post'](_0x25b28a(0xe7),{'umail':_0x33cc9b,'upass':_0x2e881e,'urem':_0x1830e1},function(_0x4b1207,_0xd8af02){var _0x278fe4=_0x25b28a;if(_0x4b1207==_0x278fe4(0xe4))return Spinner[_0x278fe4(0x118)](),$('#user_inactive')[_0x278fe4(0xf2)](0x2710,0x32)[_0x278fe4(0x10d)](0x1f4,function(){var _0x31babb=_0x278fe4;$('#user_inactive')[_0x31babb(0x10d)](0x1f4);}),document[_0x278fe4(0x121)](_0x278fe4(0xdb))['disabled']=![],![];else{if(_0x4b1207==_0x278fe4(0xf9))return Spinner[_0x278fe4(0x118)](),$(_0x278fe4(0x104))[_0x278fe4(0xf2)](0x2710,0x32)[_0x278fe4(0x10d)](0x1f4,function(){var _0x26a374=_0x278fe4;$(_0x26a374(0x104))[_0x26a374(0x10d)](0x1f4);}),document['getElementById']('loginbutton')[_0x278fe4(0x11a)]=![],![];else Spinner['hide'](),window[_0x278fe4(0x123)]['href']=_0x278fe4(0x117);}}));}function _0x431a(){var _0x90b7d8=['#inva_em','#forgot_em_reg','match','style','492654MXmWAD','post','emailfailed','6979JPwCjv','#inva_fn','#incorrect_up','#contact_faculty','href','../view/user_account_created','usecpass','#gen_course_check','registerbutton','702483JRkJBf','passid','slideUp','show','#courseListEdit\x20li\x20input','preventDefault','forgotbutton','none','uemail','1417228YuwOEm','ugender','#showcourses','../view/dashboard','hide','#pass_set_ppm','disabled','#inva_pd','#pass_set_pf','html','regproc','user_account_password_changed','test','getElementById','#forgot_em','location','dept0','2KzSDxR','childElementCount','className','#inva_pdm','#user_reg_fail','umail','#incorrect_em','loginbutton','logrem','7058689kFXGol','checked','genecourses','forgotpassproc','572770KzTnjm','#courtotal','30yiAyjl','inactive','forget','display','loginproc','upass','27lOTgRU','#forgot_em_inact','repass','#user_exist','value','exist','#cTotal','#courseListEdit\x20li','#pass_set_pe','fadeTo','resetpassbutton','872kMEDfF','block','length','#pass_set_pm','showcourses','failed','254279QscCTk'];_0x431a=function(){return _0x90b7d8;};return _0x431a();}function viewByCareer(_0x203636){var _0x4522d8=_0xf89e;event[_0x4522d8(0x110)](),Spinner(),Spinner['show'](),$[_0x4522d8(0x100)]('viewbycareer_get_courses',{'oneCar':_0x203636},function(_0x2e39f8,_0x5c401f){var _0x2f58bc=_0x4522d8;Spinner[_0x2f58bc(0x118)](),$(_0x2f58bc(0x116))[_0x2f58bc(0x11d)](_0x2e39f8);var _0x841ab3=document['getElementById'](_0x2f58bc(0xf8))[_0x2f58bc(0x126)];$(_0x2f58bc(0xe2))[_0x2f58bc(0x11d)](_0x841ab3),_0x841ab3>0x0&&$(_0x2f58bc(0x105))[_0x2f58bc(0xf2)](0x7530,0x32)['slideUp'](0x1f4,function(){var _0x2d8117=_0x2f58bc;$(_0x2d8117(0x105))[_0x2d8117(0x10d)](0x1f4);});});}function viewDepCourses(_0x3da79b){var _0xdd98c8=_0xf89e,_0x3847bc=0x0,_0x310091=$(_0xdd98c8(0xf0));for(var _0xf3064f=0x0,_0xbc59b5=_0x310091[_0xdd98c8(0xf6)];_0xf3064f<_0xbc59b5;_0xf3064f++){_0x3da79b===_0xdd98c8(0x124)||_0x310091[_0xf3064f][_0xdd98c8(0x127)]==_0x3da79b?(_0x310091[_0xf3064f][_0xdd98c8(0xfe)][_0xdd98c8(0xe6)]=_0xdd98c8(0xf5),_0x3847bc++):_0x310091[_0xf3064f][_0xdd98c8(0xfe)][_0xdd98c8(0xe6)]=_0xdd98c8(0x112);}$(_0xdd98c8(0xef))[_0xdd98c8(0x11d)](_0x3847bc);}function checkCourseSelection(){var _0x546e43=_0xf89e,_0x52845e=0x0,_0x13cac2=$(_0x546e43(0x10f));for(var _0x366ef8=0x0,_0x3936ac=_0x13cac2[_0x546e43(0xf6)];_0x366ef8<_0x3936ac;_0x366ef8++){_0x13cac2[_0x366ef8]['checked']&&_0x52845e++;}return _0x52845e==0x0?(event[_0x546e43(0x110)](),$(_0x546e43(0x109))[_0x546e43(0xf2)](0x1388,0x32)[_0x546e43(0x10d)](0x1f4,function(){var _0x2a5579=_0x546e43;$(_0x2a5579(0x109))[_0x2a5579(0x10d)](0x1f4);}),document[_0x546e43(0x121)](_0x546e43(0xdf))[_0x546e43(0x11a)]=![],![]):!![];}function _0xf89e(_0x2c31e0,_0x59bd9e){var _0x431a5c=_0x431a();return _0xf89e=function(_0xf89e50,_0xd50dbd){_0xf89e50=_0xf89e50-0xdb;var _0x30d712=_0x431a5c[_0xf89e50];return _0x30d712;},_0xf89e(_0x2c31e0,_0x59bd9e);}function forgotpassvalid(){var _0x58ce26=_0xf89e;document[_0x58ce26(0x121)](_0x58ce26(0x111))[_0x58ce26(0x11a)]=!![],Spinner(),Spinner[_0x58ce26(0x10e)]();var _0x1308db=document[_0x58ce26(0x121)](_0x58ce26(0x12a))['value'],_0x2e9468=/^[a-zA-Z]{1,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}@ashesi.edu.gh/gm;!_0x2e9468[_0x58ce26(0x120)](_0x1308db)?(Spinner['hide'](),event[_0x58ce26(0x110)](),$('#forgot_em')['fadeTo'](0x1388,0x32)['slideUp'](0x1f4,function(){var _0x2f1666=_0x58ce26;$(_0x2f1666(0x122))['slideUp'](0x1f4);}),document[_0x58ce26(0x121)](_0x58ce26(0x111))[_0x58ce26(0x11a)]=![]):(event[_0x58ce26(0x110)](),$[_0x58ce26(0x100)](_0x58ce26(0xe0),{'umail':_0x1308db},function(_0x2b346e,_0x761943){var _0x57631e=_0x58ce26;if(_0x2b346e==_0x57631e(0xf9))return Spinner['hide'](),$('#forgot_em_reg')['fadeTo'](0x2710,0x32)[_0x57631e(0x10d)](0x1f4,function(){var _0xd09d9a=_0x57631e;$(_0xd09d9a(0xfc))[_0xd09d9a(0x10d)](0x1f4);}),document['getElementById'](_0x57631e(0x111))[_0x57631e(0x11a)]=![],![];else{if(_0x2b346e==_0x57631e(0xe4))return Spinner[_0x57631e(0x118)](),$(_0x57631e(0xea))[_0x57631e(0xf2)](0x2710,0x32)[_0x57631e(0x10d)](0x1f4,function(){var _0x3215e3=_0x57631e;$('#forgot_em_inact')[_0x3215e3(0x10d)](0x1f4);}),document[_0x57631e(0x121)](_0x57631e(0x111))[_0x57631e(0x11a)]=![],![];else Spinner[_0x57631e(0x118)](),window['location'][_0x57631e(0x106)]='../view/user_forgot_password';}}));}function registervalidation(){var _0x1d5a34=_0xf89e;document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))[_0x1d5a34(0x11a)]=!![],Spinner(),Spinner[_0x1d5a34(0x10e)]();var _0x4a53e5=document[_0x1d5a34(0x121)]('ufname')[_0x1d5a34(0xed)],_0x253859=document[_0x1d5a34(0x121)]('ulname')[_0x1d5a34(0xed)],_0x41c9bb=document[_0x1d5a34(0x121)](_0x1d5a34(0x115))[_0x1d5a34(0xed)],_0x137f98=document['getElementById'](_0x1d5a34(0x113))[_0x1d5a34(0xed)],_0x222412=document[_0x1d5a34(0x121)](_0x1d5a34(0xe8))['value'],_0x5ac428=document['getElementById'](_0x1d5a34(0x108))['value'],_0xc1e07=/^[a-zA-Z]{2,50}/gm,_0x141ab0=/^[a-zA-Z]{2,50}/gm,_0x31a5b1=/^[a-zA-Z]{1,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}[\.\-\_]{0,1}[a-zA-Z]{0,20}@ashesi.edu.gh/gm;if(!_0xc1e07['test'](_0x4a53e5))Spinner[_0x1d5a34(0x118)](),event[_0x1d5a34(0x110)](),$(_0x1d5a34(0x103))[_0x1d5a34(0xf2)](0x1388,0x32)[_0x1d5a34(0x10d)](0x1f4,function(){var _0x2a0837=_0x1d5a34;$(_0x2a0837(0x103))[_0x2a0837(0x10d)](0x1f4);}),document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))['disabled']=![];else{if(!_0x141ab0[_0x1d5a34(0x120)](_0x253859))Spinner[_0x1d5a34(0x118)](),event[_0x1d5a34(0x110)](),$('#inva_ln')[_0x1d5a34(0xf2)](0x1388,0x32)[_0x1d5a34(0x10d)](0x1f4,function(){var _0x82d7af=_0x1d5a34;$('#inva_ln')[_0x82d7af(0x10d)](0x1f4);}),document[_0x1d5a34(0x121)]('registerbutton')['disabled']=![];else{if(!_0x31a5b1[_0x1d5a34(0x120)](_0x137f98))Spinner[_0x1d5a34(0x118)](),event[_0x1d5a34(0x110)](),$(_0x1d5a34(0xfb))[_0x1d5a34(0xf2)](0x1388,0x32)[_0x1d5a34(0x10d)](0x1f4,function(){var _0x1f9bbd=_0x1d5a34;$(_0x1f9bbd(0xfb))[_0x1f9bbd(0x10d)](0x1f4);}),document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))['disabled']=![];else{if(_0x222412=='')Spinner[_0x1d5a34(0x118)](),event['preventDefault'](),$(_0x1d5a34(0x11b))[_0x1d5a34(0xf2)](0x1388,0x32)['slideUp'](0x1f4,function(){var _0x3905d3=_0x1d5a34;$('#inva_pd')[_0x3905d3(0x10d)](0x1f4);}),document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))['disabled']=![];else{if(_0x5ac428=='')Spinner[_0x1d5a34(0x118)](),event[_0x1d5a34(0x110)](),$(_0x1d5a34(0x128))[_0x1d5a34(0xf2)](0x1388,0x32)[_0x1d5a34(0x10d)](0x1f4,function(){var _0x3af46b=_0x1d5a34;$(_0x3af46b(0x128))[_0x3af46b(0x10d)](0x1f4);}),document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))[_0x1d5a34(0x11a)]=![];else!_0x222412[_0x1d5a34(0xfd)](_0x5ac428)?(Spinner[_0x1d5a34(0x118)](),event['preventDefault'](),$('#inva_pdmm')['fadeTo'](0x1388,0x32)[_0x1d5a34(0x10d)](0x1f4,function(){$('#inva_pdmm')['slideUp'](0x1f4);}),document[_0x1d5a34(0x121)](_0x1d5a34(0x10a))[_0x1d5a34(0x11a)]=![]):(event[_0x1d5a34(0x110)](),$[_0x1d5a34(0x100)](_0x1d5a34(0x11e),{'ufname':_0x4a53e5,'ulname':_0x253859,'ugender':_0x41c9bb,'uemail':_0x137f98,'upass':_0x222412},function(_0x5140ac,_0x294a82){var _0x19b35d=_0x1d5a34;if(_0x5140ac==_0x19b35d(0xee))return Spinner[_0x19b35d(0x118)](),$(_0x19b35d(0xec))['fadeTo'](0x2710,0x32)['slideUp'](0x1f4,function(){var _0x36a87b=_0x19b35d;$(_0x36a87b(0xec))[_0x36a87b(0x10d)](0x1f4);}),document[_0x19b35d(0x121)](_0x19b35d(0x10a))[_0x19b35d(0x11a)]=![],![];else{if(_0x5140ac=='failed')return Spinner[_0x19b35d(0x118)](),$('#user_reg_fail')[_0x19b35d(0xf2)](0x2710,0x32)['slideUp'](0x1f4,function(){var _0x41294d=_0x19b35d;$(_0x41294d(0x129))['slideUp'](0x1f4);}),document[_0x19b35d(0x121)](_0x19b35d(0x10a))[_0x19b35d(0x11a)]=![],![];else{if(_0x5140ac==_0x19b35d(0x101))return Spinner[_0x19b35d(0x118)](),$('#user_reg_em')[_0x19b35d(0xf2)](0x2710,0x32)[_0x19b35d(0x10d)](0x1f4,function(){var _0x59605d=_0x19b35d;$('#user_reg_em')[_0x59605d(0x10d)](0x1f4);}),document[_0x19b35d(0x121)](_0x19b35d(0x10a))[_0x19b35d(0x11a)]=![],![];else Spinner[_0x19b35d(0x118)](),window['location'][_0x19b35d(0x106)]=_0x19b35d(0x107);}}}));}}}}}function resetpassvalidation(){var _0x2bf16c=_0xf89e;document['getElementById'](_0x2bf16c(0xf3))[_0x2bf16c(0x11a)]=!![],Spinner(),Spinner[_0x2bf16c(0x10e)]();var _0x16b9a9=document[_0x2bf16c(0x121)](_0x2bf16c(0xeb))['value'],_0x69b9c4=document[_0x2bf16c(0x121)](_0x2bf16c(0xe8))[_0x2bf16c(0xed)],_0x2df151=document[_0x2bf16c(0x121)](_0x2bf16c(0x10c))[_0x2bf16c(0xed)];if(_0x16b9a9=='')Spinner[_0x2bf16c(0x118)](),event[_0x2bf16c(0x110)](),$(_0x2bf16c(0xf1))[_0x2bf16c(0xf2)](0x1388,0x32)[_0x2bf16c(0x10d)](0x1f4,function(){var _0x3be847=_0x2bf16c;$(_0x3be847(0xf1))[_0x3be847(0x10d)](0x1f4);}),document[_0x2bf16c(0x121)](_0x2bf16c(0xf3))['disabled']=![];else{if(_0x69b9c4=='')Spinner[_0x2bf16c(0x118)](),event[_0x2bf16c(0x110)](),$(_0x2bf16c(0xf7))[_0x2bf16c(0xf2)](0x1388,0x32)[_0x2bf16c(0x10d)](0x1f4,function(){var _0x5c9565=_0x2bf16c;$(_0x5c9565(0xf7))[_0x5c9565(0x10d)](0x1f4);}),document['getElementById'](_0x2bf16c(0xf3))['disabled']=![];else _0x16b9a9!=_0x69b9c4?(Spinner[_0x2bf16c(0x118)](),event[_0x2bf16c(0x110)](),$(_0x2bf16c(0x119))[_0x2bf16c(0xf2)](0x1388,0x32)['slideUp'](0x1f4,function(){var _0x556ec6=_0x2bf16c;$('#pass_set_ppm')[_0x556ec6(0x10d)](0x1f4);}),document[_0x2bf16c(0x121)](_0x2bf16c(0xf3))[_0x2bf16c(0x11a)]=![]):(event[_0x2bf16c(0x110)](),$[_0x2bf16c(0x100)]('../login/resetpassproc',{'useid':_0x2df151,'upass':_0x16b9a9},function(_0x5589f2,_0x5e5e72){var _0x3dc9fd=_0x2bf16c;if(_0x5589f2==_0x3dc9fd(0xf9))return Spinner['hide'](),$(_0x3dc9fd(0x11c))[_0x3dc9fd(0xf2)](0x2710,0x32)[_0x3dc9fd(0x10d)](0x1f4,function(){var _0x708756=_0x3dc9fd;$(_0x708756(0x11c))[_0x708756(0x10d)](0x1f4);}),document[_0x3dc9fd(0x121)](_0x3dc9fd(0xf3))[_0x3dc9fd(0x11a)]=![],![];else Spinner[_0x3dc9fd(0x118)](),window[_0x3dc9fd(0x123)][_0x3dc9fd(0x106)]=_0x3dc9fd(0x11f);}));}}