text: !function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,n){"use strict";var a=[{tag:"h3",id:"Name",style:"color: #999; animation: fadeIn 4s"},{tag:"span",id:"Sem",style:"float: left; font-size: 24px; color:#999; animation: fadeIn 3s; text-align: left; margin-left: 5px"},{tag:"div",class:"table-responsive"},{tag:"table",class:"table",style:"color: #fff; animation: fadeIn 1s"},{tag:"div",id:"resultFooter",style:"animation: fadeIn 4s;"},{tag:"h4",id:"Total",style:"color:#999; text-align: left; margin-left: 5px"},{tag:"hr",style:"margin: 0px; background-color: #999; width: 100%;"},{tag:"div",class:"load-3",style:"margin: 7px; margin-bottom: 0px; animation: fadeIn 1s; z-index: -1;"},{tag:"div",class:"line"},{tag:"div",style:"text-align: center; animation: fadeIn 3s"},{tag:"button",class:"btn btn-success",style:"z-index: -1; margin: 5px; left: 0"},{tag:"button",id:"DropdownButton",class:"btn btn-secondary dropdown-toggle",type:"button",style:"border-top-right-radius: 0px; border-bottom-right-radius: 0px; background-color: #4C9250;","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},{tag:"div",class:"dropdown-menu dropdown-menu-center"},{tag:"button",class:"dropdown-item",type:"button"},{tag:"i",class:"fa fa-plus-square","aria-hidden":"true"},{tag:"td",colspan:"6",class:"hiddenRow",style:"padding: 0; background: #333"},{tag:"div",class:"accordian-body collapse"},{tag:"i",class:"fa fa-cog fa-spin fa-3x fa-fw",style:"z-index: -1;"},{tag:"table",class:"table",style:"color: #fff; animation: fadeIn 1s; background: #333"},{tag:"i",class:"fa fa-chevron-up","aria-hidden":"true",style:"color: #33cc33; font-size: 15px"},{tag:"i",class:"fa fa-chevron-down","aria-hidden":"true",style:"color: #cf3333; font-size: 15px"},{tag:"button",id:"SummaryButton",style:"animation: glowing 3s; animation-iteration-count: 3; animation-delay: 1s; background-color: #eee; cursor: pointer; border-radius: 4px; border: 0.5px solid #ddd; border-bottom-left-radius: 0px; border-top-left-radius: 0px; color: #333;"},{tag:"div",id:"SummaryContainer",style:"color: #eee; animation: fadeIn 2s; text-align: left; font-size: 20px; display: none;"},{tag:"table",style:"color: #fff; animation: fadeIn 1s",class:"table"},{tag:"span",style:"color:#333; cursor: pointer; animation: fadeIn 2s; text-align: right; font-size: 16px; margin-left: 5px; margin-top: 5px; display: inline-block; background-color: #fff; border-radius: 4px; padding: 7px;"},{tag:"span",style:"cursor: pointer; float: right; color:#333; animation: fadeIn 3s; text-align: right; font-size: 16px; margin-right: 5px; background-color: #fff; border-radius: 4px; padding: 4px; margin-bottom: 5px;"}];e.exports=a},function(e,t,n){"use strict";function a(e,t){var n=new jsPDF,a=JSON.parse(e);i(a[a.findIndex(function(e){return/REGULAR/gi.test(e.Examination)&&e.Semester===t})],n),o(n,a[0].EnrollmentNumber+"-Sem"+t)}function r(e){var t=new jsPDF,n=JSON.parse(e),a=d(e),r=[{title:"Sem",dataKey:"sem"},{title:"Score",dataKey:"score"},{title:"Credits",dataKey:"credits"}];t.setFontSize(12),t.text(n[0].Name,10,15),t.text(n[0].EnrollmentNumber,10,20),t.text(n[0].Institution.length>65?n[0].Institution.slice(0,65)+"...":n[0].Institution,10,25),t.text(n[0].Programme.length>65?n[0].Programme.slice(0,65)+"...":n[0].Programme,10,30),t.text("Batch: "+n[0].Batch,10,35),t.text("Summary: ",10,42),t.autoTable(r,function(){for(var e=[],t=0;t<a.length;t++)e.push({sem:a[t].Sem,score:a[t].Score,credits:a[t].Credits});return e}(),{startY:43,margin:{horizontal:7},bodyStyles:{valign:"top"},styles:{overflow:"linebreak",columnWidth:"auto"},columnStyles:{text:{columnWidth:"auto"}}});var l=52+8*a.length,s=n.filter(function(e){return/REGULAR/.test(e.Examination)});t.text("Aggregate: "+(s.reduce(function(e,t){return{Score:e.Score+t.Score}},{Score:0}).Score/s.length).toFixed(2),10,l+5),t.text("Credits: "+s.reduce(function(e,t){return{CreditsSecured:e.CreditsSecured+parseInt(t.CreditsSecured)}},{CreditsSecured:0}).CreditsSecured,10,l+10),function(e){return e.filter(function(e){return/REGULAR/gi.test(e.Examination)}).sort(function(e,t){return parseInt(e.Semester)-parseInt(t.Semester)})}(n).forEach(function(e){t.addPage(),i(e,t)});var c=n[0].EnrollmentNumber+"-Complete";o(t,c)}function o(e,t){var n=e.output("blob"),a=new File([n],"file.pdf",{type:"application/pdf"});saveAs(a,t)}function d(e){e=JSON.parse(e);var t=[];return e.forEach(function(e){/REGULAR/gi.test(e.Examination)&&t.push({Sem:e.Semester,Score:e.Score,Credits:e.CreditsSecured})}),t.sort(function(e,t){return e.Sem-t.Sem}),t}function i(e,t){t.setFontSize(12),t.text(e.Name,10,15),t.text(e.EnrollmentNumber,10,20),t.text("Semester: "+e.Semester,10,27);var n=[{title:"ID",dataKey:"id"},{title:"Subject",dataKey:"name"},{title:"Internal",dataKey:"internal"},{title:"External",dataKey:"external"},{title:"Total",dataKey:"total"},{title:"Credits",dataKey:"credits"}];t.autoTable(n,l(e),{startY:28,margin:{horizontal:7},bodyStyles:{valign:"top"},styles:{overflow:"linebreak",columnWidth:"auto"},columnStyles:{text:{columnWidth:"auto"}}});var a=30+8*e.Marks.length;t.text("Total: "+e.Score,10,a+5),t.text("Credits: "+e.CreditsSecured,10,a+10),t.text("Credit Percentage: "+e.Credit,10,a+15)}function l(e){for(var t=[],n=0;n<e.Marks.length;n++)e.Marks[n].Name.length>40&&(e.Marks[n].Name=e.Marks[n].Name.slice(0,40)+"..."),t.push({id:e.Marks[n].Id,name:e.Marks[n].Name,internal:e.Marks[n].Internal,external:e.Marks[n].External,total:e.Marks[n].Total,credits:e.Marks[n].Credits});return t}e.exports={completeReport:r,semReport:a}},function(e,t,n){"use strict";n(3),n(8),n(9)},function(e,t,n){"use strict";function a(){for(var e=1;e<=4;e++)!function(e){setTimeout(function(){var t=document.getElementById("intro"+e);t.style.animation="fadeIn 2s",t.style.opacity="1"},1e3*e)}(e)}function r(){m(),f(),g(),fixResultHistory(L)}function o(){m();var e=document.createElement(C[0].tag);h(0,e),console.log(I.response),e.innerHTML="An error occured.",M.appendChild(e)}function d(){var e=[];T=document.createElement(C[7].tag),h(7,T);for(var t=0;t<3;t++)e.push(document.createElement(C[8].tag)),h(8,e[t]),T.appendChild(e[t]);M.innerHTML="",M.appendChild(T)}function i(e){var t=document.createElement("div");t.setAttribute("class","btn-group"),t.style.animation="fadeIn 3s";var n=document.createElement(C[11].tag);h(11,n),n.innerHTML="Semester",t.appendChild(n);var a=document.createElement(C[21].tag);h(21,a),a.innerHTML="&nbsp;&nbsp;Overall&nbsp;&nbsp;",a.onclick=s,t.appendChild(a);var r=document.createElement(C[12].tag);h(12,r);for(var o=!1,d=[],i=0;i<e.length;i++)"-"!==e[i].Score?(A[parseInt(e[i].Semester)]=Object.assign([],e[i].Marks),A[parseInt(e[i].Semester)].push(e[i].Credit),A[parseInt(e[i].Semester)].push(e[i].Score),d[parseInt(e[i].Semester)]=!0):o=!0;for(var c=1;c<9;c++)if(d[c]){B=c;var m=document.createElement(C[13].tag);h(13,m),m.innerHTML="Sem 0"+c,m.onclick=l.bind(null,c),r.appendChild(m)}if(o){var u=document.createElement(C[13].tag);h(13,u),u.innerHTML="Reappear",u.onclick=l.bind(null,"-"),r.appendChild(u)}t.appendChild(r),M.appendChild(t);var p=document.createElement("div");p.style.minHeight="15px",M.appendChild(p)}function l(e){R&&R!==t&&(R.style.display="none"),k=e;var t=document.getElementById("sem"+e);t.style.display="",R=t,document.getElementById("DropdownButton").style.backgroundColor="#43a047",document.getElementById("DropdownButton").style.color="#fff",document.getElementById("SummaryButton").style.backgroundColor="#fff",document.getElementById("SummaryButton").style.color="#333"}function s(){R&&(R.style.display="none"),R=document.getElementById("SummaryContainer"),R.style.display="",document.getElementById("DropdownButton").style.backgroundColor="#fff",document.getElementById("DropdownButton").style.color="#333",document.getElementById("SummaryButton").style.backgroundColor="#43a047",document.getElementById("SummaryButton").style.color="#fff"}function c(e){var t=[];T=document.createElement(C[7].tag),h(7,T);for(var n=0;n<3;n++)t.push(document.createElement(C[8].tag)),h(8,t[n]),T.appendChild(t[n]);e.appendChild(T)}function m(){T.style.animation="fadeOut 1s",T.style.opacity=0}function u(e,t){var n=H[e];n.childNodes[1].style.animation="fadeOut 1s",n.childNodes[1].style.opacity=0;try{var a=JSON.parse(t.response),r=document.createElement(C[0].tag);h(0,r),r.innerHTML="Sem "+N[e].Semester+" Rank List",n.appendChild(r);var o=["Name","EnrollmentNumber","Scores"],d=document.createElement(C[2].tag);h(2,d);var i=document.createElement(C[3].tag);h(3,i);var l=document.createElement("thead"),s=document.createElement("tbody"),c=document.createElement("tr");!function(){for(var e=["#","Compare","Name","Roll Number","Aggregate"],t=0;t<e.length;t++){var n=document.createElement("th");n.innerHTML=e[t],c.appendChild(n)}l.appendChild(c),i.appendChild(l)}();for(var m=0;m<a.Students.length;m++){c=document.createElement("tr"),c.setAttribute("data-toggle","collapse"),c.setAttribute("class","accordion-toggle"),c.setAttribute("data-target","#comp"+parseInt(m+1)+"sem"+k),a.Students[m].EnrollmentNumber===L&&(c.style.background="#999",c.setAttribute("data-target",""));var u=document.createElement("th");u.setAttribute("scope","row"),u.innerHTML=m+1,c.appendChild(u);var p=document.createElement("td"),f=document.createElement(C[14].tag);f.setAttribute("id","compBtn"+parseInt(m+1)+"sem"+k),h(14,f),p.appendChild(f),c.appendChild(p);for(var g=0;g<3;g++){var p=document.createElement("td");p.innerHTML=a.Students[m][o[g]],c.appendChild(p)}s.appendChild(c);var v=document.createElement("tr"),E=document.createElement("td");h(15,E);var b=document.createElement("div");h(16,b),b.setAttribute("id","comp"+parseInt(m+1)+"sem"+k),E.appendChild(b),v.appendChild(E),s.appendChild(v)}i.appendChild(s),d.appendChild(i),n.style.background="#343f41",n.appendChild(d);var w=document.createElement(C[5].tag);h(5,w),w.innerHTML="Class Average: "+(a.Aggregate/a.Students.length).toFixed(2),n.appendChild(w);for(var S=1;S<=a.Students.length;S++)window.jQuery("#comp"+S+"sem"+k).on("hide.bs.collapse",y.bind(null,"hide",a.Students[S-1].EnrollmentNumber,S)),window.jQuery("#comp"+S+"sem"+k).on("show.bs.collapse",y.bind(null,"show",a.Students[S-1].EnrollmentNumber,S))}catch(e){console.log(e);var x=document.createElement(C[0].tag);h(0,x),x.innerHTML="An error occured.",n.appendChild(x)}setRankHistory()}function p(e){var t=H[e];t.childNodes[1].style.animation="fadeOut 1s",t.childNodes[1].style.opacity=0;var n=document.createElement(C[0].tag);h(0,n),n.innerHTML="An error occured.",t.appendChild(n)}function f(){function e(){for(var e=["#","Subject","Internal","External","Total"],t=0;t<5;t++){var n=document.createElement("th");n.innerHTML=e[t],E.appendChild(n)}y.appendChild(E),g.appendChild(y)}function t(e){return{Examination:n[e].Examination,Semester:n[e].Semester,Programme:n[e].Programme,Batch:n[e].Batch,CollegeCode:n[e].CollegeCode}}try{var n=JSON.parse(I.response);if(0===n.length){var a=document.createElement(C[0].tag);return h(0,a),a.innerHTML="Sorry, no result found.",void M.appendChild(a)}L=n[0].EnrollmentNumber;var r=document.createElement(C[0].tag);h(0,r),r.innerHTML=n[0].Name,M.appendChild(r);var o,d=["Name","Internal","External","Total"];i(n);for(var s=0;s<n.length;s++){var c,m,u,p,f,g,y,v,E,b,w,S,T,k,A,R;!function(a){if("-"!==n[a].Score)c=document.createElement("div"),m="sem"+parseInt(n[a].Semester);else if(o){var r=document.createElement("div");o.appendChild(r),c=r,m="sem-"}else o=document.createElement("div"),c=o,c.style.display="none",m="sem-",c.setAttribute("id",m);"sem-"!==m&&(c.setAttribute("id",m),c.style.display="none"),u=document.createElement(C[1].tag),h(1,u),u.innerHTML="Sem "+n[a].Semester,c.appendChild(u),p=document.createElement(C[25].tag),p.setAttribute("id","reportButton"+n[a].Semester),h(25,p),p.innerHTML='Report <i class="fa fa-download"></i>',p.onclick=function(e){x.call(null,I.response,n[a].Semester),e.srcElement.style.backgroundColor="#d9534f",e.srcElement.style.color="#fff",window.ga("send","event","Report","download","Sem Report")},c.appendChild(p),f=document.createElement(C[2].tag),h(2,f),g=document.createElement(C[3].tag),h(3,g),y=document.createElement("thead"),v=document.createElement("tbody"),E=document.createElement("tr"),e();for(var i=0;i<n[a].Marks.length;i++){E=document.createElement("tr"),b=document.createElement("th"),b.setAttribute("scope","row"),b.innerHTML=i+1,E.appendChild(b);for(var l=0;l<4;l++)w=document.createElement("td"),w.innerHTML=n[a].Marks[i][d[l]],E.appendChild(w);v.appendChild(E)}g.appendChild(v),f.appendChild(g),c.appendChild(f),"-"!==n[a].Score&&(S=document.createElement(C[4].tag),h(4,S),T=document.createElement(C[5].tag),h(5,T),T.innerHTML="Aggregate: "+n[a].Score,S.appendChild(T),k=document.createElement(C[5].tag),h(5,k),k.innerHTML="Credit Percentage: "+n[a].Credit,S.appendChild(k),A=document.createElement(C[6].tag),h(6,A),S.appendChild(A),c.appendChild(S),H[n[a].Semester]=document.createElement(C[9].tag),N[n[a].Semester]=t(a),h(9,H[n[a].Semester]),R=document.createElement(C[10].tag),h(10,R),R.innerHTML="Class List",R.setAttribute("onclick",function(e){return"getList("+e+")"}(n[a].Semester)),H[n[a].Semester].appendChild(R),c.appendChild(H[n[a].Semester])),c.appendChild(document.createElement("br")),c.appendChild(document.createElement("br")),"sem-"!==m&&M.appendChild(c)}(s)}o&&M.appendChild(o),l(B)}catch(e){console.log(e);var a=document.createElement(C[0].tag);h(0,a),a.innerHTML="An error occured.",M.appendChild(a)}}function g(){var e=S(I.response);M.appendChild(e)}function h(e,t){Object.keys(C[e]).forEach(function(n){"tag"!==n&&t.setAttribute(n,C[e][n])})}function y(e,t,n){var a=document.getElementById("compBtn"+n+"sem"+k);"show"===e?(a.setAttribute("class","fa fa-minus-square"),v(n,t)):a.setAttribute("class","fa fa-plus-square")}function v(e,t){var n=document.getElementById("comp"+e+"sem"+k);0===n.childNodes.length&&(b(n),E(e,t))}function E(e,t){function n(e){var t=document.getElementById("comp"+e+"sem"+k),n=t.childNodes[0];n.style.animation="fadeOut 1s",n.style.opacity=0;var a=w(r.response,k,A[k]);a.setAttribute("style","animation: fadeIn 2s"),setTimeout(function(){t.insertBefore(a,n),t.removeChild(n)},1e3)}function a(e){console.log("Comp not successful!",e)}var r=new XMLHttpRequest;r.addEventListener("load",n.bind(null,e)),r.addEventListener("error",a.bind(null,e)),r.open("GET","/find/"+t,!0),r.send()}function b(e){var t=document.createElement(C[17].tag);h(17,t),e.appendChild(t)}var C=n(0),w=n(4),S=n(5),x=n(1).semReport;Object.assign(window,n(6));var M,I,T,L,k,H={},N={},B="-",A=[];window.onload=function(){M=document.getElementById("Display"),I=new XMLHttpRequest,I.addEventListener("load",r),I.addEventListener("error",o),a()},window.findResult=function(){var e=document.getElementById("rollNumber").value.replace(/ /g,"");if(d(),/^\d{11}$/.test(e))I.open("GET","/find/"+e,!0),I.send();else{m();var t=document.createElement(C[0].tag);h(0,t),t.innerHTML="Please enter valid roll number.",M.appendChild(t)}},window.sampleResult=function(){document.getElementById("rollNumber").value="00210102714",findResult()};var R;window.getList=function(e){e="0"+e,H[e].childNodes[0].style.animation="fadeOut 1s",H[e].childNodes[0].style.opacity=0,H[e].childNodes[0].onclick="",c(H[e]);var t=new XMLHttpRequest;t.addEventListener("load",u.bind(null,e,t)),t.addEventListener("error",p.bind(null,e)),t.open("POST","/rank",!0),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),N[e].subject=L.substr(6,3),t.send(JSON.stringify(N[e]))}},function(e,t,n){"use strict";function a(e,t,n){for(var a=JSON.parse(e),d=0;d<a.length;d++)if(a[d].Semester==="0"+t){a=a[d];break}var i=document.createElement("div"),l=["Internal","External","Total"],s=document.createElement(o[2].tag);r(2,s);var c=document.createElement(o[18].tag);r(18,c);var m=document.createElement("thead"),u=document.createElement("tbody"),p=document.createElement("tr");!function(){for(var e=["Subject","Internal","External","Total"],t=0;t<e.length;t++){var n=document.createElement("th");n.innerHTML=e[t],p.appendChild(n)}m.appendChild(p),c.appendChild(m)}();for(var f=0;f<a.Marks.length;f++){p=document.createElement("tr");var g=document.createElement("td");g.setAttribute("scope","row"),g.innerHTML=a.Marks[f].Name,g.style.maxWidth="150px",g.style.wordWrap="break-word",p.appendChild(g);for(var h=0;h<l.length;h++){g=document.createElement("td"),g.innerHTML=a.Marks[f][l[h]],g.innerHTML+=" ";var y=parseInt(n[f][l[h]])-parseInt(a.Marks[f][l[h]]);if(y||0===y||(y=parseInt(n[f][l[h]]))||(y=-1*parseInt(a.Marks[f][l[h]])),y>=0){var v=document.createElement(o[19].tag);r(19,v),v.innerHTML=Math.abs(y),g.appendChild(v)}else if(y){var E=document.createElement(o[20].tag);r(20,E),E.innerHTML=Math.abs(y),g.appendChild(E)}p.appendChild(g)}u.appendChild(p)}c.appendChild(u),s.appendChild(c),i.appendChild(s);var b=document.createElement(o[4].tag);r(4,b);var C=document.createElement(o[5].tag);r(5,C);var w,S=Number(n[n.length-1])-Number(a.Score);S>=0?(w=document.createElement(o[19].tag),r(19,w)):(w=document.createElement(o[20].tag),r(20,w)),w.style.fontSize="20px",w.innerHTML=Math.abs(S.toFixed(2)),C.innerHTML="Aggregate: "+a.Score+" ",C.appendChild(w),b.appendChild(C);var x=document.createElement(o[5].tag);r(5,x);var M=Number(n[n.length-2])-Number(a.Credit);return M>=0?(w=document.createElement(o[19].tag),r(19,w)):(w=document.createElement(o[20].tag),r(20,w)),w.style.fontSize="20px",w.innerHTML=Math.abs(M.toFixed(2)),x.innerHTML="Credit Percentage: "+a.Credit+" ",x.appendChild(w),b.appendChild(x),i.appendChild(b),i}function r(e,t){Object.keys(o[e]).forEach(function(n){"tag"!==n&&t.setAttribute(n,o[e][n])})}var o=n(0);e.exports=a},function(e,t,n){"use strict";function a(e){var t=document.createElement(i[22].tag);o(22,t);var n=d(e),a=document.createElement("div");a.style.width="100%",a.style.marginTop="10px";var l=document.createElement("span");o(25,l),l.innerHTML='Report <i class="fa fa-download"></i>',l.onclick=r.bind(null,e,l);var s=document.createElement("span");s.style.color="#999",s.style.fontSize="24px",s.innerHTML="&nbsp;Summary",a.appendChild(s),a.appendChild(l),t.appendChild(a);var c=document.createElement("div");c.className="table-responsive";var m=document.createElement(i[23].tag);o(23,m);var u=document.createElement("thead"),p=document.createElement("tr"),f=[];["Sem","Aggregate","Credits"].forEach(function(e){var t=document.createElement("th");t.innerHTML=e,f.push(t)}),f.forEach(function(e){return p.appendChild(e)}),u.appendChild(p),m.appendChild(u);var g=document.createElement("tbody"),h=0,y=0;n.forEach(function(e,t){var n=document.createElement("tr"),a=document.createElement("th");a.setAttribute("scope","row"),a.innerHTML=t+1;var r=document.createElement("td");r.innerHTML=e.Score,h+=e.Score;var o=document.createElement("td");o.innerHTML=e.Credits,y=e.Credits,n.appendChild(a),n.appendChild(r),n.appendChild(o),g.appendChild(n)}),h=(h/n.length).toFixed(2),m.appendChild(g),c.appendChild(m),t.appendChild(c);var v=document.createElement("span");return v.innerHTML="&nbsp;Total: "+h+"<br>",t.appendChild(v),t}function r(e,t){t.style.backgroundColor="#d9534f",t.style.color="#fff",window.ga("send","event","Report","download","Complete Report"),l.completeReport(e)}function o(e,t){Object.keys(i[e]).forEach(function(n){"tag"!==n&&t.setAttribute(n,i[e][n])})}function d(e){e=JSON.parse(e);var t=[];return e.forEach(function(e){/REGULAR/gi.test(e.Examination)&&t.push({Sem:e.Semester,Score:e.Score,Credits:e.CreditsSecured})}),t.sort(function(e,t){return e.Sem-t.Sem}),t}var i=n(0),l=n(1);e.exports=a},function(e,t,n){"use strict";function a(e,t){var n={name:e,type:"overlay"};window.history.replaceState(n,{home:!0},null),t?(document.getElementById("overlay-"+e).style.width=Math.max(parseInt(.6*window.innerWidth),250)+"px",window.history.pushState(n,{home:!1},/menu/+e),window.ga("set","page","/menu/"+e),window.ga("send","pageview")):(document.getElementById("overlay-"+e).style.width="100%",window.history.pushState(n,{home:!1},e),window.ga("set","page","/"+e),window.ga("send","pageview"))}function r(e){window.history.back()}function o(e){window.ga("set","page","/result"),window.ga("send","pageview"),m&&(window.history.replaceState(null,{home:!0},""),window.history.pushState({type:"result"},{home:!1},"result"),m=!1)}function d(){window.history.replaceState({type:"result"},{home:!1},"rank"),window.ga("set","page","/rank"),window.ga("send","pageview")}function i(){document.getElementById("sidebar-menu").style.width="250px";var e={type:"menu"};window.history.replaceState(e,{home:!0},null),window.history.pushState(e,{home:!1},"menu"),window.ga("set","page","/menu"),window.ga("send","pageview")}function l(){window.history.back()}function s(){document.getElementById("Display").innerHTML=n(7),m=!0,c()}function c(){for(var e=1;e<=4;e++)!function(e){setTimeout(function(){var t=document.getElementById("intro"+e);t.style.animation="fadeIn 2s",t.style.opacity="1"},1e3*e)}(e)}window.addEventListener("popstate",function(e){null===e.state?s():"overlay"===e.state.type?document.getElementById("overlay-"+e.state.name).style.width="0%":"menu"===e.state.type&&(document.getElementById("sidebar-menu").style.width="0"),window.ga("set","page",location.pathname),window.ga("send","pageview")});var m=!0;e.exports={fixResultHistory:o,overlayIn:a,overlayOut:r,closeSideBar:l,setRankHistory:d,openSideBar:i}},function(e,t,n){"use strict";e.exports='<br> \t\t\t<div class="row" id="intro1" style="opacity: 0; padding: 5px 1px;">                 <div class="col-md-4 offset-md-4" style="color:#ccc; text-align: center; font-size: 20px;">CS and ECE results</div>             </div>             <div class="row" id="intro2" style="opacity: 0; padding: 5px 1px;">                 <div class="col-md-4 offset-md-4" style=" color:#ccc; text-align: center; font-size: 20px;">Downloadable reports</div>             </div>             <div class="row" id="intro3" style="opacity: 0; padding: 5px 1px;">                 <div class="col-md-4 offset-md-4" style=" color:#ccc; text-align: center; font-size: 20px;">Ad-free and open source</div>             </div>             <div class="row" id="intro4" style="opacity: 0; padding: 5px 1px;">                 <div class="col-md-6 offset-md-3" style=" color:#ccc; text-align: center; font-size: 20px;"><span style="cursor: pointer;" onclick="sampleResult()">Not a student? Click <u>here</u> for a sample result</span></div>             </div>'},function(e,t){},function(e,t){}]);