1(function( $ ) { 2 var _inline_css = "<style>"; 3 $(document).find('div.cms-inline-css').each(function () { 4 var _this = $(this); 5 _inline_css += _this.attr("data-css") + " "; 6 _this.remove(); 7 }); 8 _inline_css += "</style>"; 9 $('head').append(_inline_css); 10 11 var _ct = ""; 12 $(document).find('div.cms-ct-to-head').each(function () { 13 var _this = $(this); 14 _ct += _this.attr("data-ct") + " "; 15 _this.remove(); 16 }); 17 $('head').append(_ct); 18 19 $('.cms-carousel-core').each(function () { 20 var _this = $(this); 21 _this.addClass("owl-carousel"); 22 var data = { 23 navText: ['<i class="zmdi zmdi-chevron-left"></i></i>', '<i class="zmdi zmdi-chevron-right"></i>'], 24 responsive: { 25 0: { 26 items: parseInt(_this.attr('data-xsmall-items')), 27 }, 28 576: { 29 items: parseInt(_this.attr('data-small-items')), 30 }, 31 768: { 32 items: parseInt(_this.attr('data-medium-items')), 33 }, 34 992: { 35 items: parseInt(_this.attr('data-large-items')), 36 }, 37 } 38 }; 39 if (typeof _this.attr('data-loop') !== 'undefined') { 40 data.loop = _this.attr('data-loop') == 'true' ? true : false; 41 } 42 if (typeof _this.attr('data-autoplay') !== 'undefined') { 43 data.autoplay = _this.attr('data-autoplay') == 'true' ? true : false; 44 } 45 if (typeof _this.attr('data-dots') !== 'undefined') { 46 data.dots = _this.attr('data-dots') == 'true' ? true : false; 47 } 48 if (typeof _this.attr('data-dotscontainer') !== 'undefined') { 49 data.dotsContainer = _this.attr('data-dotscontainer') == 'true' ? _this.parent().find('.slider-nav .thumbs') : ''; 50 } 51 if (typeof _this.attr('data-center') !== 'undefined') { 52 data.center = _this.attr('data-center') == 'true' ? true : false; 53 } 54 if (typeof _this.attr('data-nav') !== 'undefined') { 55 data.nav = _this.attr('data-nav') == 'true' ? true : false; 56 } 57 if (typeof _this.attr('data-rtl') !== 'undefined') { 58 data.rtl = _this.attr('data-rtl') == 'true' ? true : false; 59 } 60 if (typeof _this.attr('data-margin') !== 'undefined') { 61 data.margin = parseInt(_this.attr('data-margin')); 62 } 63 if (typeof _this.attr('data-autoplaytimeout') !== 'undefined') { 64 data.autoplayTimeout = parseInt(_this.attr('data-autoplaytimeout')); 65 } 66 if (typeof _this.attr('data-smartspeed') !== 'undefined') { 67 data.smartSpeed = parseInt(_this.attr('data-smartspeed')); 68 } 69 70 var owl = _this.owlCarousel(data); 71 }); 72})(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.