https://www.littlemissgemtravels.com/wp-content/plugins/interactiv…/includes/responsive.js?ver=7.0.6
1 2var iwmdelay = (function(){ 3 var timer = 0; 4 return function(callback, ms){ 5 clearTimeout (timer); 6 timer = setTimeout(callback, ms); 7 }; 8})(); 9 10 11function iwm_resize(map_divs,skipcheck) { 12 13 14 jQuery.each( map_divs, function( index, element ) { 15 16 if(typeof element != 'undefined') { 17 18 //we access the .iwm_map_canvas 19 var map_div = element.div.parent(); 20 21 if(!map_div.is(':visible')) { 22 23 if(!skipcheck){ 24 setTimeout(function(){ iwm_resize(map_divs,true); }, 1); 25 } 26 } 27 28 else { 29 30 //we check the parent width - site layout - for changes 31 var width = map_div.parent().width(); 32 //if it's the same we terminate function 33 if(width==element.lastWidth) { 34 35 return; 36 37 } 38 39 40 //else we redraw the map 41 iwmdelay(function(){ 42 43 if (typeof iwmDrawVisualization == 'function') { 44 45 map_div.animate({ 46 opacity: 0, 47 }, 100, function() { 48 iwmDrawVisualization(true); 49 50 }); 51 52 map_div.animate({ 53 opacity: 1, 54 }, 50, function() { 55 // Animation complete. 56 }); 57 58 59 } 60 61 }, 200); 62 63 64 //end else 65 } 66 67 } 68 69 //end each 70 }); 71 72} 73 74 75jQuery(window).on('resize orientationchange', function() { 76 77 iwm_resize(iwmMapObj); 78 79}); 80 81//solution for tabbed content (custom - needs to target tab links) 82/* 83jQuery('.vc_tta-tabs-list').click(function(){ 84 iwm_resize(iwmMapObj); 85}); 86*/
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.