--- loncom/homework/functionplotresponse.pm 2015/01/19 15:35:53 1.107 +++ loncom/homework/functionplotresponse.pm 2015/04/05 17:09:12 1.110 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # Functionplot responses # -# $Id: functionplotresponse.pm,v 1.107 2015/01/19 15:35:53 goltermann Exp $ +# $Id: functionplotresponse.pm,v 1.110 2015/04/05 17:09:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -56,11 +56,8 @@ sub useHTML5 { } 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; - } + if ($version >= 536) { + return 1; } } } elsif ($env{'browser.type'} eq 'mozilla') { @@ -73,7 +70,11 @@ sub useHTML5 { } } } 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; } }