搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Can I embed an external js file?

  • 1 个回答
  • 5 人有此问题
  • 28 次查看
  • 最后回复者为 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.