Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- function checkCampaignsAudience() {
- var showGassInCart = false;
- if (document.querySelector('#cartForm a[href*="/products/fizzi-pepsi"]') ||
- document.querySelector('#cartForm a[href*="/products/one-touch-pepsi"]') ||
- document.querySelector('#cartForm a[href*="/products/one-touch-starter-kit"]')) {
- showGassInCart = true;
- }
- if (document.querySelector('#cartForm a[href*="/products/diet-lemon-lime"]')) {
- showGassInCart = false;
- }
- window.localStorage.setItem('showGassInCart', showGassInCart);
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', checkCampaignsAudience);
- } else {
- checkCampaignsAudience();
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement