1var Cms; 2(function(){ 3 var isEditor = false; 4 5 //define the Cms Object 6 Cms = { 7 //isEditor is true if the page is being edited by an administrator 8 isEditor:function(){ 9 isEditor = true; 10 } 11 }; 12 13 var init = function(){ 14 if(isEditor){ 15 parent.iframeLoaded(); 16 $(window).bind("load",parent.resizeFunction); 17 $(window).bind("resize",parent.resizeFunction); 18 $(window).bind("scroll",parent.resizeFunction); 19 } else { 20 $("#cms .removeempty").each(function(){ 21 if(!$(this).find("div[id^=cmscontentitem]").length) 22 $(this).remove(); 23 }); 24 $("#cms *[cms-minheight]").each(function(){ 25 minheight = parseInt($(this).attr('cms-minheight')); 26 if($(this).height() < minheight){ 27 $(this).height(minheight); 28 } 29 }); 30 $("#cms *[cms-alignheight]").each(function(){ 31 alignto = $('#'+$(this).attr('cms-alignheight')); 32 if(alignto.length){ 33 target = { 34 vpadding:parseInt(alignto.css('padding-top')) + parseInt(alignto.css('padding-bottom')), 35 offset:alignto.offset().top, 36 cssheight:alignto.height(), 37 height:function(){ 38 return this.cssheight + this.vpadding; 39 } 40 }; 41 align = $(this); 42 thisItem = { 43 vpadding:parseInt(align.css('padding-top')) + parseInt(align.css('padding-bottom')), 44 offset:align.offset().top, 45 cssheight:align.height() 46 }; 47 offsetDiff = target.offset - align.offset().top; 48 align.height(target.height() + offsetDiff - thisItem.vpadding); 49 } 50 }); 51 } 52 }; 53 //define what happens on page ready 54 $(init); 55})();
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.