Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- /*Soda DT update position*/
- (function() {
- function moveNativeContent() {
- var currentCanvas = document.querySelector('.' + self.identifier + ' [tabindex]');
- if (!currentCanvas) return;
- var newBar = document.querySelector('#header-v2.d-block .header-v2-container.header-desktop');
- if (newBar) {
- newBar.style.marginTop = '';
- }
- var additionlMenu = document.querySelector('.duo-menu');
- if (additionlMenu) {
- additionlMenu.style.top = '16.4rem';
- }
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', function() {
- moveNativeContent();
- setTimeout(moveNativeContent, 250);
- });
- } else {
- moveNativeContent();
- setTimeout(moveNativeContent, 250);
- }
- })();
- </script>
- <script>
- /*Soda MOB update position*/
- (function() {
- function moveNativeContent() {
- var currentCanvas = document.querySelector('.' + self.identifier + ' [tabindex]');
- if (!currentCanvas) return;
- var newBar = document.querySelector('#header-v2.d-block .header-v2-container.header-mobile');
- var nativeDropDown = document.querySelectorAll('.menu-dropdown-container');
- var nativeMobileNavigation = document.querySelector('.header-mobile-navigation');
- if (newBar && nativeDropDown && nativeMobileNavigation) {
- newBar.style.marginTop = '';
- nativeMobileNavigation.style.marginTop = '';
- for (var i = 0; i < nativeDropDown.length; i++) {
- nativeDropDown[i].style.marginTop = '';
- }
- }
- var additionlMenu = document.querySelector('.duo-menu');
- if (additionlMenu) {
- additionlMenu.style.top = '12.3rem';
- }
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', function() {
- moveNativeContent();
- setTimeout(moveNativeContent, 500);
- });
- } else {
- moveNativeContent();
- setTimeout(moveNativeContent, 500);
- }
- })();
- </script>
Add Comment
Please, Sign In to add comment