diff --git a/assets/css/list.page.css b/assets/css/list.page.css index f173feb..80830c8 100644 --- a/assets/css/list.page.css +++ b/assets/css/list.page.css @@ -1,8 +1,8 @@ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap'); :root { --topNavHeight: 75px; - --rtrWidth: 60px; - --lftWidth: 300px; + --rtrWidth: 50px; + --lftWidth: 275px; --tpMenuPad: 30px; --icnPadng: 10px 0px; --prmBgColor: rgb(244, 244, 221); @@ -135,6 +135,7 @@ li.logo-li { .ctr-lst-pge { position: fixed; + z-index: 2; left: var(--lftWidth); right: var(--rtrWidth); height: inherit; @@ -261,4 +262,23 @@ a.badge { } -/* Scroll bar End Here */ \ No newline at end of file +/* Scroll bar End Here */ + +.accordion-button::after { + background-size: 0.9rem !important; + ; +} + +a[role="button"]:focus { + box-shadow: none !important; +} + +#notifi-list .item-li:first .accordion-button:not(.collapsed) { + border-top-left-radius: var(--lstPgArc); + border-top-right-radius: var(--lstPgArc); +} + +input[type="checkbox"] { + box-shadow: none !important; + border-radius: 2px; +} \ No newline at end of file diff --git a/assets/js/base.js b/assets/js/base.js index e04bd0d..d59d3d6 100644 --- a/assets/js/base.js +++ b/assets/js/base.js @@ -1,4 +1,4 @@ -const serverUrl = 'https://test.bizgaze.app/'; +const serverUrl = 'https://c01.bizgaze.app/'; let _baseUserInfo = atob(document.cookie.split('=')[1]); let baseUserInfo = JSON.parse(_baseUserInfo).result; let baseSessionId = baseUserInfo.sessionId; @@ -25,12 +25,50 @@ function getData(url) { }); } -function formatLocal(dateTime) { - var date = moment.utc(dateTime).local(); - var difmonths = moment().diff(date, 'months'); +function getDataObj(url, data, async, type) { //url, data, true, "POST" - if (difmonths == 0) { - return this.formatPeriod(date); + let serviceurl = serverUrl + url; + return $.ajax({ + type: type, + url: serviceurl, + data: JSON.stringify(data), + contentType: 'application/json', + traditional: true, + crossDomain: true, + async: async, + beforeSend: function(xhr) { + if (baseUserInfo != undefined && baseUserInfo != null) { + xhr.setRequestHeader('Authorization', 'Basic ' + baseSessionId); + xhr.setRequestHeader('geoposition', 0 + ':' + 0); + } + } + }); +} + +function formatLocal(dateTime) { + var hou = new Date(dateTime).getHours(), + sec, min, day, month, years; + if (hou < 24) { + min = new Date(dateTime).getMinutes(); + if (min < 60) { + sec = new Date(dateTime).getSeconds(); + if (sec < 60) { + return sec + ' Seconds'; + } + } else { + return min + ' Minutes'; + } + return hou + ' Hours'; + } else { //24 > + day = new Date(dateTime).getHours(); + if (day > 31) { // 31 day + month = new Date(dateTime).getMonth(); + if (month > 12) { // 12 months + years = new Date(dateTime).getFullYear(); + return years + ' Years'; + } + return month + ' month'; + } + return day + ' day'; } - return date.format("DD MMM, YYYY HH:mm"); } \ No newline at end of file diff --git a/assets/js/list.index.js b/assets/js/list.index.js index 9357e75..a5a3cb8 100644 --- a/assets/js/list.index.js +++ b/assets/js/list.index.js @@ -14,27 +14,126 @@ $('.uindtls').html(usrinfoHTML) // List Page loading getData('apis/v4/unibase/reminders/platform/getunreadreminders/ReminderType/6/PageSize/20').then(function(result) { let response = JSON.parse(result.result); - let bdyUI = ''; - for (var i = 0; i < response.length; i++) { - bdyUI += `
-