1var sbvcgmap; 2;(function($) { 3 sbvcgmap = { 4 init: function() { 5 sbvcgmap.add_placeholder(); 6 }, 7 check_bool: function(string) { 8 string = string.toLowerCase(); 9 if(string == 'yes') 10 returnval = true; 11 else 12 returnval = false; 13 14 return returnval; 15 }, 16 add_placeholder: function() { 17 $('.sb-bg-slider-params').each(function() { 18 $this = $(this); 19 var source = $this.data('source'); 20 if(source == 'row') { 21 var row = $this.next('.vc_row'); 22 var content_vertical_center = $this.attr('data-content_vertical_center'); 23 var styles = $this.attr('data-styles'); 24 if(content_vertical_center == 'yes') { 25 row.wrapInner('<div class="sbvcgmap-vertical-center"></div>'); 26 } 27 28 row.prepend($this); 29 row.attr('style', styles); 30 row.css({ 31 'position': 'relative' 32 }); 33 } 34 }); 35 sbvcgmap.backstretch('.sb-bg-slider-params'); 36 }, 37 backstretch: function(element) { 38 $(element).each(function() { 39 var images = $.trim($(this).data('slider_attachments')); 40 var duration = $(this).data('slide_duration'); 41 var fade = $(this).data('animation_speed'); 42 var centeredX = sbvcgmap.check_bool($(this).data('centered_x')); 43 var centeredY = sbvcgmap.check_bool($(this).data('centered_y')); 44 if(images != '') { 45 var img_array = images.split('|'); 46 $(this).backstretch(img_array, { 47 duration : duration, 48 fade : fade, 49 centeredX : centeredX, 50 centeredY : centeredY 51 }); 52 } 53 }); 54 sbvcgmap.vertical_center(); 55 }, 56 vertical_center: function() { 57 $('.sbvcgmap-vertical-center').flexVerticalCenter(); 58 } 59 }; 60 sbvcgmap.init(); 61})(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.