Skip to content

Commit

Permalink
add applet1.setHTML5Codebase("https://cdn.geogebra.org/apps/5.0.541.0…
Browse files Browse the repository at this point in the history
  • Loading branch information
murkle authored Jun 18, 2019
1 parent a8eaff4 commit deb8531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ggbt.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ M.form_ggbt.injectapplet = function (id) {
document.getElementById('applet_container1').style.display = "block";

applet1 = new GGBApplet(parameters, true);
applet1.setHTML5Codebase("https://cdn.geogebra.org/apps/5.0.541.0/web3d");

applet1.inject("applet_container1", "preferHTML5");

Expand Down Expand Up @@ -235,6 +236,7 @@ function handlesettingschanged(evt) {
Y.one('input[name="ggbparameters"]').set('value', JSON.stringify(parameters));
if (evt.target.id == "showToolBar" || evt.target.id == "showMenuBar" || evt.target.id == "showAlgebraInput") {
applet1 = new GGBApplet(parameters, true);
applet1.setHTML5Codebase("https://cdn.geogebra.org/apps/5.0.541.0/web3d");
applet1.inject("applet_container1", "preferHTML5");
} else {
ggbApplet[evt.target.id](evt.target.checked);
Expand Down Expand Up @@ -318,6 +320,7 @@ function handleDrop(e) {
parameters.showToolBar = show_tool_bar.checked;
parameters.moodle = "editingQuestionOrSubmission";
applet1 = new GGBApplet(parameters, true);
applet1.setHTML5Codebase("https://cdn.geogebra.org/apps/5.0.541.0/web3d");
applet1.inject("applet_container1", "preferHTML5");
};

Expand All @@ -327,4 +330,4 @@ function handleDrop(e) {

function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
}

0 comments on commit deb8531

Please sign in to comment.