1 $(document).ready(function() { 2 if ($('[data-background]').length > 0) { 3 $('[data-background]').each(function() { 4 var $background, $backgroundmobile, $this; 5 $this = $(this); 6 $background = $(this).attr('data-background'); 7 $backgroundmobile = $(this).attr('data-background-mobile'); 8 if ($this.attr('data-background').substr(0, 1) === '#') { 9 return $this.css('background-color', $background); 10 } else if ($this.attr('data-background-mobile') && device.mobile()) { 11 return $this.css('background-image', 'url(' + $backgroundmobile + ')'); 12 } else { 13 return $this.css('background-image', 'url(' + $background + ')'); 14 } 15 }); 16 } 17 }); 18
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.