geogebra 图形嵌入网页
转自https://www.zywvvd.com/2020/12/19/tools/geogebra/geogebra-html-embed/geogebra-html-embed/#valine-comments
geogebra是优秀的数学绘图工具,可以描述数学图像并演示,支持互动,功能强大。本文介绍将geogebra嵌入网页的方法。
一. 网页嵌入方法
使用iframe
- iframe` 元素会创建包含另外一个文档的内联框架(即行内框架)。
获取geogebra图形的iframe代码
- 打开geogebra 6(网页版、客户端都可以),https://www.geogebra.org/classic 并编辑内容
- 分享后获得分享链接,替换src内容部分
- 此处以 https://blog.csdn.net/fatty_zhu/article/details/77411254 的示例src为例:
<iframe
scrolling="no"
title="布丰投针实验" src="https://www.geogebra.org/material/iframe/id/A25F9Tzs/width/1347/height/598/border/888888/smb/false/stb/false/stbh/false/ai/false/asb/false/sri/true/rc/false/ld/false/sdz/true/ctl/false"
width="800px"
height="400px">
</iframe>
- 上述代码放在单独的html文件中即可运行
二. 官网js解析ggb文件信息
- 将画好的图形下载成
ggb
文件格式 - 将该文件上传到网络(不允许读取本地的文件),链接必须为
http, data, chrome, chrome-extension, chrome-untrusted, https
类型之一。 - 获取文件链接,以我的链接 https://photos.zywvvd.com/images_matrixtime/20201219164932.ggb 为例
- 向html文件黏贴代码:
<script src="https://cdn.geogebra.org/apps/deployggb.js"></script>
<div id="ggbApplet"></div>
<script>
var parameters = {
"id": "ggbApplet",
"width":468,
"height":492,
"showToolBar":true,
"language":"zh",
"filename":"https://photos.zywvvd.com/images_matrixtime/20201219164932.ggb",
};
// is3D=is 3D applet using 3D view, AV=Algebra View, SV=Spreadsheet View, CV=CAS View, EV2=Graphics View 2, CP=Construction Protocol, PC=Probability Calculator DA=Data Analysis, FI=Function Inspector, macro=Macros
var views = {'is3D': 0,'AV': 0,'SV': 0,'CV': 0,'EV2': 0,'CP': 0,'PC': 0,'DA': 0,'FI': 0,'macro': 0};
var applet = new GGBApplet(parameters, '5.0', views);
window.onload = function() {applet.inject('ggbApplet')};
applet.setPreviewImage('data:image/gif;base64,R0lGODlhAQABAAAAADs=','https://www.geogebra.org/images/GeoGebra_loading.png','https://www.geogebra.org/images/applet_play.png');
</script>
三.官网js解析ggbBase64信息
- 事实上就是按照官方教程行事 https://wiki.geogebra.org/en/Reference:GeoGebra_App_Parameters
- 获取ggbBase64可以在 https://geogebra.kz16.top/ 上作图,直接得到代码
也可以将画好的图形下载成网页
.html
格式
得到如下这段代码,这段代码直接黏贴到一个空的html文件联网即可运行。
<script src="https://cdn.geogebra.org/apps/deployggb.js"></script> <div id="ggbApplet"></div> <script> var parameters = { "id": "ggbApplet", "width":468, "height":492, "showToolBar":true, "language":"zh", // use this instead of ggbBase64 to load a material from geogebra.org // "material_id":"RHYH3UQ8", // use this instead of ggbBase64 to load a .ggb file // "filename":"myfile.ggb", "ggbBase64":"UEsDBBQACAgIABxZk1EAAAAAAAAAAAAAAAAXAAAAZ2VvZ2VicmFfZGVmYXVsdHMyZC54bWztmk9z4jYUwM/dT+HRqT0EJIOBZOLsZHem08xks5km0+lV2MKoEZJrycHk01eWjG0WnAZDFpLdHCI/WX9/7+npSeb8YzZjziNJJBXcB6gDgUN4IELKIx+kanIyAh8vPpxHRERknGBnIpIZVj7w8pJlPS11Bi7M83Ac+yBgWEoaACdmWOVVfCAmE0Y5AY6TSXrGxQ2eERnjgNwFUzLD1yLAyrQ1VSo+63bn83ln2WtHJFFXNyy7mQy7UaQ6OgWOHjqXPigeznS7K7XnPVPPhRB1//5ybfs5oVwqzAM9ED2tkExwypTUj4SRGeHKUYuY+CAWlCvgMDwmzAe3ueT8OkkI+Q04RSVNC4KLD7+cy6mYO2L8Dwl0nkpSUtYzQjcvo19/FkwkTuKD4RA4kU3GPnA9T0Nj8RT7ANrCDC9I4jxiVubgVInA1De5E8wkWZbVPX0RIbFv+kV5TmcGpyMV0fqAHQQcGRMS6lGDYo7IqGdhNF1rMRAiCaWT+eAG3wBnUaRPNjVFDJ07+lR06tVz1YKR2tjPuwXYlyEOSUx4qAutcEatOA9GhnOejG3y2phfE3L/tSEPfkJugoy2p/y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cem1ZylJu8RIFxgZxtdvKlu6rHaLCskIDd52ZfRJAMKHO/sS8cycGTq7H6XuCHETZbARd6viw51PGecz70Ba3lHhGqctyf1UXd9Qo6XbYeTjqPIytyHRd7gxelBHY6nRRdpp2ucuewo505sSsQgnFg5U6jhBAn6r3GIRDRNkYvnQRMrb0tBPNBmMer5+0HamiW6d2Lz+ropDVoLuoMDAtkJi+pdtTA32DHrCJ6IT9rEPqHzHL/j+Ypf8hzI6YRDT9StR7HbciDi69W1jCNwK+g+O38D1kPUf3I9HHW9SNDzwegCzIPd1yHwrwA+HszxTk/rtZ1yZHTUBNuAUKv9/bzv2+j+51PdSNyJUhNsm8q/J/VY6BdvUFHVkqpLnr9dk4Y9rjTvf72PO/AVBLBwi8SnA4iQYAAPETAABQSwECFAAUAAgICAAcWZNRfBnMduoEAADxJQAAFwAAAAAAAAAAAAAAAAAAAAAAZ2VvZ2VicmFfZGVmYXVsdHMyZC54bWxQSwECFAAUAAgICAAcWZNRB4r7K1IDAAD2EAAAFwAAAAAAAAAAAAAAAAAvBQAAZ2VvZ2VicmFfZGVmYXVsdHMzZC54bWxQSwECFAAUAAgICAAcWZNR1je9uRkAAAAXAAAAFgAAAAAAAAAAAAAAAADGCAAAZ2VvZ2VicmFfamF2YXNjcmlwdC5qc1BLAQIUABQACAgIABxZk1G8SnA4iQYAAPETAAAMAAAAAAAAAAAAAAAAACMJAABnZW9nZWJyYS54bWxQSwUGAAAAAAQABAAIAQAA5g8AAAAA", }; // is3D=is 3D applet using 3D view, AV=Algebra View, SV=Spreadsheet View, CV=CAS View, EV2=Graphics View 2, CP=Construction Protocol, PC=Probability Calculator DA=Data Analysis, FI=Function Inspector, macro=Macros var views = {'is3D': 0,'AV': 0,'SV': 0,'CV': 0,'EV2': 0,'CP': 0,'PC': 0,'DA': 0,'FI': 0,'macro': 0}; var applet = new GGBApplet(parameters, '5.0', views); window.onload = function() {applet.inject('ggbApplet')}; applet.setPreviewImage('data:image/gif;base64,R0lGODlhAQABAAAAADs=','https://www.geogebra.org/images/GeoGebra_loading.png','https://www.geogebra.org/images/applet_play.png'); </script>
四. 本地js解析ggbBase64信息
- 继续按照官方教程行事 https://wiki.geogebra.org/en/Reference:GeoGebra_App_Parameters
- 主要在
Offline and Self-Hosted Solution
这一部分 - 需要自己下载相关的js文件
(deployggb.js和5.0/web3d/)
- 配置
deployggb.js
和5.0/web3d/
的位置 - 我将
deployggb.js
放在了/js/deployggb.js
下;web3d
放在了/js/5.0/web3d/
位置 - 代数区输入公式 创建图形
- 为了让图形居中显示,在调用的div模块上加入style设置
style='margin:0 auto':
综上,在html贴上如下代码:
<script src="/js/deployggb.js"></script> <script> var parameters = { "id": "ggbApplet", "width":500, "height":500, "showResetIcon":true, "borderColor":"white", "language":"en", "ggbBase64":"UEsDBBQACAgIAA1ak1EAAAAAAAAAAAAAAAAXAAAAZ2VvZ2VicmFfZGVmYXVsdHMyZC54bWztmk9z4jYUwM/dT+HRqT0EJIOBZOLsZHem08xks5km0+lV2MKoEZJrycHk01eWjG0WnAZDFpLdHCI/WX9/7+npSeb8YzZjziNJJBXcB6gDgUN4IELKIx+kanIyAh8vPpxHRERknGBnIpIZVj7w8pJlPS11Bi7M83Ac+yBgWEoaACdmWOVVfCAmE0Y5AY6TSXrGxQ2eERnjgNwFUzLD1yLAyrQ1VSo+63bn83ln2WtHJFFXNyy7mQy7UaQ6OgWOHjqXPigeznS7K7XnPVPPhRB1//5ybfs5oVwqzAM9ED2tkExwypTUj4SRGeHKUYuY+CAWlCvgMDwmzAe3ueT8OkkI+Q04RSVNC4KLD7+cy6mYO2L8Dwl0nkpSUtYzQjcvo19/FkwkTuKD4RA4kU3GPnA9T0Nj8RT7ANrCDC9I4jxiVubgVInA1De5E8wkWZbVPX0RIbFv+kV5TmcGpyMV0fqAHQQcGRMS6lGDYo7IqGdhNF1rMRAiCaWT+eAG3wBnUaRPNjVFDJ07+lR06tVz1YKR2tjPuwXYlyEOSUx4qAutcEatOA9GhnOejG3y2phfE3L/t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VZuKRtlSPGYXMTWrOvW3qaEwSV759rX7bUV6IM8GBBZvcOdYokeJkuy62plUcpSbvCKBca6eLXdyJZus529hUWFMm47JZzzSdDFAZkb6uxPzEy3vORoHNy+JwxAlM1a0LWPD1khZZzHvHd+cUOpaaR5i/1NXXSs9NmqpPtjp+Wo0zKOItN1uTV4lUbTV8ertOO0y262TztQV4p5h1KOB0t1GFkB9ao+opsOVrZefuF8aCzpMVbNGqMCL6gUsFTzrWK7l59VUchq4F0MboQJXrqoG+Ab1IBNVaNQcsb6R7Nlt82Gl+v/r9XS/47VDphnNP2Q1Csd4xEXF94NLOAbAd/B4Vv4HrIeofsd6fM4desDjgcYFuSOLsIPte8Drdm3HaT924nZ5k9NdrI5gyyFivqI9j564536j+5VP9SNyJUhTMms6wb+qhwC7eoQarNUCHNb9dNx7rRtUfc72su/AVBLBwhclqmpmwYAABkUAABQSwECFAAUAAgICAANWpNRfBnMduoEAADxJQAAFwAAAAAAAAAAAAAAAAAAAAAAZ2VvZ2VicmFfZGVmYXVsdHMyZC54bWxQSwECFAAUAAgICAANWpNRB4r7K1IDAAD2EAAAFwAAAAAAAAAAAAAAAAAvBQAAZ2VvZ2VicmFfZGVmYXVsdHMzZC54bWxQSwECFAAUAAgICAANWpNR1je9uRkAAAAXAAAAFgAAAAAAAAAAAAAAAADGCAAAZ2VvZ2VicmFfamF2YXNjcmlwdC5qc1BLAQIUABQACAgIAA1ak1FclqmpmwYAABkUAAAMAAAAAAAAAAAAAAAAACMJAABnZW9nZWJyYS54bWxQSwUGAAAAAAQABAAIAQAA+A8AAAAA"}; var applet = new GGBApplet(parameters, '5.0'); applet.setHTML5Codebase('/js/5.0/web3d/'); window.onload = function() {applet.inject('ggbApplet')}; </script> <div id="ggbApplet" style='margin:0 auto'></div>
五. 本地js解析ggb文件信息
- 与官网解析ggb文件一样,首先获取ggb文件,将文件上传,获取链接
将上文的
ggbBase64
替换为filename
,附上链接,向网页黏贴代码<script src="deployggb.js"></script> <script> var parameters = { "id": "ggbApplet", "width":500, "height":500, "borderColor":"white", "language":"en", "filename":"https://photos.zywvvd.com/images_matrixtime/20201219164932.ggb"}; var applet = new GGBApplet(parameters, '5.0'); applet.setHTML5Codebase('5.0/web3d/'); window.onload = function() {applet.inject('ggbApplet')}; </script> <div id="ggbApplet"></div>
js解析ggb信息过程中的参数设置
- 参考:https://wiki.geogebra.org/en/Reference:GeoGebra_App_Parameters
- 可以根据个人需求设置各项参数
It is remarkable, rather valuable message
dfgdlfg2131.32
https://howyoutoknowacxv.online/map.php