Script won't work



  • 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.



  • 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



  • @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!!


Log in to reply