diff --git a/assets/js/home.js b/assets/js/home.js new file mode 100644 index 0000000..7c19c89 --- /dev/null +++ b/assets/js/home.js @@ -0,0 +1,22 @@ +import { getCookie } from "./cookiehelper.js"; +import { initListIndex } from "./list.index.js"; + +initListIndex(); + +$('#detailBtn').click(function () { + $('.bdy-ul').addClass('d-none'); + // Unibase.Themes.Compact.Components.Notification.Instance().loadReminderDetails(105013010001972,105010260000090,'Details','null',6,0,null) + const cookie = getCookie('_idty'); + if (cookie) { + const { + unibaseId, + tenantId, + userId + } = JSON.parse(cookie); + debugger; + $('#detailIframe').html( + `` + ); + } + +}); \ No newline at end of file diff --git a/assets/js/mian.js b/assets/js/mian.js new file mode 100644 index 0000000..e090aea --- /dev/null +++ b/assets/js/mian.js @@ -0,0 +1,11 @@ +import { isAuthenticated } from "./cookiehelper.js"; + +function checkUser(params) { + if (isAuthenticated()) { + window.location = './authentication'; + } else { + window.location = './login'; + } +} + +checkUser(); \ No newline at end of file