1 2 3(function($){ 4 5 function masonryBlockRight() { 6 if(window.Masonry){ 7 var container = document.querySelector('#blockRight .list-ms-item'); 8 var msnry; 9 if($(window).width()<992 && $(window).width()>767){ 10 msnry = new Masonry( container, { 11 itemSelector: '.ms-item', 12 columnWidth: '.ms-item', 13 } ); 14 }else{ 15 msnry = new Masonry( container, { 16 itemSelector: '.ms-item', 17 columnWidth: '.ms-item', 18 } ); 19 msnry.destroy(); 20 } 21 } 22 } 23 24 function ActiveZoombox() { 25 $(".thecontent a,.top_img,.big_img_link,span.wrap-img").each(function(index) { 26 27 children = $(this).find('img').first(); 28 var pos_recaptcha = -1; 29 if (typeof $(this).attr('id') !== 'undefined') { 30 pos_recaptcha = $(this).attr('id').toLowerCase().indexOf("recaptcha"); 31 } 32 33 let href = null; 34 if($(this).attr('href')) { 35 href = $(this).attr('href'); 36 }else if($(this).attr('data-href')) { 37 href = $(this).attr('data-href'); 38 $(this).attr('href', $(this).attr('data-href')); 39 }else if($(this).attr('data-ref')) { 40 href = $(this).attr('data-ref'); 41 $(this).attr('href', $(this).attr('data-ref')); 42 }else if(children.length > 0){ 43 href = children.attr('src'); 44 if(href) { 45 $(this).attr('href', href); 46 } 47 } 48 49 if(href) { 50 href = href.toLowerCase().split(/[#?]/)[0].split('.').pop(); 51 href = href.match('/gif|jpg|jpeg|png|webp|avif/'); 52 } 53 54 if (children.length == 1 && children[0].tagName == "IMG" && $(this).parents(".diaporama").length === 0 && pos_recaptcha == -1 && href) { 55 56 if ($(this).attr("title") === null) { 57 $(this).attr("title", strip_tags(document.title)); 58 } 59 try { 60 if(typeof($.fn.zoombox) === 'function'){ 61 $(this).zoombox(); 62 } 63 64 } catch (e) {} 65 } 66 }); 67 } 68 69 function masonryFooter() { 70 if(window.Masonry){ 71 var container = document.querySelector('footer>.container'); 72 if( container ){ 73 var msnry_options = { 74 itemSelector: '.ms-item', 75 columnWidth: '.ms-item', 76 }; 77 if( $('body').hasClass('rtl') ) { 78 msnry_options.isOriginLeft = false; 79 } 80 var msnry = new Masonry( container, msnry_options); 81 } 82 } 83 } 84 85 $(document).ready(function(){ 86 87 masonryFooter(); 88 89 if( $('#blockRight .list-ms-item').length ){ 90 masonryBlockRight(); 91 } 92 93 // wait till loading.. 94 $(window).on('load',function(){ 95 if( $('#blockRight .list-ms-item').length ){ 96 if($(window).width()<992 && $(window).width()>767){ 97 masonryBlockRight(); 98 setTimeout( masonryBlockRight , 5000 ) ; 99 } 100 } 101 102 if($.zoombox){ 103 ActiveZoombox(); 104 } 105 }); 106 107 $(window).resize(function(){ 108 if( $('#blockRight .list-ms-item').length ){ 109 masonryBlockRight(); 110 } 111 }); 112 }); 113})(jQuery);
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.