Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- function checkCampaignsAudience() {
- var showGassPinkUpsellCart = false;
- if (document.querySelector('#cartForm a[href*="variant=39436783616079"]') ||
- document.querySelector('#cartForm a[href*="variant=39436782207055"]') ||
- document.querySelector('#cartForm a[href*="variant=32906410623055"]') ||
- document.querySelector('#cartForm a[href*="variant=32906410655823"]')) {
- showGassPinkUpsellCart = true;
- }
- if (document.querySelector('#cartForm a[href*="variant=39276166119503"]')) {
- showGassPinkUpsellCart = false;
- }
- window.localStorage.setItem('showGassPinkUpsellCart', showGassPinkUpsellCart);
- var showGassBlueUpsellCart = false;
- if (document.querySelector('#cartForm a[href*="crystal-2-0?variant=32349247897679"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32349266870351"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32319202820175"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32319202885711"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32349312155727"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32349302947919"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32319203180623"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32319203147855"]') ||
- document.querySelector('#cartForm a[href*="one-touch"]')) {
- showGassBlueUpsellCart = true;
- }
- if (document.querySelector('#cartForm a[href*="reservezylinder?variant=39276165038159"]')) {
- showGassBlueUpsellCart = false;
- }
- window.localStorage.setItem('showGassBlueUpsellCart', showGassBlueUpsellCart);
- var showGassForAllUpsellCart = true;
- if (document.querySelector('#cartForm a[href*="crystal-2-0?variant=32349247897679"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32349266870351"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32319202820175"]') ||
- document.querySelector('#cartForm a[href*="crystal-2-0?variant=32319202885711"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32349312155727"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32349302947919"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32319203180623"]') ||
- document.querySelector('#cartForm a[href*="easy?variant=32319203147855"]') ||
- document.querySelector('#cartForm a[href*="one-touch"]') ||
- document.querySelector('#cartForm a[href*="variant=39436783616079"]') ||
- document.querySelector('#cartForm a[href*="variant=39436782207055"]') ||
- document.querySelector('#cartForm a[href*="variant=32906410623055"]') ||
- document.querySelector('#cartForm a[href*="variant=32906410655823"]')) {
- showGassForAllUpsellCart = false;
- }
- window.localStorage.setItem('showGassForAllUpsellCart', showGassForAllUpsellCart);
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', checkCampaignsAudience);
- } else {
- checkCampaignsAudience();
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement