summaryrefslogtreecommitdiffstats
path: root/dist/js/gsec.js
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-01-18 10:03:30 +0100
committersijanec <anton@sijanec.eu>2021-01-18 10:03:30 +0100
commit5c8d213252e72998320cf89c1baca6bfe72e05c0 (patch)
tree5fad31da8f326e2679bd1e295ef01675ee59a56b /dist/js/gsec.js
parentadded nginx config file for bežiapp html host (diff)
downloadbeziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar.gz
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar.bz2
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar.lz
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar.xz
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.tar.zst
beziapp-5c8d213252e72998320cf89c1baca6bfe72e05c0.zip
Diffstat (limited to '')
-rwxr-xr-xdist/js/gsec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/js/gsec.js b/dist/js/gsec.js
index 59d95bf..be98853 100755
--- a/dist/js/gsec.js
+++ b/dist/js/gsec.js
@@ -2,7 +2,7 @@
var gseAbsenceTypes=["notProcessed","authorizedAbsence","unauthorizedAbsence","doesNotCount"];function getStringBetween(string,start,end){return string.split(start).pop().split(end)[0];}
function stripHtml(html){var tmp=document.createElement("DIV");tmp.innerHTML=html;return tmp.textContent||tmp.innerText||"";}
function slDayToInt(inputString){let fourChars=inputString.substring(1,5);let fourCharDays=["oned","orek","reda","etrt","etek","obot","edel"];return fourCharDays.indexOf(fourChars);}
-const GSE_URL="https://zgimsis.gimb.tk/gse/";const GSEC_ERR_NET="GSEC NETWORK ERROR (ajax error)";const GSEC_ERR_NET_POSTBACK_GET="GSEC NETWORK ERROR (ajax error) in postback GET"
+const GSE_URL="https://zgimsis.gimb.tk/";const GSEC_ERR_NET="GSEC NETWORK ERROR (ajax error)";const GSEC_ERR_NET_POSTBACK_GET="GSEC NETWORK ERROR (ajax error) in postback GET"
const GSEC_ERR_NET_POSTBACK_POST="GSEC NETWORK ERROR (ajax error) in postback POST"
const GSEC_MSGTYPE_RECEIVED=0;const GSEC_MSGTYPE_SENT=1;const GSEC_MSGTYPE_DELETED=2;const GSEC_ERR_LOGIN="GSEC LOGIN ERROR";const GSEC_NO_ABSENCES="noAbsences";const GSEC_MSGTYPES=["msgReceived","msgSent","msgDeleted"];const GSEC_NORMAL_GRADE="GSEC NORMAL GRADE";const GSEC_ZAKLJUCNA_GRADE="GSEC ZAKLJUCNA GRADE";class gsec{constructor(){}
parseAndPost(inputHTML,params,formId=null,useDiffAction=null){return new Promise((resolve,reject)=>{let parser=new DOMParser();let parsed=parser.parseFromString(inputHTML,"text/html");var form;if(formId==null){form=parsed.getElementsByTagName("form")[0];}else{form=parsed.getElementById(formId);}