Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search

    Script won't work

    Header and Footer Scripts
    2
    3
    148
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ícaro Freire
      Ícaro Freire last edited by

      Hello,

      i'm trying to insert the following script before the </body>, but nothing is happening. It doesn't seem to be working. I tried a couple of tweaks, but nothing seems to work. I can't see what is wrong on the code.

       <div vw class="enabled">
          <div vw-access-button class="active"></div>
          <div vw-plugin-wrapper>
            <div class="vw-plugin-top-wrapper"></div>
          </div>
        </div>
        <script src="http://widget.vlibras.gov.br/app/vlibras-plugin.js"></script>
        <script>
          new window.VLibras.Widget('http://widget.vlibras.gov.br/app');
        </script>
      

      Thanks in advance.

      anand 1 Reply Last reply Reply Quote
      • anand
        anand @Ícaro Freire last edited by

        Hello @Ícaro-Freire

        I do not find any problem with the code and it seems to be working on my test site. If you are still facing the issue there might be two possibility:

        1. You might be seeing cached page. or,
        2. If your site is https enabled then you should load 'https' resources. In this case the js is loaded via http. Your browser might be blocking http. "Mixed content error"

        HTH

        Ícaro Freire 1 Reply Last reply Reply Quote
        • Ícaro Freire
          Ícaro Freire @anand last edited by Ícaro Freire

          @anand said in Script won't work:

          your site is https enabled then you should load 'https' resources. In this case the js is loaded via http. Your browser might be blocking http. "Mixed content error"

          Thanks for the reply. Hmmm. My site is https enabled, indeed. Is there a workaround?

          Edit: I change the src to https and it works now. Thanks!!

          1 Reply Last reply Reply Quote
          • First post
            Last post