This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GTMid = 'GTM-XXXXX'; // Your GTM id here | |
var orderId = window.chData.order.carthook_order_id; | |
var lastChargedLineItems = window.chData.order.last_charged_line_items; | |
window.dataLayer = window.dataLayer || []; | |
var transactionProducts = []; | |
var taxPrice = 0; | |
var subtotalPrice = 0; | |
for (var i = 0; i < lastChargedLineItems.length; i++) { | |
var item = lastChargedLineItems[i]; | |
transactionProducts.push({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var endorsPlusButtons = document.querySelectorAll(".endorsable"); | |
var index = 0; | |
if (endorsPlusButtons.length) { | |
var interval = setInterval(() => { | |
if (index < (endorsPlusButtons.length)) { | |
setTimeout((indx) => { | |
endorsPlusButtons[indx].querySelector(".endorse-plus").click(); | |
}, parseInt(Math.random() * 11) * 400, index); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |