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 : 13.59.1.58
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[64],{6440:(e,s,a)=>{a.d(s,{c:()=>o});a(9060);var t=a(456),l=a(8464),i=a(2496);const n=()=>(0,i.jsx)(l.c,{indicator:(0,i.jsx)(t.c,{style:{fontSize:30,color:"white"},spin:!0})}),o=e=>{let{text:s,onClick:a,isLoading:t}=e;return(0,i.jsx)("div",{children:t?(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:a})})})}},3576:(e,s,a)=>{a.r(s),a.d(s,{default:()=>r});var t=a(9060),l=a(624),i=a(1560),n=a(1384);const o=a.p+"static/media/098_logo.62be4cd5fb6ffe9f3370.jpg";var c=a(6440),d=a(2496);const r=e=>{let s=(0,l.OY)(),a=(0,i.i6)();const[r,p]=(0,t.useState)(null),[m,u]=(0,t.useState)(""),[h,x]=(0,t.useState)(""),[j,v]=(0,t.useState)(""),[g,f]=(0,t.useState)(!1),N=(0,l.w1)((e=>e.AuthReducer.loading));(0,t.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((a=>{a.addEventListener("focus",e),a.addEventListener("blur",s)})),w()}),[]);const w=()=>{console.log(window.location.pathname);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 t={collcode:m,user:h,password:j};(0,n.U)(s,a,t)})(e),isLoading:N})]})})})})}}}]);
//# sourceMappingURL=64.62bdba8d.chunk.js.map
|