diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2021-01-18 23:14:05 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2021-01-18 23:14:05 +0100 |
commit | 65bfd6e4ede09c32384aae5411191908d9a86b1b (patch) | |
tree | b0349407e0e4e391b9813faeb909e4663ef1e428 /dist/js | |
parent | Merge pull request #29 from beziapp/dev (diff) | |
parent | Merge branch 'master' into dev (diff) | |
download | beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar.gz beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar.bz2 beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar.lz beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar.xz beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.tar.zst beziapp-65bfd6e4ede09c32384aae5411191908d9a86b1b.zip |
Diffstat (limited to '')
-rwxr-xr-x | dist/js/app.js | 4 | ||||
-rwxr-xr-x | dist/js/gsec.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dist/js/app.js b/dist/js/app.js index 6d1226e..816250f 100755 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -4,8 +4,8 @@ // @begin=js@ -const app_version = "1.0.16.2-beta"; -const previous_commit = "90dfb784cc11a8cc52e3cfb063273f44849f62a1"; +const app_version = "1.0.16.3-beta"; +const previous_commit = "5376b618e88d85b3fc16561176478c104af1a01b"; const BEZIAPP_UPDATE_INTERVAL = 300; // update vsakih 300 sekund if ("serviceWorker" in navigator) { 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);} |