1jQuery(document).ready( 2 function($) { 3 "use strict"; 4 5if(document.readyState === "complete"){ 6 $('#main').fadeTo(1000, 1); 7} 8else { 9 $(window).on("load", function() { 10 $('#main').fadeTo(1000, 1); 11 }); 12} 13 14 $('.slide-title, .slide-excerpt, .slide-date, .top-menu-posts li').addClass(widget_fx); 15 $('.blog-post-image img, .img-featured-posts-image img, .featured-posts-image img, .small-image img, .tv-big-image img, .tv-small-posts-image img, .multi-category-image img').wrap("<div class='" + image_effect + "'></div>"); 16 $('#secondary .home-widget').each(function() { 17 $(this).removeClass('two-parts three-parts four-parts').addClass('one-part') 18 }); 19 20 //wp-widgets width 21 $('.widget_text, .widget_recent_comments, .widget_recent_entries, .widget_calendar, .widget_nav_menu, .widget_pages, .widget_archive, .widget_links, .widget_meta, .widget_tag_cloud, .widget_rss, .widget_search, .widget_categories, .woocommerce, .widget[id*=bbp_], .widget[id*=bp_]').each(function() { 22 $(this).closest('.home-widget').addClass('one-part'); 23 }); 24 25 //Masonry script 26 if ($('#fullwidth').length) { 27 var fullwidthmas = $('#fullwidth').masonry({ 28 columnWidth: function(containerWidth) { 29 return containerWidth / 4; 30 }, 31 itemSelector: '.home-widget', 32 animationOptions: { 33 duration: 200 34 } 35 }); 36 fullwidthmas.imagesLoaded(function() { 37 setTimeout(function() { 38 fullwidthmas.masonry(); 39 }, 500); 40 }); 41 $(window).resize(function() { 42 setTimeout(function() { 43 fullwidthmas.masonry(); 44 }, 500); 45 }); 46 } 47 48 49 //responsive widgets layout 50 function checkWidth() { 51 if ($('#fullwidth').length) { 52 var fullsize = $('#main').width(); 53 54 if(fullsize < 984){ 55 if ($('#fullwidth').hasClass('tablet-response')){ 56 }else{ 57 var divClone = $('#fullwidth .one-part').clone().addClass('clone-masonry-res'); 58 $('#fullwidth .one-part').hide(); 59 divClone.appendTo('#fullwidth'); 60 $('#fullwidth').addClass('tablet-response'); 61 } 62 } 63 else if(fullsize < 631){ 64 if ($('#fullwidth').hasClass('tablet-response')){ 65 $( ".clone-masonry-res" ).remove(); 66 $('#fullwidth .one-part').show(); 67 $('#fullwidth').removeClass('tablet-response'); 68 } 69 } 70 else if (fullsize > 984){ 71 if ($('#fullwidth').hasClass('tablet-response')){ 72 $( ".clone-masonry-res" ).remove(); 73 $('#fullwidth .one-part').show(); 74 $('#fullwidth').removeClass('tablet-response'); 75 } 76 } 77 78 79 setTimeout(function() {$('#fullwidth').masonry().masonry('reloadItems');}, 500); 80 81 }} 82 checkWidth(); 83 $(window).resize(checkWidth); 84 85 86 //tabber 87 88 if ($('.tabber-container').length) { 89 //tabs 90 $('.tabber-container').each(function() { 91 $(this).find(".tabber-content").hide(); 92 $(this).find("ul.tabs li:first").addClass("active").show(); 93 $(this).find(".tabber-content:first").show(); 94 }); 95 $("ul.tabs li").click( 96 function(e) { 97 $(this).parents('.tabber-container').find("ul.tabs li") 98 .removeClass("active"); 99 $(this).addClass("active"); 100 $(this).parents('.tabber-container').find( 101 ".tabber-content").hide(); 102 var activeTab = $(this).find("a").attr("href"); 103 $(this).parents('.tabber-container').find(activeTab) 104 .fadeIn(); 105 e.preventDefault(); 106 }); 107 $("ul.tabs li a").click(function(e) { 108 e.preventDefault(); 109 }); 110 } 111 //ticker 112 113 function tick() { 114 var first_tick = $("ul.ticker-list li:first").width();
115 $("ul.ticker-list li:first").animate({ 116 marginLeft: -first_tick 117 }, 800, function() { 118 $(this).detach().appendTo("ul.ticker-list").removeAttr("style"); 119 var first_tick = $("ul.ticker-list li:first").width(); 120 }); 121 } 122 123 function tak() { 124 var last_tick = $("ul.ticker-list li:last-child").width(); 125 $("ul.ticker-list li:first").animate({ 126 marginLeft: last_tick 127 }, 800, function() { 128 $("ul.ticker-list li:last-child").detach().prependTo("ul.ticker-list"); 129 $("ul.ticker-list li").removeAttr("style"); 130 var last_tick = $("ul.ticker-list li:last-child").width(); 131 }); 132 } 133 $('.ticker-right').click(function() { 134 tick(); 135 }); 136 $('.ticker-left').click(function() { 137 tak(); 138 }); 139 140 var interval = setInterval(tick, 5000); 141 142 $('ul.ticker-list li, .ticker-left, .ticker-right').hover(function() { 143 clearInterval(interval); 144 }, function() { 145 interval = setInterval(tick, 5000); 146 }); 147 148 $(window).on( "load", function() { 149 function ticket_width() { 150 $('#ticker-list-box').css('width', $('#ticker').width() - $('.ticker-heading').outerWidth() - 20); 151 } 152 ticket_width(); 153 $(window).resize(ticket_width); 154 }); 155 156 //share-icons 157 158 function sharewidthresponsive() { 159 var sharewidthfull = $('.share-post').outerWidth(true); 160 var sharewidth = $('.share-title').outerWidth(true); 161 $('.share-post ul').css('width', sharewidthfull - sharewidth - 2); 162 }; 163 sharewidthresponsive(); 164 $(window).resize(sharewidthresponsive); 165 166 //fixed-menu 167 var aboveHeight = $('#nav-wrapper').offset().top; 168 $(window).scroll(function() { 169 if ($(window).scrollTop() > aboveHeight) { 170 $('.show-menu').addClass('fixed-menu'); 171 } else { 172 $('.show-menu').removeClass('fixed-menu'); 173 } 174 }); 175 176 177 //fixed-floating-share 178 if ($('.floating-share-icons').length) { 179 $('.floating-share-icons').height($('#post-content').height()); 180 $(window).scroll(function() { 181 $('.floating-share-icons').height($('#post-content').height()); 182 var above = ($('.floating-share-icons').offset().top) - ($('#wpadminbar').height() + $('#nav-wrapper .fixed-menu').height()); 183 if ($(window).scrollTop() - above > 0 && ($(window).scrollTop() - above) - ($('#post-content').height() - $('.floating-share-icons ul').height() - $('#wpadminbar').height() - 20) < 0){ 184 185 $('.floating-share-icons ul').css('position','fixed').css('top', $('#nav-wrapper .fixed-menu').height()+ $('#wpadminbar').height() + 20).css('bottom', 'auto'); 186 187 } else if ($(window).scrollTop() - above > 0 && ($(window).scrollTop() - above) - ($('#post-content').height() - $('.floating-share-icons ul').height() - $('#wpadminbar').height() - 20) > 0) { 188 189 $('.floating-share-icons ul').css('position','absolute').css('top','auto').css('bottom', '0'); 190 }else{ 191 $('.floating-share-icons ul').css('position','absolute').css('top', 20).css('bottom', 'auto'); 192 } 193 }); 194 } 195 196 197 //sidebar height 198 199 function sidebarheight() { 200 $(window).on( "load", function() { 201 var fullsize = $('#wrapper').width(); 202 var primaryheight = $('#primary').height(); 203 if (fullsize > 1024) { 204 $('#secondary').css('min-height', primaryheight); 205 } else { 206 $('#secondary').css('min-height', 0); 207 } 208 209 }); 210 } 211 $(window).on( "load", function() { 212 setTimeout(function() { 213 sidebarheight(); 214 }, 500); 215 216 }); 217 $(window).resize(sidebarheight); 218 219 //fixed-sidebar-last widget 220 221 $(window).on( "load", function() { 222 if ($('#secondary .home-widget:last-child').length) { 223 224 var widgetaboveHeight = $('#secondary .home-widget:last-child ').offset().top - ($('#wpadminbar').height() + $('#nav-wrapper .show-menu').height()); 225 if ($('#navigation').hasClass('show-menu')) { 226 $('#secondary .home-widget:last-child').addClass('navigation-has-menu'); 227 } 228 229 var primaryheight = $('#primary').height(); 230 var secondaryheight = 0; 231 $('#secondary .home-widget').each(function() { 232 secondaryheight = $(this).height(); 233 }); 234 235 236 //fixed widget in #secondary area 237 $(window).scroll(function() { 238 239 if (primaryheight - secondaryheight < 0) { 240 $('#secondary .fixed-widget').css('position', 'relative'); 241 $('#secondary .home-widget:last-child ').css('top', '0'); 242 243 } else { 244 if ($(window).scrollTop() > widgetaboveHeight) { 245 $('#secondary .home-widget:last-child').addClass('fixed-widget'); 246 } else { 247 $('#secondary .home-widget:last-child ').removeClass('fixed-widget'); 248 } 249 250 if ($('#footer').offset().top - ($(window).scrollTop() + $('.fullwidth ').not('.popular-part').height() + $('#secondary .home-widget:last-child').height() + $('#navigation.fixed-menu').height() + 80) < 0) { 251 $('#secondary .home-widget:last-child ').css('top', $('#footer').offset().top - ($(window).scrollTop() + $('.fullwidth ').not('.popular-part').height() + $('#secondary .home-widget:last-child').height() + 80)); 252 253 //alert($('#fullwidth ').height()); 254 } else { 255 $('#secondary .home-widget:last-child ').css('top', '') 256 } 257 } 258 }); 259 }; 260 }); 261 262 function fixedwidgetwidth() { 263 var secondarywidth = $('#secondary').width(); 264 $('#secondary .home-widget:last-child ').css('max-width', secondarywidth); 265 } 266 fixedwidgetwidth(); 267 $(window).resize(fixedwidgetwidth); 268 269 270 271 272 //scroll effects 273 274 $(window).scroll(function() { 275 var exm1top = $(this).scrollTop(); 276 var exm1height = $(this).height(); 277 var exm1bottom = exm1top + exm1height; 278 279 280 $('#fullwidth .home-widget').each(function() { 281 282 var geget = $(this).offset().top; 283 if (exm1bottom > geget && geget > exm1height) { 284 $(this).find('.widget').addClass(widget_fx); 285 } 286 287 }); 288 289 $('.score-line').each(function() { 290 291 var geget = $(this).offset().top; 292 if (exm1bottom > geget && geget > exm1height) { 293 $(this).find('.score-width').addClass('active'); 294 } 295 }); 296 }); 297 298 //carousel 299 if ($('.carousel').length) { 300 $(window).on( "load", function() { 301 $('.carousel').each(function() { 302 function normalcarousel_grid() { 303 return (window.innerWidth < 700) ? 2 : 304 (window.innerWidth < 1024) ? 3 : carouselitems; 305 } 306 $(window).resize(function() { 307 var gridSize = normalcarousel_grid(); 308 $('.carousel').each(function() { 309 $(this).data('flexslider').vars.minItems = gridSize; 310 }); 311 $('.carousel').each(function() { 312 $(this).data('flexslider').vars.maxItems = gridSize; 313 }); 314 $('.carousel').each(function() { 315 $(this).data('flexslider').vars.move = gridSize; 316 }); 317 }); 318 var widget_size = $(this).closest('.home-widget'); 319 320 if ($(widget_size).hasClass('one-part')) { 321 var carouselitems = 2; 322 } else if ($(widget_size).hasClass('two-parts')) { 323 var carouselitems = 3; 324 } else if ($(widget_size).hasClass('three-parts')) { 325 var carouselitems = 4; 326 } else if ($(widget_size).hasClass('four-parts')) { 327 var carouselitems = 5; 328 } 329 330 331 $(this).flexslider({ 332 333 animation: 'slide', 334 itemWidth: 210, 335 itemMargin: 10, 336 minItems: normalcarousel_grid(), 337 maxItems: normalcarousel_grid(), 338 move: normalcarousel_grid(), 339 slideshow: false, 340 controlNav: false, 341 directionNav: true, 342 start: function(slider) { 343 slider.fadeTo(1000, 1); 344 slider.removeClass('loading'); 345 }, 346 after: function(slider) { 347 slider.resize(); 348 } 349 }); 350 }); 351 }); 352 } 353 354 355 //tv-widget carousel
356 if ($('.tv-ajax-carousel').length) { 357 $(window).on( "load", function() { 358 $('.tv-ajax-carousel').each(function() { 359 function ajaxcarousel_grid() { 360 return (window.innerWidth < 700) ? 2 : 361 (window.innerWidth < 1024) ? 3 : carouselitems; 362 } 363 $(window).resize(function() { 364 var gridSize = ajaxcarousel_grid(); 365 $('.tv-ajax-carousel').each(function() { 366 $(this).data('flexslider').vars.minItems = gridSize; 367 }); 368 $('.tv-ajax-carousel').each(function() { 369 $(this).data('flexslider').vars.maxItems = gridSize; 370 }); 371 $('.tv-ajax-carousel').each(function() { 372 $(this).data('flexslider').vars.move = gridSize; 373 }); 374 }); 375 var widget_size = $(this).closest('.home-widget'); 376 377 if ($(widget_size).hasClass('one-part')) { 378 var carouselitems = 2; 379 } else if ($(widget_size).hasClass('two-parts')) { 380 var carouselitems = 3; 381 } else if ($(widget_size).hasClass('three-parts')) { 382 var carouselitems = 4; 383 } else if ($(widget_size).hasClass('four-parts')) { 384 var carouselitems = 6; 385 } 386 387 388 $(this).flexslider({ 389 390 animation: 'slide', 391 itemWidth: 410, 392 itemMargin: 10, 393 minItems: ajaxcarousel_grid(), 394 maxItems: ajaxcarousel_grid(), 395 move: ajaxcarousel_grid(), 396 slideshow: false, 397 controlNav: false, 398 directionNav: true, 399 start: function(slider) { 400 401 }, 402 after: function(slider) { 403 slider.resize(); 404 } 405 }); 406 }); 407 }); 408 } 409 410 411 //video type page carousel 412 if ($('.tv-carousel').length) { 413 var tv_carousel; 414 415 416 417 $(window).on( "load", function() { 418 function tv_carousel_grid() { 419 return (window.innerWidth < 700) ? 2 : 420 (window.innerWidth < 1024) ? 3 : 5; 421 } 422 $('.tv-carousel').flexslider({ 423 animation: 'slide', 424 itemWidth: 210, 425 itemMargin: 10, 426 useCSS: false, 427 minItems: tv_carousel_grid(), 428 maxItems: tv_carousel_grid(), 429 move: tv_carousel_grid(), 430 slideshow: false, 431 controlNav: false, 432 directionNav: true, 433 start: function(slider) { 434 tv_carousel = slider; 435 }, 436 after: function(slider) { 437 tv_carousel.resize(); 438 } 439 }); 440 441 $(window).resize(function() { 442 var gridSize = tv_carousel_grid(); 443 tv_carousel.vars.minItems = gridSize; 444 tv_carousel.vars.maxItems = gridSize; 445 }); 446 447 448 }); 449 } 450 451 452 //type pages ajax 453 $('.term-post-format-video').on('click', '.ajax', function(e) { 454 e.preventDefault(); 455 var post_id = $(this).attr("data-number"); 456 457 jQuery.ajax({ 458 post: post_id, 459 type: "POST", 460 data: { 461 id: post_id 462 }, 463 success: function(output) { 464 $(".tv-video-wrapper").replaceWith($('.tv-video-wrapper', output)); 465 $(".tv-format-title").replaceWith($('.tv-format-title', output)); 466 $(".tv-format-subtitle").replaceWith($('.tv-format-subtitle', output)); 467 } 468 }); 469 }); 470 471 472 473 $(window).on( "load", function() { 474 $('.term-post-format-gallery').on('click', '.ajax', function(e) { 475 e.preventDefault(); 476 var post_id = $(this).attr("data-number"); 477 478 jQuery.ajax({ 479 post: post_id, 480 type: "POST", 481 data: { 482 id: post_id 483 }, 484 success: function(output) { 485 $(".tv-video-wrapper").replaceWith($('.tv-video-wrapper', output)); 486 $(".tv-format-title").replaceWith($('.tv-format-title', output)); 487 $(".tv-format-subtitle").replaceWith($('.tv-format-subtitle', output));
488 $('.post-page-gallery-thumbnails').flexslider({ 489 animation: 'slide', 490 controlNav: false, 491 animationLoop: false, 492 slideshow: false, 493 itemWidth: 166, 494 itemMargin: 0, 495 minItems: 4, 496 maxItems: 4, 497 move: 4, 498 directionNav: true, 499 asNavFor: '.post-page-gallery-slider', 500 start: function(slider) { 501 slider.fadeTo(1000, 1); 502 slider.removeClass('loading'); 503 } 504 }); 505 506 $('.post-page-gallery-slider').flexslider({ 507 animation: slide_picker, 508 controlNav: false, 509 animationLoop: false, 510 slideshow: false, 511 sync: '.post-page-gallery-thumbnails', 512 start: function(slider) { 513 slider.fadeTo(1000, 1); 514 slider.removeClass('loading'); 515 } 516 }); 517 } 518 }); 519 }); 520 }); 521 522 $('.term-post-format-video, .term-post-format-gallery').on('click', '.pagination a', function(e) { 523 e.preventDefault(); 524 var link = $(this).attr('href'); 525 526 $('.tv-page-widget').append('<div class="more-posts"></div>'); 527 $('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 528 $('.more-posts').load(link + ' .tv-page-widget li, .pagination', function() { 529 $('.more-posts li').hide().detach().appendTo('.tv-page-widget ul').fadeIn(500); 530 $('.more-posts .pagination').detach().appendTo('.tv-page-widget'); 531 $('.more-posts').remove(); 532 $('.load-content').remove(); 533 534 }); 535 }); 536 537 $('.archive #primary, .blog #primary').on('click', '.pagination a', function(e) { 538 e.preventDefault(); 539 var link = $(this).attr('href'); 540 541 $('#blog-list').append('<div class="more-posts"></div>'); 542 $('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 543 $('.more-posts').load(link + ' #blog-list li, .pagination', function() { 544 $('.more-posts li').hide().detach().appendTo('#blog-list ul').fadeIn(500); 545 $('.more-posts .pagination').detach().appendTo('#blog-list'); 546 $('.more-posts').remove(); 547 $('.load-content').remove(); 548 549 }); 550 }); 551 552 553 554 //menu button for responsive mobile 555 556 557 $("#mob-menu .mob-menu-button").click(function() { 558 $("#main-nav ul, #navigation").toggleClass("active"); 559 $('#mob-menu').toggleClass("active"); 560 561 }); 562 563 564 //super slider widget 565 566 567 568 function superslidermargin() { 569 $('.home-widget.fullwidth-super-slider, .fullwidth-ticker, .fullwidth-image').css('max-width', $(window).width()); 570 $('.home-widget.fullwidth-super-slider, .fullwidth-ticker, .fullwidth-image').css('margin-left', -($('#main').offset().left + 10)); 571 }; 572 superslidermargin(); 573 $(window).on( "load", function() {superslidermargin();}); 574 $(window).resize(superslidermargin); 575 576 if ($('.super-slider').length) { 577 $(window).on( "load", function() { 578 function getGridSize() { 579 return (window.innerWidth < 700) ? 1 : 580 (window.innerWidth < 1024) ? 2 : 3; 581 } 582 $('.super-slider').flexslider({ 583 animation: 'slide', 584 useCSS: false, 585 animationLoop: true, 586 slideshowSpeed: 8000, 587 itemWidth: 210, 588 itemMargin: 0, 589 move: getGridSize(), 590 minItems: getGridSize(), // use function to pull in initial value 591 maxItems: getGridSize(), // use function to pull in initial value 592 start: function(slider) { 593 $('.loading').fadeTo(1000, 1); 594 slider.removeClass('loading'); 595 }, 596 after: function(slider) { 597 slider.resize(); 598 } 599 }); 600 601 // check grid size on resize event 602 $(window).resize(function() { 603 var gridSize = getGridSize(); 604 $('.super-slider').each(function() { 605 $(this).data('flexslider').vars.minItems = gridSize; 606 }); 607 $('.super-slider').each(function() { 608 $(this).data('flexslider').vars.maxItems = gridSize; 609 }); 610 $('.super-slider').each(function() { 611 $(this).data('flexslider').vars.move = gridSize; 612 }); 613 614 }); 615 616 }); 617 } 618 //wide slider 619 620 621 $(window).on( "load", function() { 622 $('.wide-slider').each(function() { 623 624 625 var widget_id = $(this).closest('.widget').attr('id'); 626 var widget_id_p = '#' + widget_id;
627 var widget_id_x = '.' + widget_id; 628 $(widget_id_p).find('.wide-slider-control li').addClass(widget_id); 629 630 $(this).flexslider({ 631 animation: slide_picker, 632 slideshowSpeed: 8000, 633 manualControls: $(widget_id_x), 634 controlNav: true, 635 directionNav: true, 636 pauseOnHover: true, 637 start: function(slider) { 638 $('.slider-container').fadeTo("fast", 1); 639 $('.wide-slider-control').fadeTo("fast", 1); 640 } 641 }); 642 }); 643 }); 644 645 //Gallery slider 646 $(window).on( "load", function() { 647 $('.post-page-gallery-thumbnails').flexslider({ 648 animation: 'slide', 649 controlNav: false, 650 animationLoop: false, 651 slideshow: false, 652 itemWidth: 166, 653 itemMargin: 0, 654 minItems: 4, 655 maxItems: 4, 656 move: 4, 657 directionNav: true, 658 asNavFor: '.post-page-gallery-slider', 659 start: function(slider) { 660 slider.fadeTo(1000, 1); 661 slider.removeClass('loading'); 662 } 663 }); 664 665 $('.post-page-gallery-slider').flexslider({ 666 animation: slide_picker, 667 controlNav: false, 668 animationLoop: false, 669 slideshow: false, 670 sync: '.post-page-gallery-thumbnails', 671 start: function(slider) { 672 slider.fadeTo(1000, 1); 673 slider.removeClass('loading'); 674 } 675 676 }); 677 }); 678 679 //super-menu scripts 680 function mousein_triger(){ 681 var fullsize = $('#wrapper').width(); 682 if (fullsize > 700) { 683 $(".menu-item").removeClass("active"); 684 $(this).addClass("active"); 685 $(this).find('.sub-menu-wrapper').css('visibility', 'hidden').show(); 686 $(this).find('.sub-menu-wrapper').height($(this).find('.sub-menu').height()); 687 $(this).find('.sub-menu-wrapper').css('visibility', 'visible').hide(); 688 $(this).children('.sub-menu-wrapper, .sub-meni').fadeIn(150); 689 690 } 691 } 692 function mouseout_triger() { 693 694 $(this).children('.sub-menu-wrapper, .sub-meni').fadeOut(150); 695 } 696 var settings = { 697 sensitivity: 4, 698 interval: 150, 699 timeout: 300, 700 over: mousein_triger, 701 out:mouseout_triger 702 703 }; 704 $('.menu-item').not( '.inside-menu .menu-item' ).hoverIntent( settings ); 705 706 707 var settings1 = { 708 sensitivity: 4, 709 interval: 0, 710 timeout: 300, 711 over: mousein_triger, 712 out:mouseout_triger 713 714 }; 715 716$( '.inside-menu .menu-item' ).hoverIntent( settings1 ); 717 718//load more for blogroll1 719 if ($('.widget_blog_category_exm1 .pagination').length) { 720 721 $('.widget_blog_category_exm1').off().on('click', '.pagination a', function(e) { 722 e.preventDefault(); 723 724 var parent = $(this).parents('.widget_blog_category_exm1').attr('id'); 725 parent = '#' + parent; 726 var link = $(this).attr('href'); 727 728 $(parent+'.widget_blog_category_exm1').append('<div class="more-posts"></div>'); 729 $(parent).find('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 730 $(parent).find('.more-posts').load(link + ' '+ parent +' .blog-category li, '+ parent +' .pagination', function() { 731 $(parent).find('.more-posts li').hide().detach().appendTo(parent+' .blog-category ul').fadeIn(500); 732 $(parent).find('.more-posts .pagination').detach().appendTo(parent+' .blog-category'); 733 $(parent).find('.more-posts').remove(); 734 $(parent).find('.load-content').remove(); 735 if ($('#fullwidth').length) { 736 $('#fullwidth').masonry().masonry('reloadItems'); 737 } 738 }); 739 }); 740 } 741 742 743//load more for blogroll3 744 if ($('.widget_blog_category_three_exm1 .pagination').length) { 745 746 $('.widget_blog_category_three_exm1').off().on('click', '.pagination a', function(e) { 747 e.preventDefault(); 748 749 var parent = $(this).parents('.widget_blog_category_three_exm1').attr('id'); 750 parent = '#' + parent; 751 var link = $(this).attr('href'); 752 753 $(parent+'.widget_blog_category_three_exm1').append('<div class="more-posts"></div>'); 754 $(parent).find('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 755 $(parent).find('.more-posts').load(link + ' '+ parent +' .blogroll3 li, '+ parent +' .pagination', function() { 756 $(parent).find('.more-posts li').hide().detach().appendTo(parent+' .blogroll3 ul').fadeIn(500); 757 $(parent).find('.more-posts .pagination').detach().appendTo(parent+' .blogroll3'); 758 $(parent).find('.more-posts').remove(); 759 $(parent).find('.load-content').remove(); 760 if ($('#fullwidth').length) { 761 $('#fullwidth').masonry().masonry('reloadItems'); 762 } 763 }); 764 }); 765 } 766 767 768//load more for featured big images 769 if ($('.widget_img_featured_category_exm1 .pagination').length) { 770 771 $('.widget_img_featured_category_exm1').off().on('click', '.pagination a', function(e) { 772 e.preventDefault(); 773 774 var parent = $(this).parents('.widget_img_featured_category_exm1').attr('id'); 775 parent = '#' + parent; 776 var link = $(this).attr('href'); 777 778 $(parent+'.widget_img_featured_category_exm1').append('<div class="more-posts"></div>'); 779 $(parent).find('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 780 $(parent).find('.more-posts').load(link + ' '+ parent +' .img-featured-category.big li, '+ parent +' .pagination', function() { 781 $(parent).find('.more-posts li').hide().detach().appendTo(parent+' .img-featured-category.big ul').fadeIn(500); 782 $(parent).find('.more-posts .pagination').detach().appendTo(parent+' .img-featured-category.big'); 783 $(parent).find('.more-posts').remove(); 784 $(parent).find('.load-content').remove(); 785 if ($('#fullwidth').length) { 786 $('#fullwidth').masonry().masonry('reloadItems'); 787 } 788 }); 789 }); 790 } 791 792//load more for featured huge images 793 if ($('.widget_huge_img_featured_category_exm1 .pagination').length) { 794 795 $('.widget_huge_img_featured_category_exm1').off().on('click', '.pagination a', function(e) { 796 e.preventDefault(); 797 798 var parent = $(this).parents('.widget_huge_img_featured_category_exm1').attr('id'); 799 parent = '#' + parent; 800 var link = $(this).attr('href'); 801 802 $(parent+'.widget_huge_img_featured_category_exm1').append('<div class="more-posts"></div>'); 803 $(parent).find('.pagination').replaceWith('<div class="load-content"><div class="load-circle"></div></div>'); 804 $(parent).find('.more-posts').load(link + ' '+ parent +' .img-featured-category.huge li, '+ parent +' .pagination', function() { 805 $(parent).find('.more-posts li').hide().detach().appendTo(parent+' .img-featured-category.huge ul').fadeIn(500); 806 $(parent).find('.more-posts .pagination').detach().appendTo(parent+' .img-featured-category.huge'); 807 $(parent).find('.more-posts').remove(); 808 $(parent).find('.load-content').remove(); 809 if ($('#fullwidth').length) { 810 $('#fullwidth').masonry().masonry('reloadItems'); 811 } 812 }); 813 }); 814 } 815 816 817 818 $(window).on( "load", function() { 819 $('.popular-slider').flexslider({ 820 animation: 'fade', 821 slideshowSpeed: 8000, 822 animationSpeed: 300, 823 manualControls: '.popular-slider-control li', 824 controlNav: true, 825 directionNav: false, 826 pauseOnHover: true, 827 }); 828 }); 829 $('.popular-slider-control li').on('mouseover',function(){ 830 $(this).trigger('click'); 831 }); 832 $('.popular-slider-control li a').on('click',function(){ 833 window.location = $(this).attr('href'); 834 }); 835 836 });
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.