1// Normalize Carousel Heights - pass in Bootstrap Carousel items. 2$.fn.carouselHeights = function() { 3 4 var items = $(this), //grab all slides 5 heights = [], //create empty array to store height values 6 tallest; //create variable to make note of the tallest slide 7 8 var normalizeHeights = function() { 9 10 items.each(function() { //add heights to array 11 heights.push($(this).height()); 12 }); 13 tallest = Math.max.apply(null, heights); //cache largest value 14 items.each(function() { 15 $(this).css('min-height',tallest + 'px'); 16 $(this).find('.wrap-img-cover-object').css('height',tallest + 'px'); 17 }); 18 //$('#carousel-home .wrap-img-cover').css('height',tallest + 'px'); 19 }; 20 21 normalizeHeights(); 22 23 $(window).on('resize orientationchange', function () { 24 //reset vars 25 tallest = 0; 26 heights.length = 0; 27 28 items.each(function() { 29 $(this).css('min-height','0'); //reset min-height 30 }); 31 normalizeHeights(); //run it again 32 }); 33 34}; 35 36 37 38function equalHeight(group) { 39 //get teh equal data 40 var tallest = 0; 41 var resize = false; 42 group.each(function() { 43 var tipo = $(this).data('equal'); 44 var rule = 'screen'; 45 if(tipo == 'sm') rule = 'screen and (min-width: 768px)'; 46 else if(tipo == 'md') rule = 'screen and (min-width: 980px)'; 47 else if(tipo == 'lg') rule = 'screen and (min-width: 1200px)'; 48 49 var mql = window.matchMedia(rule); 50 if (mql.matches){ // if media query matches 51 resize = true; 52 var thisHeight = $(this).height(); 53 if(thisHeight > tallest) { 54 tallest = thisHeight; 55 } 56 } 57 }); 58 if(resize) group.height(tallest); 59} 60 61function first_word(group) { 62 group.each(function(){ 63 var text = $(this).text().split(' '); 64 if(text.length < 2) 65 return; 66 text[0] = '<span class="fw">'+text[0]+'</span>'; 67 68 group.html( text.join(' ') ); 69 }); 70} 71 72Number.prototype.format_currency = function(c, d, t){ 73var n = this, 74 c = isNaN(c = Math.abs(c)) ? 2 : c, 75 d = d == undefined ? "," : d, 76 t = t == undefined ? "." : t, 77 s = n < 0 ? "-" : "", 78 i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", 79 j = (j = i.length) > 3 ? j % 3 : 0; 80 return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); 81 };
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.