1/* CTA */ 2 3(function() { 4 'use strict' 5 6 return 7 8 function init() { 9 if (!window.jQuery) { 10 setTimeout(init, 100) 11 return; 12 } 13 14 const $ = jQuery 15 16 $(function() { 17 return 18 const resize = () => { 19 // Lame 20 $('.ibf-cta').each(function() { 21 22 const w = $(this).width() 23 let ratio = 5/16 24 25 if ($(window).width() < 600) { 26 ratio = .8 27 } 28 29 if ($(this).hasClass('ibf-cta-fullwidth')) { 30 $(this).height(w * ratio) 31 return; 32 } 33 34 if ($(window).width() < 600) { 35 $(this).height(w * ratio) 36 return 37 } 38 39 const $closest = $(this).closest('.wp-block-columns') 40 if ($closest.length) { 41 if ($closest.find('.ibf-video-thumbnail-container').length) { 42 $(this).height($closest.find('.ibf-video-thumbnail-container').outerHeight()) 43 return 44 } 45 } 46 $(this).height(w * 2/3) 47 }) 48 49 } 50 resize() 51 $(window).on('resize', resize); 52 $(document).on('ibf-video-resized', resize) 53 /* 54 let h = 0 55 const resizeOverlay = () => { 56 h = 0 57 $('.wp-block-columns .wp-block-column .ibf-cta-content-container').each(function() { 58 h = Math.max($(this).height(), h) 59 console.log(h) 60 }) 61 $('.wp-block-columns .wp-block-column .ibf-cta-content-container').each(function() { 62 if ($(this).closest('.wp-block-columns').css('display') == 'block') { 63 $(this).css('height', 'inherit') 64 return 65 } 66 $(this).height(h) 67 }) 68 } 69 resizeOverlay() 70 $(window).on('resize', function() { 71 $ 72 resizeOverlay() 73 }) 74 */ 75 }) 76 } 77 init() 78})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.