1(function(){ 2 var breakpoint = matchMedia('(max-width: 767px)'); 3 var flickity; 4 5 breakpoint.addListener(function (breakpoint) { 6 breakpointChecker(breakpoint); 7 }); 8 9 breakpointChecker(breakpoint); 10 11 function breakpointChecker (breakpoint) { 12 if (breakpoint.matches) { 13 init(); 14 } 15 else { 16 destroy(); 17 } 18 } 19 20 function init () { 21 flickity = new Flickity(document.querySelector('.strate-shortlist_agences'), { 22 pageDots: false, 23 imagesLoaded: true 24 }); 25 } 26 27 function destroy () { 28 if (flickity && typeof flickity.destroy === 'function') { 29 flickity.destroy(); 30 } 31 } 32})();
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.