1define(['jquery'], function ($) { 2 3 var default_opts = { 4 position: 'center' 5 }; 6 7 function freezeElement($target, opts) { 8 var opts = opts || {} 9 opts = $.extend(default_opts, opts); 10 11 $target.addClass('frozen'); 12 13 $freeze = $('<div class="freeze">'); 14 15 if (opts.position) { 16 $freeze.css('background-position', 'center ' + opts.position); 17 } 18 else if (opts.position == 'top') { 19 $freeze.addClass('freeze-on-top'); 20 } 21 22 $target.append($freeze); 23 } 24 25 function unfreezeElement($target) { 26 $target.find('.freeze').remove(); 27 $target.removeClass('frozen'); 28 } 29 30 return { 31 'freeze': freezeElement, 32 'unfreeze': unfreezeElement 33 }; 34});
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.