Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function () {
- function cartClick(event) {
- if (event.target.closest('.widget-wrap > a:nth-child(1)')) {
- setTimeout(function () {
- var nativeCart = document.querySelector('.popup-container');
- if (nativeCart) {
- adoric && adoric.trigger('showCelebrationCampaign');
- document.body.removeEventListener('click', cartClick, true);
- }
- }, 500);
- }
- }
- function showAdoricCampaign() {
- document.body.addEventListener('click', cartClick, true);
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', showAdoricCampaign);
- } else {
- showAdoricCampaign();
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement