1var jQ = jQuery.noConflict(); 2jQ(document).ready(function(){ 3 4 function sameheight1($object){ 5 var Box1 = 0; 6 jQ($object).each(function(){ 7 if(jQ(this).height() > Box1){ 8 Box1 = jQ(this).height(); 9 } 10 }); 11 jQ($object).height(Box1); 12 } 13 /*Start function Slider Wrap into Item--------------*/ 14 function itemswrap($path, $number, $wrap){ 15 var divgallry = jQ($path); 16 for(var i = 0; i < divgallry.length; i+=$number) { 17 divgallry.slice(i, i+$number).wrapAll($wrap); 18 } 19 } 20 function itemsunwrap($path){ 21 jQ($path).unwrap(); 22 } 23 24 function bulletsWrap($sliderID){ 25 var indicatorsProduct= jQ($sliderID + ' .carousel-item').size(); 26 var row = jQ('<li data-target="'+$sliderID+'"></li>'); 27 28 for (var i=0; i<indicatorsProduct; i++) { 29 jQ($sliderID + ' .carousel-indicators').append(row.clone()); 30 } 31 var counterProduct=-1; 32 jQ($sliderID + ' .carousel-indicators li').each(function(){ 33 counterProduct++; 34 var self=jQ(this); 35 self.attr('data-slide-to', counterProduct); 36 }); 37 38 jQ($sliderID + ' .carousel-indicators li').first().addClass('active'); 39 } 40 41 jQ('#carousel-resources').swiperight(function() { 42 jQ(this).carousel('prev'); 43 }); 44 jQ('#carousel-resources').swipeleft(function() { 45 jQ(this).carousel('next'); 46 }); 47 /*END function Slider Wrap into Item----------------------------*/ 48 49 function myOrientResizeFunction(){ 50 // Large devices (desktops, 992px and up) 51 if (jQ(window).width() >= 1199.98){ 52 53 itemsunwrap('div[id^="carousel-resources"] .posts-grid-row .single-post'); 54 itemsunwrap('div[id^="carousel-resources"] .carousel-item .single-post'); 55 56 itemswrap('div[id^="carousel-resources"] .single-post', 2, '<div class="posts-grid-row"></div>'); 57 itemswrap('div[id^="carousel-resources"] .posts-grid-row', 1, '<div class="carousel-item"></div>'); 58 59 } else if (jQ(window).width() > 991.98) { 60 61 itemsunwrap('div[id^="carousel-resources"] .posts-grid-row .single-post'); 62 itemsunwrap('div[id^="carousel-resources"] .carousel-item .single-post'); 63 //sameheight1('div[id^="carousel-resources"] .single-post '); 64 itemswrap('div[id^="carousel-resources"] .single-post', 2, '<div class="posts-grid-row"></div>'); 65 itemswrap('div[id^="carousel-resources"] .posts-grid-row', 1, '<div class="carousel-item"></div>'); 66 67 68 } else if (jQ(window).width() > 767.98) { 69 70 itemsunwrap('div[id^="carousel-resources"] .posts-grid-row .single-post'); 71 itemsunwrap('div[id^="carousel-resources"] .carousel-item .single-post'); 72 //sameheight1('div[id^="carousel-resources"] .single-post '); 73 itemswrap('div[id^="carousel-resources"] .single-post', 2, '<div class="posts-grid-row"></div>'); 74 itemswrap('div[id^="carousel-resources"] .posts-grid-row', 1, '<div class="carousel-item"></div>'); 75 } else if (jQ(window).width() > 575.98) { 76 77 itemsunwrap('div[id^="carousel-resources"] .posts-grid-row .single-post'); 78 itemsunwrap('div[id^="carousel-resources"] .carousel-item .single-post'); 79 //sameheight1('div[id^="carousel-resources"] .single-post '); 80 itemswrap('div[id^="carousel-resources"] .single-post', 1, '<div class="posts-grid-row"></div>'); 81 itemswrap('div[id^="carousel-resources"] .posts-grid-row', 1, '<div class="carousel-item"></div>'); 82 } else{ 83 84 itemsunwrap('div[id^="carousel-resources"] .posts-grid-row .single-post'); 85 itemsunwrap('div[id^="carousel-resources"] .carousel-item .single-post'); 86 //sameheight1('div[id^="carousel-resources"] .single-post '); 87 itemswrap('div[id^="carousel-resources"] .single-post', 1, '<div class="posts-grid-row"></div>'); 88 itemswrap('div[id^="carousel-resources"] .posts-grid-row', 1, '<div class="carousel-item"></div>'); 89 } 90 91 jQ('#carousel-resources li').remove(); 92 bulletsWrap('#carousel-resources'); 93 94 95 jQ('div[id^="carousel-resources"] .carousel-item:first-child').each(function(){ 96 jQ(this).addClass('active'); 97 });
98 99 function normalizeSlideHeights() { 100 jQ('div[id^="carousel-resources"]').each(function(){ 101 var items = jQ('.carousel-item, .posts-grid-row', this); 102 // reset the height 103 items.css('min-height', 0); 104 // set the height 105 var maxHeight = Math.max.apply(null, 106 items.map(function(){ 107 return jQ(this).outerHeight()}).get() ); 108 items.css('min-height', maxHeight + 'px'); 109 }) 110 } 111 jQ(window).on('load resize orientationchange', normalizeSlideHeights); 112 113 114 } myOrientResizeFunction(); 115 116 jQ(window).resize(function(){ 117 myOrientResizeFunction(); 118 }); 119 120});
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.