使用 iframe Calend 隐藏 cookie 横幅

发布于 2025-01-10 21:56:26 字数 1921 浏览 3 评论 0原文

我已经使用 iframe 将日历嵌入到网站中。该代码工作正常,如下所述。但是,当我尝试使用 calendly 提到的代码隐藏 cookie 横幅并隐藏页面详细信息时,它不起作用。我正在尝试在 iframe 中重新利用日历代码。如果有任何帮助,我将不胜感激。理想的解决方案是隐藏横幅。如果这是不可能的,那么下一个最佳解决方案是将横幅尺寸减小到日历的大小。

网站:dishasharma.ca 网址:https://www.dishasharma.ca/products/每次课程的幸福和目标辅导 屏幕截图: https://i.sstatic.net/Zn5kc.png

<iframe id="myIframe" width="100%" height="1050px" scrolling="no" frameborder="0"> 
</iframe>

<script>
    let myIframe = document.getElementById("myIframe");
    let url_string = "https://calendly.com/disha_sharma/session";
    let calendlyBackgroundColor = "background_color=e9f4f5"; 
    let calendlyHidePageDetails = "hide_landing_page_details=1"; // code not working 
    let calendlyHideBanner = "hide_gdpr_banner=1"; // code not working 
    let adsURL = url_string+"?"+calendlyHideBanner+"&"+calendlyHidePageDetails+"&"+calendlyBackgroundColor; // code not working 

    myIframe.src = adsURL;
</script>

<style type="text/css">
    @media only screen and (min-width: 1050px) {
    iframe#myIframe{
     height="850px";
}
</style>

要嵌入的原始日历代码在网站中并隐藏横幅:

<!-- Calendly inline widget begin -->
<div class="calendly-inline-widget" data-url="https://calendly.com/disha_sharma/session?hide_landing_page_details=1&hide_gdpr_banner=1&background_color=e9f4f5" style="min-width:320px;height:1050px;"</div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!-- Calendly inline widget end -->

<style type="text/css">
@media only screen and (min-width: 1050px) {
    .calendly-inline-widget{
     height:850px; 
}
</style>

I have embedded calendly in website using iframe. The code works fine as mentioned below. However, when i try to hide cookie banner and hide page details using the code mentioned by calendly,its not working. I am trying to reutilise the calendly code in an iframe.I would appreciate any help.Ideal solution is to hide the banner. If that is not possible, then next best solution would be to reduce the banner size to the size of calendar.

website : dishasharma.ca
url : https://www.dishasharma.ca/products/happiness-and-purpose-coaching-per-session
screenshot : https://i.sstatic.net/Zn5kc.png

<iframe id="myIframe" width="100%" height="1050px" scrolling="no" frameborder="0"> 
</iframe>

<script>
    let myIframe = document.getElementById("myIframe");
    let url_string = "https://calendly.com/disha_sharma/session";
    let calendlyBackgroundColor = "background_color=e9f4f5"; 
    let calendlyHidePageDetails = "hide_landing_page_details=1"; // code not working 
    let calendlyHideBanner = "hide_gdpr_banner=1"; // code not working 
    let adsURL = url_string+"?"+calendlyHideBanner+"&"+calendlyHidePageDetails+"&"+calendlyBackgroundColor; // code not working 

    myIframe.src = adsURL;
</script>

<style type="text/css">
    @media only screen and (min-width: 1050px) {
    iframe#myIframe{
     height="850px";
}
</style>

Original calendly code to embed in website and hide the banner :

<!-- Calendly inline widget begin -->
<div class="calendly-inline-widget" data-url="https://calendly.com/disha_sharma/session?hide_landing_page_details=1&hide_gdpr_banner=1&background_color=e9f4f5" style="min-width:320px;height:1050px;"</div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!-- Calendly inline widget end -->

<style type="text/css">
@media only screen and (min-width: 1050px) {
    .calendly-inline-widget{
     height:850px; 
}
</style>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弱骨蛰伏 2025-01-17 21:56:26

可以通过向现有链接添加两个额外参数来解决此问题:
&embed_domain=YOUR.DOMAIN.ANY&embed_type=Inline

所以最后,它应该看起来像这样:

https://calendly。 com/YOUR_EVENT?hide_gdpr_banner=1&embed_domain=YOUR.DOMAIN.ANY&embed_type=Inline

请不要问为什么不在 Calendly 文档中,但这是他们支持的解决方案。

我希望它有帮助! =)

This issue can be solved by adding two extra parameters to the existing link:
&embed_domain=YOUR.DOMAIN.ANY and &embed_type=Inline

So in the end, it should be looks like this:

https://calendly.com/YOUR_EVENT?hide_gdpr_banner=1&embed_domain=YOUR.DOMAIN.ANY&embed_type=Inline

Please don't ask why it's not in the Calendly documentation, but this is the solution from their support.

I hope it helps! =)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文