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