{"id":8054,"date":"2024-06-21T22:38:09","date_gmt":"2024-06-21T15:38:09","guid":{"rendered":"\/web\/?p=8054"},"modified":"2024-06-21T22:54:05","modified_gmt":"2024-06-21T15:54:05","slug":"lich-tuan","status":"publish","type":"post","link":"\/web\/2024\/06\/21\/lich-tuan\/","title":{"rendered":"L\u1ecbch tu\u1ea7n"},"content":{"rendered":"\n<head>\n    <title>IFrame Auto Height<\/title>\n    <style>\n        iframe {\n            width: 100%;\n            height: 100%; \/* Set initial height to 100% *\/\n            border: none;\n        }\n    <\/style>\n<\/head>\n<body>\n    <!-- The container div is used to wrap the iframe -->\n    <div id=\"iframe-container\">\n        <iframe id=\"dynamic-iframe\" src=\"https:\/\/ttythuyenthanuyen.vn\/hop\/up\/xemsyt.php?ma=2113&amp;ch=L\u1ecbch tu\u1ea7n&amp;quyen=congkhai\" frameborder=\"0\"><\/iframe>\n    <\/div>\n\n    <script>\n        \/\/ Function to set the iframe height based on its content\n        function setIframeHeight() {\n            var iframe = document.getElementById(\"dynamic-iframe\");\n            var iframeDocument = iframe.contentDocument || iframe.contentWindow.document;\n            var iframeContentHeight = iframeDocument.documentElement.scrollHeight;\n            iframe.style.height = iframeContentHeight + \"px\";\n        }\n\n        \/\/ Call the setIframeHeight function when the iframe is loaded and whenever its content changes\n        var iframe = document.getElementById(\"dynamic-iframe\");\n        iframe.onload = function () {\n            setIframeHeight();\n        };\n\n        \/\/ You can also call the setIframeHeight function whenever the window is resized\n        window.addEventListener(\"resize\", setIframeHeight);\n    <\/script>\n<\/body>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>IFrame Auto Height<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"\/web\/wp-json\/wp\/v2\/posts\/8054"}],"collection":[{"href":"\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/web\/wp-json\/wp\/v2\/comments?post=8054"}],"version-history":[{"count":4,"href":"\/web\/wp-json\/wp\/v2\/posts\/8054\/revisions"}],"predecessor-version":[{"id":8062,"href":"\/web\/wp-json\/wp\/v2\/posts\/8054\/revisions\/8062"}],"wp:attachment":[{"href":"\/web\/wp-json\/wp\/v2\/media?parent=8054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/web\/wp-json\/wp\/v2\/categories?post=8054"},{"taxonomy":"post_tag","embeddable":true,"href":"\/web\/wp-json\/wp\/v2\/tags?post=8054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}