var recBlocks = document.querySelectorAll(
814 '.r:not([data-record-type="396"], [data-record-type="1003"], [data-parenttplid="396"], [data-parenttplid="1003"])' 816 var visibleRecBlocks = []; 818 for (var k = 0; k < recBlocks.length; k++) { 819 var record = recBlocks[k]; 820 var recStyles = getComputedStyle(record); 822 if (recStyles.display !== 'none' && recStyles.visibility !== 'hidden' && recStyles.opacity !== '0') { 823 visibleRecBlocks.push(record); 827 for (var i = 0; i < visibleRecBlocks.length; i++) { 828 var rec = visibleRecBlocks[i]; 829 var blocks = rec.querySelectorAll( 831 'div:not([data-auto-correct-mobile-width="false"]):not(.tn-elem):not(.tn-atom):not(.tn-atom__sbs-anim-wrapper)' + 832 ':not(.tn-atom__prx-wrapper):not(.tn-atom__videoiframe):not(.tn-atom__sticky-wrapper)' + 833 ':not(.t-catalog__relevants__container):not(.t-slds__items-wrapper):not(.js-product-controls-wrapper)' + 834 ':not(.t-store__relevants__container):not(.t-slds__items-wrapper):not(.js-product-controls-wrapper)' + 835 ':not(.js-product-edition-option):not(.t-product__option-variants)' 838 for (var j = 0; j < blocks.length; j++) { 839 var block = blocks[j]; 840 rec.style.wordBreak = ''; 841 var blockWidth = t_outerWidth(block); 843 if (blockWidth > windowWidth) { 844 if (block.getAttribute('[data-customstyle]') === 'yes') { 845 if (block.parentNode.getAttribute('[data-auto-correct-mobile-width]') === 'false') { 851 'Block not optimized for mobile width. Block width:' + 854 rec.getAttribute('id') 859 rec.style.overflow = 'auto'; 860 rec.style.wordBreak = blockWidth - 3 > windowWidth ? 'break-word' : ''; 866 function updateFontSize(breakpoint) { 867 var elements = document.querySelectorAll( 869 '.t-text:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 870 '.t-name:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 871 '.t-title:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 872 '.t-descr:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 873 '.t-heading:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 874 '.t-text-impact:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 875 '.t-subtitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), ' + 876 '.t-uptitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"])' 879 for (var i = 0; i < elements.length; i++) { 880 var element = elements[i]; 881 var elementStyle = element.getAttribute('style'); 882 if (!elementStyle) continue; 883 var isREMValue = element.getAttribute('data-auto-correct-font-size') === 'rem'; 885 if (document.documentElement.clientWidth > breakpoint) { 886 newStyle = elementStyle.replace('lineheight', 'line-height'); 887 newStyle = newStyle.replace('fontsize', 'font-size'); 888 element.setAttribute('style', newStyle); 890 if (elementStyle.indexOf('font-size') === -1) continue; 891 if (parseInt(getComputedStyle(element).fontSize.replace('px', '')) < 26) continue; 892 newStyle = elementStyle.replace('line-height', 'lineheight'); 893 newStyle = isREMValue 894 ? newStyle.replace(/font-size.*px;/gi, 'font-size: 1.6rem;') 895 : newStyle.replace('font-size', 'fontsize'); 896 element.setAttribute('style', newStyle);