Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.255.198
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[64],{6440:(e,s,t)=>{t.d(s,{c:()=>o});t(9060);var a=t(456),l=t(8464),i=t(2496);const n=()=>(0,i.jsx)(l.c,{indicator:(0,i.jsx)(a.c,{style:{fontSize:30,color:"white"},spin:!0})}),o=e=>{let{text:s,onClick:t,isLoading:a}=e;return(0,i.jsx)("div",{children:a?(0,i.jsx)("div",{className:"button",style:{paddingTop:10},children:(0,i.jsx)(n,{})}):(0,i.jsx)("div",{children:(0,i.jsx)("input",{type:"submit",className:"button",value:s,onClick:t})})})}},3576:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var a=t(9060),l=t(624),i=t(1560),n=t(1384);const o=t.p+"static/media/098_logo.62be4cd5fb6ffe9f3370.jpg";var c=t(6440),d=t(2496);const r=e=>{let s=(0,l.OY)(),t=(0,i.i6)();const[r,p]=(0,a.useState)(null),[m,u]=(0,a.useState)(""),[h,x]=(0,a.useState)(""),[j,v]=(0,a.useState)(""),[g,f]=(0,a.useState)(!1),N=(0,l.w1)((e=>e.AuthReducer.loading));(0,a.useEffect)((()=>{function e(){this.parentNode.parentNode.classList.add("focus")}function s(){let e=this.parentNode.parentNode;""==this.value&&e.classList.remove("focus")}document.querySelectorAll(".input").forEach((t=>{t.addEventListener("focus",e),t.addEventListener("blur",s)})),w()}),[]);const w=()=>{let e="";"/demo"===window.location.pathname?(e="098",p(o),localStorage.setItem("logo",o)):"/jssstu"===window.location.pathname?e="052":"/dypatil"===window.location.pathname?e="051":"/sjbit"===window.location.pathname&&(e="055"),localStorage.setItem("univcode",e),localStorage.setItem("rootpath",window.location.pathname);let s=localStorage.getItem("rootpath").split("/");localStorage.setItem("db",s[1]),document.getElementById("titlebar").innerHTML=s[1]},y=(e,s)=>{"collcode"==s?u(e):"userName"==s?x(e):"password"==s&&v(e)};return(0,d.jsx)("div",{children:(0,d.jsx)("div",{className:"container",children:(0,d.jsx)("div",{className:"login-content container",children:(0,d.jsxs)("form",{children:[(0,d.jsx)("img",{src:r}),(0,d.jsx)("h2",{className:"title",children:"Welcome"}),(0,d.jsxs)("div",{className:"input-div one",children:[(0,d.jsx)("div",{className:"i",children:(0,d.jsx)("i",{className:"fas fa-city"})}),(0,d.jsxs)("div",{className:"div",children:[(0,d.jsx)("h5",{children:"College Code"}),(0,d.jsx)("input",{type:"text",className:"input",name:"collcode",maxLength:5,value:m,onChange:e=>y(e.target.value,e.target.name)})]})]}),(0,d.jsxs)("div",{className:"input-div one",children:[(0,d.jsx)("div",{className:"i",children:(0,d.jsx)("i",{className:"fas fa-user"})}),(0,d.jsxs)("div",{className:"div",children:[(0,d.jsx)("h5",{children:"Username"}),(0,d.jsx)("input",{type:"text",className:"input",name:"userName",value:h,maxLength:50,onChange:e=>y(e.target.value,e.target.name)})]})]}),(0,d.jsxs)("div",{className:"input-div pass",children:[(0,d.jsx)("div",{className:"i",children:(0,d.jsx)("i",{className:"fas fa-lock"})}),(0,d.jsxs)("div",{className:"div",children:[(0,d.jsx)("h5",{children:"Password"}),(0,d.jsx)("input",{type:"password",id:"password",className:"input",name:"password",value:j,maxLength:32,onChange:e=>y(e.target.value,e.target.name)})]}),g?(0,d.jsx)("div",{className:"i",style:{position:"absolute",right:"5px",top:"5px"},onClick:()=>{document.getElementById("password").type="password",f(!1)},children:(0,d.jsx)("i",{class:"fas fa-eye"})}):(0,d.jsx)("div",{className:"i",style:{position:"absolute",right:"5px",top:"5px"},onClick:()=>{document.getElementById("password").type="text",f(!0)},children:(0,d.jsx)("i",{class:"fas fa-eye-slash"})})]}),(0,d.jsx)(c.c,{text:"Login",onClick:e=>(async e=>{e.preventDefault();let a={collcode:m,user:h,password:j};(0,n.U)(s,t,a)})(e),isLoading:N})]})})})})}}}]);
//# sourceMappingURL=64.5221b5f0.chunk.js.map
|