Diff for /loncom/homework/functionplotresponse.pm between versions 1.98 and 1.100

version 1.98, 2012/08/17 13:08:11 version 1.100, 2012/08/17 22:51: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 {
     return 1;      if  ($env{'browser.type'} eq 'chrome') { return 1; }
       if (($env{'browser.type'} eq 'safari') &&
           ($env{'browser.os'} eq 'mac')) { return 1; }
       return 0;
 }  }
   
 #  #
Line 193  sub init_script { Line 196  sub init_script {
       my $html5init='';        my $html5init='';
       if (&useHTML5()) {        if (&useHTML5()) {
           $html5init=            $html5init=
            '<script type="text/javascript" language="javascript" src="/adm/geogebra/html5/web/test42/web/web.nocache.js"></script>';             '<script type="text/javascript" language="javascript" src="/adm/geogebra/web/web.nocache.js"></script>';
       }        }
       return (<<ENDGGBINIT);        return (<<ENDGGBINIT);
 $html5init  $html5init

Removed from v.1.98  
changed lines
  Added in v.1.100


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>