{"id":9346,"date":"2024-10-21T10:15:02","date_gmt":"2024-10-21T01:15:02","guid":{"rendered":"https:\/\/www.cobaring.com\/?p=9346"},"modified":"2025-04-04T10:14:43","modified_gmt":"2025-04-04T01:14:43","slug":"%e3%81%82%e3%81%aa%e3%81%9f%e3%81%aebmi%e3%81%ae%e7%ae%97%e5%87%ba%e3%82%92%e3%81%8a%e6%89%8b%e4%bc%9d%e3%81%84%e2%99%aa","status":"publish","type":"post","link":"https:\/\/www.cobaring.com\/?p=9346","title":{"rendered":"\u3042\u306a\u305f\u306eBMI\u306e\u7b97\u51fa\u3092\u304a\u624b\u4f1d\u3044\u266a"},"content":{"rendered":"<span style=\"font-size: 12pt; color: indigo;\">BMI\u306e\u7b97\u51fa\u6cd5\u306f\u3051\u3063\u3057\u3066\u96e3\u3057\u304f\u306f\u306a\u304f\u3001\u30cd\u30c3\u30c8\u3067\u3082\u7c21\u5358\u306b\u8a08\u7b97\u3057\u3066\u304f\u308c\u308b\u30b5\u30a4\u30c8\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u5065\u5eb7\u30cd\u30bf\u3092\u6295\u7a3f\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u305d\u308c\u3050\u3089\u3044\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u306a\u3044\u306e\u3082\u82b3\u3057\u304f\u306a\u3044\u3068\u601d\u3044\u3001\u7c21\u6613\u306a\u304c\u3089\u3054\u7528\u610f\u81f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u305e\u3054\u5229\u7528\u4e0b\u3055\u3044\u3002<\/span><\/p>\n<p>&#x1f447;&#xfe0f;\u3053\u3061\u3089\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n<!DOCTYPE html>\n<html lang=\"ja\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>BMI\u8a08\u7b97\u6a5f<\/title>\n    <style>\n        .bmi-link {\n            cursor: pointer;\n            color: blue;\n            text-decoration: underline;\n        }\n    <\/style>\n<\/head>\n<body>\n\n<p class=\"bmi-link\" onclick=\"calculateBMI()\">BMI<\/p>\n\n<script>\n    function calculateBMI() {\n        \/\/ \u8eab\u9577\u3068\u4f53\u91cd\u306e\u5165\u529b\u3092\u53d6\u5f97\n        let height = prompt(\"\u8eab\u9577\u3092\u30bb\u30f3\u30c1\u30e1\u30fc\u30c8\u30eb\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u4f8b: 170\uff09:\");\n        let weight = prompt(\"\u4f53\u91cd\u3092\u30ad\u30ed\u30b0\u30e9\u30e0\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u4f8b: 65\uff09:\");\n\n        \/\/ \u5165\u529b\u304c\u7121\u52b9\u3067\u306a\u3044\u304b\u78ba\u8a8d\n        if (height > 0 && weight > 0) {\n            \/\/ BMI\u3092\u8a08\u7b97\n            let heightInMeters = height \/ 100; \/\/ \u30bb\u30f3\u30c1\u30e1\u30fc\u30c8\u30eb\u3092\u30e1\u30fc\u30c8\u30eb\u306b\u5909\u63db\n            let bmi = weight \/ (heightInMeters * heightInMeters); \/\/ BMI\u306e\u8a08\u7b97\n\n            \/\/ \u7d50\u679c\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\n            alert(\"\u3042\u306a\u305f\u306eBMI\u306f \" + bmi.toFixed(2) + \" \u3067\u3059\u3002\");\n        } else {\n            alert(\"\u7121\u52b9\u306a\u5165\u529b\u3067\u3059\u3002\u6b63\u3057\u3044\u8eab\u9577\u3068\u4f53\u91cd\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\");\n        }\n    }\n<\/script>\n\n<\/body>\n<\/html>\n<span style=\"font-size: 12pt; color: indigo;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9513\" src=\"https:\/\/www.cobaring.com\/wp-content\/uploads\/2024\/10\/20250210_130456.gif\" alt=\"\" width=\"388\" height=\"640\" \/>","protected":false},"excerpt":{"rendered":"<p>BMI\u306e\u7b97\u51fa\u6cd5\u306f\u3051\u3063\u3057\u3066\u96e3\u3057\u304f\u306f\u306a\u304f\u3001\u30cd\u30c3\u30c8\u3067\u3082\u7c21\u5358\u306b\u8a08\u7b97\u3057\u3066\u304f\u308c\u308b\u30b5\u30a4\u30c8\u306f\u3042\u308a\u307e\u3059\u3002 \u3068\u306f\u3044\u3048\u3001\u5065\u5eb7\u30cd\u30bf\u3092\u6295\u7a3f\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3067\u305d\u308c\u3050\u3089\u3044\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u306a\u3044\u306e\u3082\u82b3\u3057\u304f\u306a\u3044\u3068\u601d\u3044\u3001\u7c21\u6613\u306a\u304c\u3089\u3054\u7528\u610f\u81f4\u3057\u307e\u3057 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":9513,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-yodan"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/posts\/9346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9346"}],"version-history":[{"count":20,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/posts\/9346\/revisions"}],"predecessor-version":[{"id":9540,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/posts\/9346\/revisions\/9540"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=\/wp\/v2\/media\/9513"}],"wp:attachment":[{"href":"https:\/\/www.cobaring.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cobaring.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}