Skip to content
Snippets Groups Projects
Commit 2b1d9047 authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Update with get ID button

parent 9630b1f6
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,11 @@ ...@@ -48,8 +48,11 @@
return [year, month, day].join('-'); return [year, month, day].join('-');
} }
addEventListener("load", (e) => { //addEventListener("load", (e) => {
$("#widgetsDahsboard .grid-stack").append("\r\n<div class=\"grid-stack-item ui-draggable ui-resizable ui-resizable-autohide ui-resizable-disabled\" id=\"gs_RB9Buttons\" data-color=\"danger\" data-gs-id=\"gs_RB9Buttons\" data-gs-x=\"8\" data-gs-y=\"2\" data-gs-width=\"4\" data-gs-height=\"2\" data-gs-no-resize=\"yes\">\r\n <div class=\"panel panel-danger shadow grid-stack-item-content ui-draggable-handle\">\r\n <div class=\"panel-heading\">\r\n <table>\r\n <tbody>\r\n <tr class=\"tableheader\">\r\n <td><i style=\"font-size:35px; padding-right:5px; padding-left:5px\" class=\"fa fa fa-wrench \"><\/i><\/td>\r\n <td>\r\n <h3 class=\"panel-title\">Toolkit<\/h3><h5 class=\"panelSubTitle\">Utilities Toolkit<\/h5>\r\n <\/td>\r\n <\/tr>\r\n <tr><\/tr>\r\n <\/tbody>\r\n <\/table>\r\n <\/div>\r\n <div id=\"content_RB9Buttons\" style=\"display:block; width: 100%;padding:0px;\" class=\"ifNoDataInWidget\">\r\n<span class=\"txtalignCenter\"><a id=\"rb9ButtonGetTTWeek\">Get Timetable (This Week)<\/a><\/span>\r\n<\/div>\r\n <\/div><div class=\"ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se\" style=\"z-index: 90; display: none;\"><\/div>\r\n <\/div>"); $("#widgetsDahsboard .grid-stack").append("\r\n<div class=\"grid-stack-item ui-draggable ui-resizable ui-resizable-autohide ui-resizable-disabled\" id=\"gs_RB9Buttons\" data-color=\"danger\" data-gs-id=\"gs_RB9Buttons\" data-gs-x=\"8\" data-gs-y=\"2\" data-gs-width=\"4\" data-gs-height=\"2\" data-gs-no-resize=\"yes\">\r\n <div class=\"panel panel-danger shadow grid-stack-item-content ui-draggable-handle\">\r\n <div class=\"panel-heading\">\r\n <table>\r\n <tbody>\r\n <tr class=\"tableheader\">\r\n <td><i style=\"font-size:35px; padding-right:5px; padding-left:5px\" class=\"fa fa fa-wrench \"><\/i><\/td>\r\n <td>\r\n <h3 class=\"panel-title\">Toolkit<\/h3><h5 class=\"panelSubTitle\">Utilities Toolkit<\/h5>\r\n <\/td>\r\n <\/tr>\r\n <tr><\/tr>\r\n <\/tbody>\r\n <\/table>\r\n <\/div>\r\n <div id=\"content_RB9Buttons\" style=\"display:block; width: 100%;padding:0px;\" class=\"ifNoDataInWidget\">\r\n<span class=\"txtalignCenter\"><a id=\"rb9ButtonGetTTWeek\">Get Timetable (This Week)<\/a><\/span>\r\n<\/div>\r\n <\/div><div class=\"ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se\" style=\"z-index: 90; display: none;\"><\/div>\r\n <\/div>");
$("#content_RB9Buttons").append("<br /><a onclick=\"alert(userGuidingUserId.split('$')[0]);\">Get User ID</a>");
$("#rb9ButtonGetTTWeek").on("click", () => { $("#rb9ButtonGetTTWeek").on("click", () => {
var now = new Date(); var now = new Date();
var today = new Date(now.getFullYear(), now.getMonth(), now.getDate()); var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
...@@ -64,5 +67,5 @@ ...@@ -64,5 +67,5 @@
alert("Copied to Clipboard."); alert("Copied to Clipboard.");
}); });
}); });
}); //});
})(); })();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment