small script changes. Updates to G2's modal popup.

This commit is contained in:
Norm Rasmussen
2023-06-16 16:13:44 -04:00
parent 807739cae6
commit b526e92bfc
43 changed files with 2796 additions and 43 deletions

View File

@ -17,6 +17,7 @@
$(document).ready(function () {
setLastViewedCourse();
addTargetBlankToLinksInCourseDescription();
});
function setLastViewedCourse() {
@ -26,7 +27,7 @@
};
$.ajax({
type: 'POST',
url: 'https://www.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/course-viewed', //workato link
url: 'https://www.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/course-viewed', //workato link
data: JSON.stringify(data),
success: function (data) {
console.log(data);
@ -38,10 +39,28 @@
});
}
function addTargetBlankToLinksInCourseDescription() {
let rte = document.getElementsByClassName("np-card-text")[0];
let links;
if (rte) {
links = rte.querySelectorAll("a");
if (links) {
for (i = 0; i < links.length; i++) {
links[i].setAttribute("target", "_blank");
}
}
}
}
</script>
<style>
.custom-course-page {
max-width: 1600px !important;
}
/* Based on how things are setup, at the course cover page, the footer is entirely blocked due to all of the customizations */
.np-footer{
display: none;
}
</style>