Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

How do I use jQuery in my Thimble project

  • 1 resposta
  • 6 têm este problema
  • 5 visualizações
  • Última resposta por gregonicus

more options

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

Todas as respostas (1)

more options

Ok - "solved" it. It just works as you think it would - with one extra step.

1. include standard script entries in the header (1 for jquery, 1 for my custom code)

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 <script src="script-1.js"></script>

2. Add some jquery code to your js...

$(document).ready(function() {

 alert($("head title")[0].innerHTML);

});

THAT EXTRA STEP: Click the circle-arrow button to refresh the preview. (Doh!)

Yeah - the site is so responsive - i didn't even notice there was a refresh button.