[LON-CAPA-dev] Plot Response and HTML5
Mark Lucas
lucasm at ohio.edu
Thu Jun 20 09:28:45 EDT 2013
I'm stuck in the dark ages.
The chrome download worked.
When I downloaded using safari, the image came up but nothing else happened.
I'm still running snow leopard, which means I'm stuck back on Safari 5.1.9.
Is there a way to stick a version check on Safari?
(I guess the same thing would happen with a too-old chrome as well, though I
don't know where that threshold is).
Later,
Mark
On Jun 19, 2013, at 1:57 PM, Gerd Kortemeyer wrote:
> Hi,
>
> On Jun 19, 2013, at 11:31 AM, Mark Lucas <lucasm at ohio.edu> wrote:
>
>> How does LON-CAPA check for the functionality and decide which to deliver?
>>
>> Is there a particular function that is tested?
>
> No, we had to test each browser. Here's the function that decides:
>
> www Fri Aug 17 18:02:16 2012 EDT
>
> Modified files:
> /loncom/homework functionplotresponse.pm
> Log:
> HTML5 compatibility
>
>
> Index: loncom/homework/functionplotresponse.pm
> diff -u loncom/homework/functionplotresponse.pm:1.98 loncom/homework/functionplotresponse.pm:1.99
> --- loncom/homework/functionplotresponse.pm:1.98 Fri Aug 17 13:08:11 2012
> +++ loncom/homework/functionplotresponse.pm Fri Aug 17 18:02:15 2012
> @@ -1,7 +1,7 @@
> # LearningOnline Network with CAPA
> # Functionplot responses
> #
> -# $Id: functionplotresponse.pm,v 1.98 2012/08/17 13:08:11 www Exp $
> +# $Id: functionplotresponse.pm,v 1.99 2012/08/17 18:02:15 www Exp $
> #
> # Copyright Michigan State University Board of Trustees
> #
> @@ -49,7 +49,10 @@
> # Return a true value if HTML5 should be used.
>
> 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;
> }
>
> #
> _______________________________________________
> LON-CAPA-dev mailing list
> LON-CAPA-dev at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-dev
--
Mark Lucas email: lucasm at ohiou.edu
252D Clippinger Lab phone: (740)597-2984
Department of Physics and Astronomy fax: (740)593-0433
Ohio University
Athens, OH 45701
More information about the LON-CAPA-dev
mailing list