@ -1,12 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<widget xmlns="http://www.w3.org/ns/widgets" |
|
||||||
xmlns:ub="http://uniboard.mnemis.com/widgets" |
|
||||||
id="http://uniboard.mnemis.com/widgets/geogebra" |
|
||||||
version="1.0" |
|
||||||
width="800" |
|
||||||
height="500" |
|
||||||
ub:resizable="true" |
|
||||||
ub:roles="tool cMAC cUNIX"> |
|
||||||
<name>Geogebra</name> |
|
||||||
<content src="index.html"/> |
|
||||||
</widget> |
|
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.0 KiB |
@ -1,71 +0,0 @@ |
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
|
||||||
<HTML><HEAD> |
|
||||||
<META http-equiv=Content-Type content="text/html; charset=windows-1252"> |
|
||||||
<BODY> |
|
||||||
<DIV id=applet1></DIV> |
|
||||||
<SCRIPT type=text/javascript> |
|
||||||
|
|
||||||
function ggbOnInit() |
|
||||||
{ |
|
||||||
alert("Geogebra applet is initialized"); |
|
||||||
} |
|
||||||
|
|
||||||
var width=0; |
|
||||||
var height=0; |
|
||||||
setWidthHeight(); |
|
||||||
|
|
||||||
if (height < 500) height=500; |
|
||||||
if (width < 800) width=800; |
|
||||||
|
|
||||||
|
|
||||||
var applet1=document.getElementById('applet1'); |
|
||||||
|
|
||||||
applet1.innerHTML=geogebra_applet(0.95*width,height*0.95,"",true,true,true,false,true,true,true,true,true,true,true,true); |
|
||||||
|
|
||||||
function geogebra_applet(width,height,filename,framePossible,enableRightClick,enableShiftDragZoom,showResetIcon,showMenuBar,showToolBar,showToolBarHelp,showAlgebraInput,enableLabelDrags,showSpreadsheet,showAlgebraView) { |
|
||||||
|
|
||||||
|
|
||||||
ret = '<applet name="ggbApplet" code="geogebra.GeoGebraApplet" codebase="./bin/" archive="geogebra.jar" height="'+height+'" width="'+width+'">'; |
|
||||||
ret +='<param name="image" value="./images/loading.gif"/><param name="boxborder" value="false"/><param name="centerimage" value="true">'; |
|
||||||
ret +='<param name="java_arguments" value="-Xmx512m">'; |
|
||||||
if (filename != "") ret+='<param name="filename" value="'+filename+'">'; |
|
||||||
ret+='<param name="framePossible" value="'+framePossible+'">'; |
|
||||||
ret+='<param name="enableRightClick" value="'+enableRightClick+'">'; |
|
||||||
ret+='<param name="enableShiftDragZoom" value="'+enableShiftDragZoom+'">'; |
|
||||||
ret+='<param name="enableLabelDrags" value="'+enableLabelDrags+'">'; |
|
||||||
ret+='<param name="showSpreadsheet" value="'+showSpreadsheet+'">'; |
|
||||||
ret+='<param name="showAlgebraView" value="'+showAlgebraView+'">'; |
|
||||||
ret+='<param name="showResetIcon" value="'+showResetIcon+'">'; |
|
||||||
ret+='<param name="showMenuBar" value="'+showMenuBar+'">'; |
|
||||||
ret+='<param name="showToolBar" value="'+showToolBar+'">'; |
|
||||||
ret+='<param name="showToolBarHelp" value="'+showToolBarHelp+'">'; |
|
||||||
ret+='<param name="showAlgebraInput" value="'+showAlgebraInput+'">'; |
|
||||||
ret+='Sorry, the GeoGebra Applet could not be started. Please make sure that Java 1.4.2 (or later) is installed and activated.'; |
|
||||||
ret+='(<a href="http://java.sun.com/getjava">click here to install Java now</a>)'; |
|
||||||
ret+='</applet>'; |
|
||||||
return ret; |
|
||||||
} |
|
||||||
|
|
||||||
function setWidthHeight() { |
|
||||||
var myWidth = 0, myHeight = 0; |
|
||||||
if( typeof( window.innerWidth ) == 'number' ) { |
|
||||||
//Non-IE |
|
||||||
myWidth = window.innerWidth; |
|
||||||
myHeight = window.innerHeight; |
|
||||||
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { |
|
||||||
//IE 6+ in 'standards compliant mode' |
|
||||||
myWidth = document.documentElement.clientWidth; |
|
||||||
myHeight = document.documentElement.clientHeight; |
|
||||||
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { |
|
||||||
//IE 4 compatible |
|
||||||
myWidth = document.body.clientWidth; |
|
||||||
myHeight = document.body.clientHeight; |
|
||||||
} |
|
||||||
//window.alert( 'Width = ' + myWidth ); |
|
||||||
//window.alert( 'Height = ' + myHeight ); |
|
||||||
width=myWidth; |
|
||||||
height=myHeight; |
|
||||||
} |
|
||||||
</SCRIPT> |
|
||||||
</BODY></HTML> |
|
||||||
|
|
Before Width: | Height: | Size: 167 KiB |
Before Width: | Height: | Size: 167 KiB |
After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 166 KiB |
After Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 167 KiB |
After Width: | Height: | Size: 3.0 MiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.0 MiB |