1$.fn.parscroll = function (spd) { 2 3 var agent = navigator.userAgent.toLowerCase(); 4 if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {// ieì¼ ê²½ì° 5 6 }else{// ieê° ìë ê²½ì° 7 var opt = $.extend({}, spd); 8 opt.speed===void 0&&(opt.speed=.3); 9 this.each(function() { 10 var t = $(this); 11 12 function init() { 13 var title = t.data("title"); 14 var img = t.attr('style').replace('background-image:url(','').replace(')',''); 15 console.log(img); 16 t.append('<div class="ps-bg-wrap"><div class="ps-bg" style="background-image:url('+img+')"></div></div>') 17 18 if (title !== undefined) { 19 t.prepend('<div class="item-title">'+title+'}</div>') 20 } 21 } 22 function scroll() { 23 var scrolltop = $(window).scrollTop(), 24 offsettop = t.offset().top; 25 26 if (offsettop + t.outerHeight() > scrolltop && scrolltop + $(window).height() > offsettop) { 27 t.find(".ps-bg").css("transform", 'translateY(' + -opt.speed * (scrolltop - offsettop) + 'px)') 28 } 29 } 30 init(), scroll(), $(window).scroll(scroll) 31 }) 32 } 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.