New script for Karbon. Luminate and Williams-Sonoma template updates.
This commit is contained in:
@ -58,7 +58,9 @@
|
||||
<script>
|
||||
console.log("{{ completed_date }}")
|
||||
</script>
|
||||
{% comment %} {% if completed_date == 0 %}
|
||||
{% comment %}
|
||||
This will be enabled when the WSGC team is ready. Leave it commented out until then.
|
||||
{% if completed_date == 0 %}
|
||||
<script>
|
||||
window.location.replace("/app/dashboard")
|
||||
</script>
|
||||
|
||||
BIN
Custom_Templates/customer_templates/WSGC - Post_New_Hire/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/WSGC - Post_New_Hire/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
Custom_Templates/customer_templates/Walmart Luminate Mexico/.DS_Store
vendored
Normal file
BIN
Custom_Templates/customer_templates/Walmart Luminate Mexico/.DS_Store
vendored
Normal file
Binary file not shown.
@ -1,52 +1,52 @@
|
||||
<script>
|
||||
function showPopup() {
|
||||
setTimeout(function() {
|
||||
document.querySelector(".popup-trigger").click()
|
||||
}, 500)
|
||||
}
|
||||
|
||||
function showSurveyPopup() {
|
||||
setTimeout(function() {
|
||||
document.querySelector(".survey-popup-trigger").click()
|
||||
}, 500)
|
||||
}
|
||||
|
||||
function formatDate(date) {
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
const day = date.getDate().toString().padStart(2, '0');
|
||||
const year = date.getFullYear();
|
||||
|
||||
return `${month}/${day}/${year}`;
|
||||
}
|
||||
|
||||
function RerunWorkato() {
|
||||
const today = new Date();
|
||||
const formattedDate = formatDate(today);
|
||||
const data = {
|
||||
person_uuid: '{{current_person.id}}',
|
||||
date: formattedDate
|
||||
}
|
||||
|
||||
let webhookUrl
|
||||
if (schoolID == "804edb32-c300-42f3-82b7-e5d55fcbc2a6") {
|
||||
webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup"
|
||||
} else if (schoolID == "10183441-2254-4b1e-a9f7-9549ca773257") { // live school
|
||||
webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup-live"
|
||||
}
|
||||
|
||||
if (webhookUrl) {
|
||||
fetch(webhookUrl, {
|
||||
method: 'post',
|
||||
body: JSON.stringify(data)
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
}).then(function(data) {
|
||||
console.log(res)
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
}
|
||||
// function showPopup() {
|
||||
// setTimeout(function() {
|
||||
// document.querySelector(".popup-trigger").click()
|
||||
// }, 500)
|
||||
// }
|
||||
//
|
||||
// function showSurveyPopup() {
|
||||
// setTimeout(function() {
|
||||
// document.querySelector(".survey-popup-trigger").click()
|
||||
// }, 500)
|
||||
// }
|
||||
//
|
||||
// function formatDate(date) {
|
||||
// const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
// const day = date.getDate().toString().padStart(2, '0');
|
||||
// const year = date.getFullYear();
|
||||
//
|
||||
// return `${month}/${day}/${year}`;
|
||||
// }
|
||||
//
|
||||
// function RerunWorkato() {
|
||||
// const today = new Date();
|
||||
// const formattedDate = formatDate(today);
|
||||
// const data = {
|
||||
// person_uuid: '{{current_person.id}}',
|
||||
// date: formattedDate
|
||||
// }
|
||||
//
|
||||
// let webhookUrl
|
||||
// if (schoolID == "804edb32-c300-42f3-82b7-e5d55fcbc2a6") {
|
||||
// webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup"
|
||||
// } else if (schoolID == "10183441-2254-4b1e-a9f7-9549ca773257") { // live school
|
||||
// webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup-live"
|
||||
// }
|
||||
//
|
||||
// if (webhookUrl) {
|
||||
// fetch(webhookUrl, {
|
||||
// method: 'post',
|
||||
// body: JSON.stringify(data)
|
||||
// }).then(function(response) {
|
||||
// return response.json();
|
||||
// }).then(function(data) {
|
||||
// console.log(res)
|
||||
// }).catch(error => {
|
||||
// console.log(error)
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
||||
{% assign catalog_courses = courses.in_catalog %}
|
||||
@ -180,7 +180,8 @@
|
||||
{% include "homepage_ongoing_training", items: catalog_courses %}
|
||||
|
||||
{% comment %} {% include "homepage_topics" %} {% endcomment %}
|
||||
<button
|
||||
{% comment %}
|
||||
<button
|
||||
type="button"
|
||||
class="popup-trigger"
|
||||
data-toggle-class-on-target
|
||||
@ -199,6 +200,7 @@
|
||||
data-toggle-modal>
|
||||
Click
|
||||
</button>
|
||||
{% endcomment %}
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user