Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

Can I embed an external js file?

  • 1 답장
  • 5 이 문제를 만남
  • 30 보기
  • 최종 답변자: alanmoo

more options

I was trying to make a tutorial about how to make a GeoGebra webpage by embedding the JavaScript API provided by GeoGebra.

What I did was to include the following code in my index.html file:

<script src="http://www.geogebratube.org/scripts/deployggb.js"></script>

but it didn't work.

I have to copy the entire deployggb.js file, and make it a local one to make it work. See: https://d157rqmxrxj6ey.cloudfront.net/pegasusroe/38459/

Does Thimble support external js files?

I was trying to make a tutorial about how to make a GeoGebra webpage by embedding the JavaScript API provided by GeoGebra. What I did was to include the following code in my index.html file: <script src="http://www.geogebratube.org/scripts/deployggb.js"></script> but it didn't work. I have to copy the entire deployggb.js file, and make it a local one to make it work. See: https://d157rqmxrxj6ey.cloudfront.net/pegasusroe/38459/ Does Thimble support external js files?

선택된 해결법

Thimble does support external js files, but they have to be loaded securely. That means the server they're hosted on has to support https and the url used as the `src` needs to start with `https` as well.

문맥에 따라 이 답변을 읽어주세요 👍 3

모든 댓글 (1)

more options

선택된 해결법

Thimble does support external js files, but they have to be loaded securely. That means the server they're hosted on has to support https and the url used as the `src` needs to start with `https` as well.