Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DT =>
- <script>
- (function() {
- var campaignHeight = document.querySelector('.' + self.identifier + ' [tabindex').offsetHeight;
- var nativeContent = document.querySelector('div[id*="shopify-section-"].hp-hero');
- if (nativeContent) {
- nativeContent.style.marginTop = '11.5rem';
- }
- var nativeProductSection = document.querySelector('#shopify-section-product-duo-section');
- if (nativeProductSection) {
- nativeProductSection.style.marginTop = (campaignHeight + 58) + 'px';
- }
- var nativeLimitSection = document.querySelector('#limit');
- if (nativeLimitSection) {
- nativeLimitSection.style.marginTop = (campaignHeight + 58) + 'px';
- }
- var nativeFirstContainer = document.querySelector('body > .container');
- if (nativeFirstContainer) {
- nativeFirstContainer.style.marginTop = campaignHeight + 'px';
- }
- adoric.on("lightbox:before:close", function(e) {
- var nativeContent = document.querySelector('div[id*="shopify-section-"].hp-hero');
- if (e.lightbox.options.campaignId === self.campaignId) {
- if (nativeContent) {
- nativeContent.style.marginTop = '';
- }
- if (nativeProductSection) {
- nativeProductSection.style.marginTop = '';
- }
- if (nativeLimitSection) {
- nativeLimitSection.style.marginTop = '';
- }
- if (nativeFirstContainer) {
- nativeFirstContainer.style.marginTop = '';
- }
- }
- });
- })();
- </script>
- MOB =>
- <script>
- (function() {
- var campaignHeight = document.querySelector('.' + self.identifier + ' [tabindex').offsetHeight;
- var nativeContent = document.querySelector('body >div[id*="shopify-section-"]');
- var mobileMenuRows = document.querySelector('.mobile-plan-menu');
- if (nativeContent) {
- nativeContent.style.marginTop = '14rem';
- }
- if (mobileMenuRows) {
- mobileMenuRows.style.top = '5.7rem'
- }
- var nativeProductSection = document.querySelector('#shopify-section-product-duo-section');
- if (nativeProductSection) {
- nativeProductSection.style.marginTop = (campaignHeight + 58) + 'px';
- }
- var nativeLimitSection = document.querySelector('#limit');
- if (nativeLimitSection) {
- nativeLimitSection.style.marginTop = (campaignHeight + 58) + 'px';
- }
- var nativeFirstContainer = document.querySelector('body > .container');
- if (nativeFirstContainer) {
- nativeFirstContainer.style.marginTop = campaignHeight + 'px';
- }
- adoric.on("lightbox:before:close", function(e) {
- if (e.lightbox.options.campaignId === self.campaignId) {
- var nativeContent = document.querySelector('body >div[id*="shopify-section-"]');
- if (nativeContent) {
- nativeContent.style.marginTop = '';
- }
- var mobileMenuRows = document.querySelector('.mobile-plan-menu');
- if (mobileMenuRows) {
- mobileMenuRows.style.top = '';
- }
- if (nativeProductSection) {
- nativeProductSection.style.marginTop = '';
- }
- if (nativeLimitSection) {
- nativeLimitSection.style.marginTop = '';
- }
- if (nativeFirstContainer) {
- nativeFirstContainer.style.marginTop = '';
- }
- }
- });
- })();
- </script>
Add Comment
Please, Sign In to add comment