1(function($){ 2 $(document).on( 'click', '.filter-block li a', function( event ) { 3 $('.filter-block li a').removeClass('active'); 4 $('.horizontal-filter-posts li a').removeClass('active'); 5 $(this).addClass('active'); 6 var cat_id = $(this).attr('data-cat'); 7 event.preventDefault(); 8 $.ajax({ 9 url: ajaxurl, 10 method: "POST", 11 data: { 12 action: 'hotmagazine_load_posts', 13 cat: cat_id 14 }, 15 success: function( response ){ 16 //alert(response); 17 if( response != "" ){ 18 $('.posts-filtered-block.block-ha').addClass('loading'); 19 $('.posts-filtered-block.block-ha').html(response); 20 setTimeout(function(){ 21 $('.posts-filtered-block.block-ha').removeClass('loading'); 22 23 }, 300); 24 var owlWrap = $('.owl-wrapper'); 25 26 if (owlWrap.length > 0) { 27 28 if (jQuery().owlCarousel) { 29 owlWrap.each(function(){ 30 31 var carousel= $(this).find('.owl-carousel'), 32 dataNum = $(this).find('.owl-carousel').attr('data-num'), 33 dataNum2, 34 dataNum3; 35 36 if ( dataNum == 1 ) { 37 dataNum2 = 1; 38 dataNum3 = 1; 39 } else if ( dataNum == 2 ) { 40 dataNum2 = 2; 41 dataNum3 = dataNum - 1; 42 } else { 43 dataNum2 = dataNum - 1; 44 dataNum3 = dataNum - 2; 45 } 46 47 carousel.owlCarousel({ 48 autoPlay: 10000, 49 navigation : true, 50 items : dataNum, 51 itemsDesktop : [1199,dataNum2], 52 itemsDesktopSmall : [979,dataNum3] 53 }); 54 55 }); 56 }; 57 }; 58 } 59 else{ 60 61 } 62 63 } 64 }); 65 }); 66 67 $(document).on( 'click', '.horizontal-filter-posts li a', function( event ) { 68 $('.filter-block li a').removeClass('active'); 69 $('.horizontal-filter-posts li a').removeClass('active'); 70 $(this).addClass('active'); 71 var cat_id = $(this).attr('data-cat'); 72 event.preventDefault(); 73 $.ajax({ 74 url: ajaxurl, 75 method: "POST", 76 data: { 77 action: 'hotmagazine_load_posts', 78 cat: cat_id 79 }, 80 success: function( response ){ 81 //alert(response); 82 if( response != "" ){ 83 $('.posts-filtered-block.block-full').addClass('loading'); 84 $('.posts-filtered-block.block-full').html(response); 85 setTimeout(function(){ 86 $('.posts-filtered-block.block-full').removeClass('loading'); 87 88 }, 300); 89 var owlWrap = $('.owl-wrapper'); 90 91 if (owlWrap.length > 0) { 92 93 if (jQuery().owlCarousel) { 94 owlWrap.each(function(){ 95 96 var carousel= $(this).find('.owl-carousel'), 97 dataNum = $(this).find('.owl-carousel').attr('data-num'), 98 dataNum2, 99 dataNum3; 100 101 if ( dataNum == 1 ) { 102 dataNum2 = 1; 103 dataNum3 = 1; 104 } else if ( dataNum == 2 ) { 105 dataNum2 = 2; 106 dataNum3 = dataNum - 1; 107 } else { 108 dataNum2 = dataNum - 1; 109 dataNum3 = dataNum - 2; 110 } 111 112 carousel.owlCarousel({ 113 autoPlay: 10000, 114 navigation : true, 115 items : dataNum, 116 itemsDesktop : [1199,dataNum2], 117 itemsDesktopSmall : [979,dataNum3] 118 }); 119 120 }); 121 }; 122 }; 123 } 124 else{ 125 126 } 127 128 } 129 }); 130 }); 131 132 133 $(document).on( 'click', '.category-filter-posts li a', function( event ) { 134 $('.category-filter-posts li a').removeClass('active'); 135 $(this).addClass('active'); 136 var cat_id = $(this).attr('data-cat'); 137 var order = $(this).attr('data-order'); 138 event.preventDefault(); 139 $.ajax({ 140 url: ajaxurl, 141 method: "POST", 142 data: { 143 action: 'hotmagazine_list_load_posts', 144 cat: cat_id, 145 order: order 146 }, 147 success: function( response ){ 148 //alert(response); 149 if( response != "" ){ 150 $('#list_load').addClass('loading'); 151 $('#list_load').html(response); 152 setTimeout(function(){ 153 $('#list_load').removeClass('loading'); 154 }, 300); 155 156 } 157 else{ 158 159 } 160 161 } 162 }); 163 }); 164 165$(document).on( 'click', '.filter-slider-posts li a', function( event ) { 166 $('.filter-slider-posts li a').removeClass('active'); 167 $(this).addClass('active'); 168 var cat_id = $(this).attr('data-cat'); 169 event.preventDefault(); 170 $.ajax({ 171 url: ajaxurl, 172 method: "POST", 173 data: { 174 action: 'hotmagazine_slider_posts', 175 cat: cat_id 176 }, 177 success: function( response ){ 178 //alert(response); 179 if( response != "" ){ 180 $('.slider-wrap').addClass('loading'); 181 $('.slider-wrap').html(response); 182 setTimeout(function(){ 183 $('.slider-wrap').removeClass('loading'); 184 }, 500); 185 186 $('.slider-call').bxSlider({ 187 pagerCustom: '#bx-pager' 188 }); 189 190 } 191 else{ 192 193 } 194 195 } 196 }); 197}); 198 199var offset = 0; 200$(document).on( 'click', '.grid-box a.load-more2', function( event ) { 201 var cat_id = $(this).attr('data-cat'); 202 var order = parseInt($(this).attr('data-load')); 203 var found = parseInt($(this).attr('data-found')); 204 offset = offset + order; 205 if(offset < found){ 206
207 208 event.preventDefault(); 209 $.ajax({ 210 url: ajaxurl, 211 method: "POST", 212 data: { 213 action: 'hotmagazine_load_posts2', 214 cat: cat_id, 215 order: order, 216 offset: offset 217 }, 218 success: function( response ){ 219 220 if( response != "" ){ 221 222 $('#cat_'+cat_id).append(response); 223 setTimeout(function(){ 224 225 }, 200); 226 227 228 229 } 230 else{ 231 232 } 233 234 } 235 }); 236 237 238 }else{ 239 event.preventDefault(); 240 $(this).html('No post to load'); 241 } 242 243}); 244 245$(document).on( 'click', '.article-box a.load-list2', function( event ) { 246 247 var cat_id = $(this).attr('data-cat'); 248 var order = parseInt($(this).attr('data-load')); 249 var found = parseInt($(this).attr('data-found')); 250 offset = offset + order; 251 if(offset < found){ 252 253 254 event.preventDefault(); 255 $.ajax({ 256 url: ajaxurl, 257 method: "POST", 258 data: { 259 action: 'hotmagazine_load_postslist2', 260 cat: cat_id, 261 order: order, 262 offset: offset 263 }, 264 success: function( response ){ 265 266 if( response != "" ){ 267 268 $('#list2-'+cat_id).append(response); 269 setTimeout(function(){ 270 271 }, 200); 272 273 274 275 } 276 else{ 277 278 } 279 280 } 281 }); 282 283 284 }else{ 285 event.preventDefault(); 286 $(this).html('No post to load'); 287 } 288 289}); 290 291 292$(document).on( 'click', '.article-box a.load-morel', function( event ) { 293 var cat_id = $(this).attr('data-cat'); 294 var order = parseInt($(this).attr('data-load')); 295 var found = parseInt($(this).attr('data-found')); 296 var thumb = parseInt($(this).attr('data-thumb')); 297 offset = offset + order; 298 if(offset < found){ 299 300 301 event.preventDefault(); 302 $.ajax({ 303 url: ajaxurl, 304 method: "POST", 305 data: { 306 action: 'hotmagazine_load_postsl', 307 cat: cat_id, 308 order: order, 309 offset: offset, 310 thumb: thumb 311 }, 312 success: function( response ){ 313 314 if( response != "" ){ 315 316 $('.article-box #cat_'+cat_id).append(response); 317 setTimeout(function(){ 318 319 }, 200); 320 321 322 323 } 324 else{ 325 326 } 327 328 } 329 }); 330 331 332 }else{ 333 event.preventDefault(); 334 $(this).html('No post to load'); 335 } 336 337}); 338 339$(document).on( 'click', '.masonry-box a.load-morem', function( event ) { 340 //alert('sc'); 341 var cat_id = $(this).attr('data-cat'); 342 var order = parseInt($(this).attr('data-load')); 343 var found = parseInt($(this).attr('data-found')); 344 event.preventDefault(); 345 offset = offset + order; 346 if(offset < found){ 347 348 349 event.preventDefault(); 350 $.ajax({ 351 url: ajaxurl, 352 method: "POST", 353 data: { 354 action: 'hotmagazine_load_postsm', 355 cat: cat_id, 356 order: order, 357 offset: offset, 358 //thumb: thumb 359 }, 360 success: function( response ){ 361 362 if( response != "" ){ 363 364 $('.masonry-box #cat_'+cat_id).append(response); 365 setTimeout(function(){ 366 367 }, 200); 368 var $container=$('.iso-call'); 369 $container.isotope('destroy'); 370 //$container.isotope('insert', response); 371 //alert('s'); 372 373 var winDow = $(window); 374 // Needed variables 375 var $container=$('.iso-call'); 376 var $filter=$('.filter'); 377 378 try{ 379 $container.imagesLoaded( function(){ 380 // init 381 winDow.trigger('resize'); 382 $container.isotope({ 383 filter:'*', 384 layoutMode:'masonry', 385 itemSelector: '.iso-call > div', 386 masonry: { 387 columnWidth: '.default-size' 388 }, 389 animationOptions:{ 390 duration:750, 391 easing:'linear' 392 } 393 }); 394 }); 395 } catch(err) { 396 } 397 398 399 } 400 else{ 401 402 } 403 404 } 405 }); 406 407 408 }else{ 409 event.preventDefault(); 410 $(this).html('No post to load'); 411 } 412 413}); 414})(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.