version 1.107, 2015/01/19 15:35:53
|
version 1.112, 2024/06/06 15:55:19
|
Line 56 sub useHTML5 {
|
Line 56 sub useHTML5 {
|
} elsif ($env{'browser.type'} eq 'safari') { |
} elsif ($env{'browser.type'} eq 'safari') { |
if ($env{'browser.os'} eq 'mac') { |
if ($env{'browser.os'} eq 'mac') { |
my ($prefix,$version) = ($env{'browser.version'} =~ /^(\d*)(\d{3})\./); |
my ($prefix,$version) = ($env{'browser.version'} =~ /^(\d*)(\d{3})\./); |
if ((!$env{'browser.mobile'}) || |
if ($version >= 536) { |
(($env{'browser.mobile'}) && length($prefix))) { |
return 1; |
if ($version >= 536) { |
|
return 1; |
|
} |
|
} |
} |
} |
} |
} elsif ($env{'browser.type'} eq 'mozilla') { |
} elsif ($env{'browser.type'} eq 'mozilla') { |
Line 73 sub useHTML5 {
|
Line 70 sub useHTML5 {
|
} |
} |
} |
} |
} elsif ($env{'browser.type'} eq 'explorer') { |
} elsif ($env{'browser.type'} eq 'explorer') { |
if (($env{'browser.os'} eq 'win') && ($env{'browser.version'} == 10)) { |
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 1; |
} |
} |
} |
} |
Line 158 sub html5_geogebra_startcode {
|
Line 159 sub html5_geogebra_startcode {
|
unless ($height) { $height=400; } |
unless ($height) { $height=400; } |
my $code=&geogebra_internal_program(); |
my $code=&geogebra_internal_program(); |
return (<<ENDSTARTCODE); |
return (<<ENDSTARTCODE); |
|
<div class="LC_left_float" style="margin:0; width:100%;"> |
<article class="geogebraweb" data-param-enableLabelDrags="false" data-param-enableShiftDragZoom="false" |
<article class="geogebraweb" data-param-enableLabelDrags="false" data-param-enableShiftDragZoom="false" |
data-param-width="$width" data-param-height="$height" data-param-id="ggbApplet$appid" |
data-param-width="$width" data-param-height="$height" data-param-id="ggbApplet$appid" |
data-param-ggbbase64="$code"></article> |
data-param-useBrowserForJS="true" data-param-ggbbase64="$code"></article> |
|
</div><div style="padding:0;clear:both;margin:0;border:0"></div> |
ENDSTARTCODE |
ENDSTARTCODE |
} |
} |
|
|