1$(function() { 2 // ãã¼ã¸ãã©ã°ã¤ã³ã®åãè¾¼ã¿ã³ã¼ããè¿ã 3 function pagePluginCode(w) { 4 5 // å¹ ã«å¿ãã¦é«ãã夿´ããå ´åã¯ã夿° h ã«é«ãã®å¤ãä»£å ¥ 6 7 8 if(w > 400) { 9 var h = 720; 10 } else { 11 var h = 360; 12 } 13 14 15 16 17 18 // æ¸ãæããStep3ã®ã³ã¼ãããreturnãã«è¨è¿° 19 return '<div class="fb-page" data-href="https://www.facebook.com/cosmocurry/" data-tabs="timeline" data-width="500" data-height="720" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/cosmocurry/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/cosmocurry/">ã³ã¹ã¢é£åæ ªå¼ä¼ç¤¾</a></blockquote></div>'; 20 } 21 22 // ãã¼ã¸ãã©ã°ã¤ã³ã追å ããè¦ç´ 23 var facebookWrap = $('.facebook-wrapper'); 24 var fbBeforeWidth = ''; // åå夿´ããã¨ãã®å¹ 25 var fbWidth = facebookWrap.width(); // ä»å夿´ããå¹ 26 var fbTimer = false; 27 $(window).on('load resize', function() { 28 if (fbTimer !== false) { 29 clearTimeout(fbTimer); 30 } 31 fbTimer = setTimeout(function() { 32 fbWidth = Math.floor(facebookWrap.width()); // 夿´å¾ã®å¹ ãåå¾ããå°æ°ç¹ä»¥ä¸åãæ¨ã¦ 33 // ååã®å¹ ãã夿´ããã£ãå ´åã®ã¿å¦ç 34 if(fbWidth != fbBeforeWidth) { 35 facebookWrap.html(pagePluginCode(fbWidth)); // ãã¼ã¸ãã©ã°ã¤ã³ã®ã³ã¼ã夿´ 36 window.FB.XFBML.parse(); // ãã¼ã¸ãã©ã°ã¤ã³ã®åèªã¿è¾¼ã¿ 37 fbBeforeWidth = fbWidth; // ä»å夿´åãä¿å 38 } 39 }, 200); 40 }); 41});
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.