{"id":4383,"date":"2020-03-23T19:11:55","date_gmt":"2020-03-23T10:11:55","guid":{"rendered":"https:\/\/vitabrid.co.jp\/columns\/?p=4383"},"modified":"2020-03-23T19:11:55","modified_gmt":"2020-03-23T10:11:55","slug":"yttest","status":"publish","type":"post","link":"https:\/\/vitabrid.co.jp\/columns\/customer_only\/yttest\/","title":{"rendered":"yttest"},"content":{"rendered":"<p>\n<script src=\"https:\/\/www.youtube.com\/iframe_api\"><\/script>\n<script type=\"text\/javascript\">\nvar DONE = false;\nvar ytPlayer = [];\nvar ytData = [];\nvar ytWidth = 640;\nvar ytHeight = 390;\n\njQuery(function(){\n\tvar WH=Math.floor(jQuery(window).height() - 100);\n\tjQuery(window).scroll(function() {\n\t\tif(DONE==false)return false;\n\t\tfor(var i=0;i<ytPlayer.length;i++){\n\t\t\tif ((jQuery(\".show_yt-movie-content:eq(\" + i + \")\").offset().top < (jQuery(window).scrollTop()+WH)) && ((jQuery(window).scrollTop() + ytHeight - 100 <jQuery(\".show_yt-movie-content:eq(\" + i + \")\").offset().top+ytHeight))){\n\t\t\t\tif(parseInt(ytPlayer[i].getPlayerState())!==1){\n\t\t\t\t\tytPlayer[i].mute().playVideo();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(parseInt(ytPlayer[i].getPlayerState())==1){\n\t\t\t\t\tytPlayer[i].pauseVideo();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n});\n\nfunction onYouTubeIframeAPIReady() {\n\tfor(var i = 0; i < ytData.length; i++) {\n\t\tytPlayer[i] = new YT.Player(ytData[i][\"area\"], {\n\t\t\twidth: ytWidth,\n\t\t\theight: ytHeight,\n\t\t\tvideoId: ytData[i][\"id\"],\n\t\t\tplayerVars: {\n\t\t\t\trel: 0,\n\t\t\t\tplaysinline: 1\n\t\t\t},\n\t\t\tevents: {\n\t\t\t\t\"onReady\": onPlayerReady\n\t\t\t}\n\t\t});\n\t}\n}\n\nfunction onPlayerReady(e) {\n\tfor (var i = 0; i < ytData.length; i++) {\n\t\tif(e.target.getIframe().id == ytData[i][\"area\"]) {\n\t\t\tif(i==ytPlayer.length-1)DONE=true;\n\t\t}\n\t};\n\tytPlayer[0].mute().playVideo();\n}\n<\/script>\n<style type=\"text\/css\">\n.LFvcon {\n\tposition: relative;\n\tpadding: 30px 0 56.25%;\n\theight: 0;\n\toverflow: hidden;\n\tmargin:2% 0!important;\n}\n\n.show_yt-movie-content {\n\tpadding-top: 56.25%;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.LFvcon iframe {\n\theight: 100% !important;\n\tleft: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100% !important;\n}\n<\/style>\n<script> ytData[ytData.length] = { id: \"3z0L7CPZWek\", area: \"viewYT01\"}<\/script><div class=\"LFvcon\"><div class=\"show_yt-movie-content\" ><div id=\"viewYT01\"><\/div><\/div><\/div><br \/>\n\u30c6\u30b9\u30c8\u30c6\u30b9\u30c8\u30c6\u30b9\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30b9\u30c8\u30c6\u30b9\u30c8\u30c6\u30b9\u30c8<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-4383","post","type-post","status-publish","format-standard","hentry","category-customer_only"],"_links":{"self":[{"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/posts\/4383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/comments?post=4383"}],"version-history":[{"count":0,"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/posts\/4383\/revisions"}],"wp:attachment":[{"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/media?parent=4383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/categories?post=4383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vitabrid.co.jp\/columns\/wp-json\/wp\/v2\/tags?post=4383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}