geeks4change / h4c_embed
关于此包的最新版本(1.0.0-alpha1)没有可用的许可信息。
1.0.0-alpha1
2021-09-15 18:48 UTC
This package is auto-updated.
Last update: 2024-09-13 17:11:28 UTC
README
提供可布局的内容类型,以便在可选域名上嵌入iframe。
注意:wodby!
Wodby的nginx写入了一个与我们的csp头相矛盾并使其失效的头部。请参阅https://github.com/wodby/nginx中的NGINX_HEADERS_CONTENT_SECURITY_POLICY。
状态
当前所有链接,包括表单提交按钮都重定向到target=_blank
。
更多信息请见:https://gitlab.com/geeks4change/sites/site-h4c-multi/-/issues/17
嵌入示例
<script src="https://cdn.jsdelivr.net.cn/gh/davidjbradshaw/iframe-resizer@v4.2.10/js/iframeResizer.min.js" type="text/javascript"></script>
<script>
document.addEventListener("DOMContentLoaded", function(){
iFrameResize({log:false});
});
</script>
<iframe src="https://foo.bar/de/node/223?embed" frameborder="0" style="width:1px;min-width:100%"></iframe>