1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Usar ( Javasript )

Discussion in 'Free Divi Community Forum' started by ThiagoTSA, Jul 23, 2024.

  1. ThiagoTSA

    ThiagoTSA New Member

    Can anyone help me with any tips?

    I need to insert a small code (javascript) that pulls a hotel website calendar. I've already done this same feature with other companies. However, this time it displays the calendar if I am in visual builder mode (front). But when saving the page, on the web it does not display the calendar.

    ----------------- this is the code -------------------------
    <!-- Adicionar antes ao final da tag <body> ... </body> -->
    <!-- Adicionar a div desejada o id artax_form_div <div id="artax_form_div"></div> -->
    <link rel="stylesheet" href="https://artaxnet.com/css/search_form_ebe.css">
    <script src="https://cdnjs.cloudflare.com/.../1.0.0/js/materialize.min.js"></script>
    <script>
    document.addEventListener('DOMContentLoaded', () => {
    fetch("https://pousada-pe-na-areia-guaruja.artaxnet.com/.../ebe")
    .then(response => response.text())
    .then(html => {
    document.getElementById("artax_form_div").innerHTML = html;
    const script = document.createElement('script');
    script.src = 'https://artaxnet.com/js/form_search_artax.js';
    document.body.appendChild(script);
    });
    })
    </script>


    ----------------------------- I inserted this on the page in question to present the form -------------- <

    !-- Adicionar na DIV desejada -->
    <embed src="https://pousada-pe-na-areia-guaruja.artaxnet.com/api/load-form/ebe" type="" width="100%" height="100%">


    divi calendar.png
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More