{"author_name":"Kureduki_Maari","height":"190","description":"\u79c1\u4e8b\u30e1\u30e2\u3067\u3001\u79c1\u4ee5\u5916\u306b\u306f\u5168\u304f\u5f79\u306b\u7acb\u3061\u307e\u305b\u3093\u3002 \u753b\u50cf\u306e\u7e2e\u5c0f\u30b5\u30a4\u30ba\u3092\u6c7a\u5b9a\u3059\u308b\u3002 function p (width, height) { function m (min, max) { var tmp = min; min = Math.floor(min * min / max); max = tmp; return [min, max]; } var lim = 1000, tmp; if (width <= lim && height <= lim) { return [width, height]; } if (width < height) { tmp = m(width, height)\u2026","image_url":null,"url":"https://c4se.hatenablog.com/entry/2012/03/12/122939","version":"1.0","categories":["Programming","JavaScript"],"author_url":"https://blog.hatena.ne.jp/Kureduki_Maari/","provider_name":"Hatena Blog","type":"rich","published":"2012-03-12 12:29:39","blog_url":"https://c4se.hatenablog.com/","width":"100%","blog_title":"c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606","title":"\u753b\u50cf\u7e2e\u5c0f\u30b5\u30a4\u30ba\u6c7a\u5b9a #js","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2012%2F03%2F12%2F122939\" title=\"\u753b\u50cf\u7e2e\u5c0f\u30b5\u30a4\u30ba\u6c7a\u5b9a #js - c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}