{"id":1628,"date":"2019-11-11T08:34:18","date_gmt":"2019-11-10T23:34:18","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=1628"},"modified":"2019-11-11T08:35:10","modified_gmt":"2019-11-10T23:35:10","slug":"%e3%80%90%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e3%80%91%e7%be%8e%e4%ba%ba%e6%99%82%e8%a8%88%e3%81%ae%e3%82%88%e3%81%86%e3%81%aa%e3%82%82%e3%81%aeweb%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=1628","title":{"rendered":"\u3010\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3011\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e(Web\u7de8)"},"content":{"rendered":"\n<p>Tech commit\u306e\u6311\u6226\u72b6\u8ab2\u984c\u3067\u300c\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e\u300d\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306fJavascript\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u98ef\u30c6\u30ed\u6642\u8a08<\/h2>\n\n\n\n<p><a style=\"\" href=\"http:\/\/taki-lab.site\/meshitero\/meshitero.html\">http:\/\/taki-lab.site\/meshitero\/meshitero.html<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/takishita2nd\/meshitero_timer\">https:\/\/github.com\/takishita2nd\/meshitero_timer<\/a><\/p>\n\n\n\n<p>30\u5206\u304a\u304d\u306b\u753b\u50cf\u304c\u5909\u308f\u308a\u3001\u6642\u9593\u3092\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u89e3\u8aac<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u3001html\u672c\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html>\n&lt;html>\n    &lt;header>\n        &lt;meta charset=\"utf-8\">\n        &lt;title>\u98ef\u30c6\u30ed\u6642\u8a08&lt;\/title>\n        &lt;script src=\"jquery-3.4.1.min.js\">&lt;\/script>\n    &lt;\/header>\n    &lt;body>\n        &lt;img id=\"image\" width=\"640\" height=\"480\" src=\"\" \/>\n        &lt;script src=\"meshitero.js\" >&lt;\/script>\n    &lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306fjQuery\u3092\u4f7f\u7528\u3002\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001ID\u3084class\u6307\u5b9a\u3057\u305f\u8981\u7d20\u306e\u53d6\u5f97\u304c\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u4f53\u306f\u753b\u50cf\u3092\u8868\u793a\u3059\u308bimg\u30bf\u30b0\u306e\u307f\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u3042\u3068\u306bjs\u672c\u4f53\u3092\u8aad\u307f\u8fbc\u307e\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p>js\u306f\u6700\u5f8c\u306b\u66f8\u304b\u306a\u3044\u3068\u3001\u304d\u3061\u3093\u3068\u52d5\u3044\u3066\u304f\u308c\u306a\u3044\u3063\u307d\u3044\u3002<\/p>\n\n\n\n<p>\u7d9a\u3044\u3066\u3001js\u672c\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function getImageName() {\n    var date = new Date();\n    var hour = (\"00\" + date.getHours()).slice(-2);\n    var min = \"00\";\n    if(date.getMinutes() >= 30) {\n        min = \"30\"\n    }\n    var imageFormat = \"time_{0}_{1}.jpg\";\n    return imageFormat.replace(\"{0}\", hour).replace(\"{1}\", min);\n}\n\nfunction imageUpdate(force = false) {\n    var date = new Date();\n    if(force = false &amp;&amp;\n       (date.getMinutes() % 30) != 0) {\n        return;\n    }\n    var imageName = getImageName();\n    var image = $(\"#image\")[0].src = \"img\/\" + imageName;\n}\n\ndocument.onload = imageUpdate(true);\nsetInterval(imageUpdate, 60000);<\/code><\/pre>\n\n\n\n<p>\u307e\u305a\u3001\u7528\u610f\u3059\u308b\u753b\u50cf\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u300ctime_hh_mm.jpg\u300d\u3067\u7d71\u4e00\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u3057\u3066&#8221;time_{0}_{1}.jpg&#8221;\u3068\u3044\u3046\u306e\u3092\u7528\u610f\u3057\u3001\u3042\u3068\u306f\u5b9f\u969b\u306e\u6642\u9593\u306b\u5408\u308f\u305b\u3066{0}\u3068{1}\u306e\u90e8\u5206\u3092\u30ea\u30d7\u30ec\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u50cf\u306e\u7f6e\u304d\u63db\u3048\u306fimg\u30bf\u30b0\u306e\u8981\u7d20src\u306e\u5024\u3092\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3001setInterval()\u3067\u4e00\u5b9a\u6642\u9593\u5f8c\u5468\u671f\u7684\u306b\u30f6\u540c\u8aad\u307f\u8fbc\u307f\u304c\u884c\u308f\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u521d\u56de\u30ed\u30fc\u30c9\u6642\u306b\u3082\u753b\u50cf\u3092\u8aad\u3093\u3067\u8cb0\u308f\u306a\u3044\u3068\u884c\u3051\u306a\u3044\u306e\u3067\u3001onload\uff08html\u8aad\u307f\u8fbc\u307f\u7d42\u4e86\u6642\uff09\u306b\u5f37\u5236\u7684\u306b\u8aad\u307f\u8fbc\u307f\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>imageUpdate(force = false) {}\u3068\u306f\u3001\u5f15\u6570\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070force\u306e\u5024\u306f\u521d\u671f\u5024false\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>img\u30bf\u30b0\u3092\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3044\u3044\u306e\u3067\u3001\u601d\u3063\u305f\u307b\u3069\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tech commit\u306e\u6311\u6226\u72b6\u8ab2\u984c\u3067\u300c\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e\u300d\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306fJavascript\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u98ef\u30c6\u30ed\u6642\u8a08 http:\/\/taki-lab.site\/meshitero\/meshitero.html &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=1628\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3011\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e(Web\u7de8)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6,3],"tags":[133],"class_list":["post-1628","post","type-post","status-publish","format-standard","hentry","category-web","category-3","tag-javascript"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-qg","jetpack-related-posts":[{"id":4284,"url":"https:\/\/taki-lab.site\/bocci\/?p=4284","url_meta":{"origin":1628,"position":0},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u3010\u30ab\u30e1\u30e9\u3011\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u9762\u3092\u30e9\u30ba\u30d1\u30a4\u304b\u3089\u53d6\u5f97\u30fb\u8868\u793a","author":"taki","date":"2020\u5e7410\u67088\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=4223 \u524d\u56de\u306f\u3001Web\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30ab\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/f47d4a87b363eb18d947d09176fed1ff.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/f47d4a87b363eb18d947d09176fed1ff.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/f47d4a87b363eb18d947d09176fed1ff.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":4348,"url":"https:\/\/taki-lab.site\/bocci\/?p=4348","url_meta":{"origin":1628,"position":1},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u3010\u30ab\u30e1\u30e9\u3011Web\u304b\u3089\u30ab\u30e1\u30e9\u306e\u753b\u50cf\u3092\u4fdd\u5b58\u3059\u308b\u3002","author":"taki","date":"2020\u5e7410\u670815\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=4306 \u524d\u56de\u306f\u30ab\u30e1\u30e9\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u9762\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/ad033887f992ecb8421d376c24691460.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/ad033887f992ecb8421d376c24691460.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/ad033887f992ecb8421d376c24691460.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/ad033887f992ecb8421d376c24691460.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4223,"url":"https:\/\/taki-lab.site\/bocci\/?p=4223","url_meta":{"origin":1628,"position":2},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30ea\u30e2\u30fc\u30c8\u3067\u30ab\u30e1\u30e9\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u8868\u793a","author":"taki","date":"2020\u5e7410\u67081\u65e5","format":false,"excerpt":"\u3044\u3084\u3001\u4eca\u56de\u306f\u7d50\u69cb\u30cf\u30de\u3063\u305f\u3002 \u3053\u308c\u304c\u534a\u65e5\u9811\u5f35\u3063\u305f\u6210\u679c\u3060\u3002 \u307e\u305a\u306f\u30e9\u30ba\u30d1\u30a4\u5074\u3002 import base6\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/795a241f54d363e98d9ebe27e7b4d0df.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10398,"url":"https:\/\/taki-lab.site\/bocci\/?p=10398","url_meta":{"origin":1628,"position":3},"title":"DOCKER\u3067CMD\u30b3\u30de\u30f3\u30c9\u3092\u4ed5\u8fbc\u3093\u3067\u307f\u308b\u3002","author":"taki","date":"2023\u5e744\u67086\u65e5","format":false,"excerpt":"DOCKER\u3067RUN\u30b3\u30de\u30f3\u30c9\u3092\u4ed5\u8fbc\u3093\u3067\u307f\u308b\u3002 | \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f (taki-lab.si\u2026","rel":"","context":"\u51fa\u6765\u4e8b","block_context":{"text":"\u51fa\u6765\u4e8b","link":"https:\/\/taki-lab.site\/bocci\/?cat=9"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/04\/2a02881d483f744058e43e403b624d16.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/04\/2a02881d483f744058e43e403b624d16.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2023\/04\/2a02881d483f744058e43e403b624d16.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":9271,"url":"https:\/\/taki-lab.site\/bocci\/?p=9271","url_meta":{"origin":1628,"position":4},"title":"RUST\u52c9\u5f37\u4e2d\u300110\/2\u306e\u7a4d\u307f\u4e0a\u3052?","author":"taki","date":"2022\u5e7410\u67084\u65e5","format":false,"excerpt":"https:\/\/taki-lab.site\/bocci\/?p=9195 \u524d\u56de\u306e\u7d9a\u304d www\/inde\u2026","rel":"","context":"Rust","block_context":{"text":"Rust","link":"https:\/\/taki-lab.site\/bocci\/?cat=2542"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1632,"url":"https:\/\/taki-lab.site\/bocci\/?p=1632","url_meta":{"origin":1628,"position":5},"title":"\u3010\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3011\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e(Android\u7de8)","author":"taki","date":"2019\u5e7411\u670811\u65e5","format":false,"excerpt":"Tech commit\u306e\u6311\u6226\u72b6\u8ab2\u984c\u3067\u300c\u7f8e\u4eba\u6642\u8a08\u306e\u3088\u3046\u306a\u3082\u306e\u300d\u304c\u3042\u3063\u305f\u306e\u3067\u3001Android\u30a2\u30d7\u30ea\u3067\u4f5c\u6210\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/taki-lab.site\/bocci\/?cat=134"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/1628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1628"}],"version-history":[{"count":2,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions"}],"predecessor-version":[{"id":1630,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions\/1630"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}