1$(function() { 2 var slide = $('#recommend'); 3 var contents = $('#recommend-contents'); 4 //J{^ 5 var openBtn = $('#open-btn img'); 6 var btnOpenFlag = false; 7 var openFlag = false; 8 var panelSwitch = function() { 9 //¶é 10 if (openFlag == true ) { 11 slide.stop().animate({'width' : '220px','height' : '35px'}, 600); 12 openBtn.show(); //J{^É·é 13 } 14 //J 15 else if (openFlag == false) { 16 slide.stop().animate({'width' : '220px','height' : '180px'}, 600); 17 openBtn.hide(); //¶é{^É·é 18 } 19 }; 20 //J{^NbNµ½ç 21 $('#open-btn').click(function(){ 22 panelSwitch(); 23 openFlag = !openFlag; 24 btnOpenFlag = true; 25 }); 26 //æÊºÊuðæ¾ 27 var bottomPos = $(document).height() - $(window).height() - 600; 28 $(window).scroll(function () { 29 if (!btnOpenFlag) { 30 if ($(this).scrollTop() >= bottomPos) { 31 if (openFlag == false) { 32 panelSwitch(); 33 openFlag = true; 34 } 35 } else { 36 if (openFlag) { 37 panelSwitch(); 38 openFlag = false; 39 } 40 } 41 } 42 }); 43});
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.