1$(document).ready(function(){ 2 var containerEl = document.querySelector('.mixitup-container'); 3 if(containerEl) 4 { 5 var config = { 6 selectors:{ 7 target: '[data-ref="mixitup-target"]' 8 }, 9 animation:{ 10 effects: 'fade scale stagger(50ms)' // Set a 'stagger' effect for the loading animation 11 }, 12 load:{ 13 filter: 'none' // Ensure all targets start from hidden (i.e. display: none;) 14 }, 15 animation:{ 16 duration: 350 17 }, 18 controls:{ 19 scope: 'local' 20 }, 21 callbacks: { 22 onMixStart:function(state) { 23 }, 24 onMixEnd:function() { 25 InitLazyLoad(); 26 } 27 } 28 }; 29 var mixer = mixitup(containerEl, config); 30 31 // Add a class to the container to remove 'visibility: hidden;' from targets. This 32 // prevents any flickr of content before the page's JavaScript has loaded. 33 34 containerEl.classList.add('mixitup-ready'); 35 36 // Show all targets in the container 37 38 mixer.show() 39 .then(function(){ 40 // Remove the stagger effect for any subsequent operations 41 mixer.configure({ 42 animation: { 43 effects: 'fade scale' 44 } 45 }); 46 }); 47 } 48 49}) 50 51 52$(document).ready(function(){ 53 54 var currentUrl = window.location.pathname, 55 isset = false; 56 $('.top_block2 a').removeClass('active-n'); 57 58 $(document).find('.top_block2 a').each(function () { 59 var linkPath = $(this).attr('href'); 60 61 if (linkPath === currentUrl) { 62 isset = true; 63 $(this).addClass('active-n'); 64 } 65 }); 66 if(isset == false){ 67 $('.top_block2 a:first-child').addClass('active-n'); 68 } 69 70 $('.get_news-home').on('click', function(e){ 71 e.preventDefault(); 72 let cat = $(this).attr('data-cat'); 73 // $('.top_block2 a').removeClass('active-n'); 74 // $(this).addClass('active-n'); 75 $.ajax({ 76 url: '/novosti/index_categories.php?cat=' + cat + '&test=y', 77 type: 'GET', 78 dataType: 'html', 79 success: function (response) { 80 //console.log(response); 81 var content = $(response).find('.main-news-grid-wrapper').html(); 82 83 if (content) { 84 $('.NEWS .main-news-grid-wrapper').html(content); 85 86 if (window.innerWidth < 1099){ 87 let news_html = $('.main-news-grid-3 .main-news-grid-item:eq(2)').html(); 88 $('.main-news-grid-3 .main-news-grid-item:eq(2)').remove(); 89 $('.main-news-grid-4').prepend('<div class="main-news-grid-item">' + news_html + '</div>'); 90 } 91 } 92 } 93 }); 94 95 }); 96 97});
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.