version 1.102, 2013/07/12 21:19:17
|
version 1.105.2.1, 2015/03/10 15:43:59
|
Line 49 BEGIN {
|
Line 49 BEGIN {
|
# Return a true value if HTML5 should be used. |
# Return a true value if HTML5 should be used. |
|
|
sub useHTML5 { |
sub useHTML5 { |
if ($env{'browser.type'} eq 'chrome') { return 1; } |
if ($env{'browser.type'} eq 'chrome') { |
if (($env{'browser.type'} eq 'safari') && |
if ($env{'browser.version'} >= 14) { |
($env{'browser.os'} eq 'mac')) { return 1; } |
return 1; |
|
} |
|
} elsif ($env{'browser.type'} eq 'safari') { |
|
if ($env{'browser.os'} eq 'mac') { |
|
my ($prefix,$version) = ($env{'browser.version'} =~ /^(\d*)(\d{3})\./); |
|
if ((!$env{'browser.mobile'}) || |
|
(($env{'browser.mobile'}) && length($prefix))) { |
|
if ($version >= 536) { |
|
return 1; |
|
} |
|
} |
|
} |
|
} elsif ($env{'browser.type'} eq 'mozilla') { |
|
if ($env{'browser.info'} =~ /^firefox\-(\d+)/) { |
|
my $firefox = $1; |
|
if ((($env{'browser.os'} eq 'mac') && ($firefox >= 20)) || |
|
(($env{'browser.os'} eq 'unix') && ($firefox >= 17)) || |
|
(($env{'browser.os'} eq 'win') && ($firefox >= 14))) { |
|
return 1; |
|
} |
|
} |
|
} elsif ($env{'browser.type'} eq 'explorer') { |
|
if (($env{'browser.os'} eq 'win') && ($env{'browser.version'} == 10)) { |
|
return 1; |
|
} |
|
} elsif ($env{'browser.type'} eq 'opera') { |
|
if ($env{'browser.version'} >= 18) { |
|
return 1; |
|
} |
|
} |
return 0; |
return 0; |
} |
} |
|
|
Line 158 sub java_geogebra_default_parameters {
|
Line 187 sub java_geogebra_default_parameters {
|
<param name="boxborder" value="false" /> |
<param name="boxborder" value="false" /> |
<param name="centerimage" value="true" /> |
<param name="centerimage" value="true" /> |
<param name="cache_archive" value="geogebra.jar, geogebra_main.jar, geogebra_gui.jar, geogebra_cas.jar, geogebra_export.jar, geogebra_algos.jar, geogebra_javascript.jar, geogebra_properties.jar, jlatexmath.jar, jlm_cyrillic.jar, jlm_greek.jar" /> |
<param name="cache_archive" value="geogebra.jar, geogebra_main.jar, geogebra_gui.jar, geogebra_cas.jar, geogebra_export.jar, geogebra_algos.jar, geogebra_javascript.jar, geogebra_properties.jar, jlatexmath.jar, jlm_cyrillic.jar, jlm_greek.jar" /> |
<param name="cache_version" value="4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0,4.0.1.0" /> |
<param name="cache_version" value="4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0,4.4.3.0" /> |
<param name="framePossible" value="false" /> |
<param name="framePossible" value="false" /> |
|
|
<param name="showResetIcon" value="false" /> |
<param name="showResetIcon" value="false" /> |
Line 887 sub start_functionplotrule {
|
Line 916 sub start_functionplotrule {
|
$result=&Apache::edit::tag_start($target,$token,'Function Plot Graph Rule'). |
$result=&Apache::edit::tag_start($target,$token,'Function Plot Graph Rule'). |
&Apache::edit::text_arg('Index/Name:','index', |
&Apache::edit::text_arg('Index/Name:','index', |
$token,'10').' '. |
$token,'10').' '. |
&Apache::edit::select_arg(&mt('Function:'),'derivativeorder', |
&Apache::edit::select_arg('Function:','derivativeorder', |
[['0','Function itself'], |
[['0','Function itself'], |
['1','First derivative'], |
['1','First derivative'], |
['2','Second derivative'], |
['2','Second derivative'], |