From: Tara L Andrews Date: Tue, 18 Sep 2012 14:51:19 +0000 (+0200) Subject: add browser compatibility check X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmaweb.git;a=commitdiff_plain;h=50778a5d5940cd9a4acfd7a0ed32398f2c714f7e add browser compatibility check --- diff --git a/root/js/componentload.js b/root/js/componentload.js index 983ac33..1cbc2ac 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -243,6 +243,12 @@ function _get_url( els ) { $(document).ready( function() { + // See if we have the browser functionality we need + // TODO Also think of a test for SVG readiness + if( typeof window.FileReader && typeof window.File ) { + $('#compatibility_check').empty(); + } + // call out to load the directory div $('#textinfo_container').hide(); $('#textinfo_waitbox').hide(); diff --git a/root/src/index.tt b/root/src/index.tt index bf5cdf0..cdac15f 100644 --- a/root/src/index.tt +++ b/root/src/index.tt @@ -13,6 +13,10 @@ var textOnLoad = "[% withtradition %]";

Stemmaweb - a collection of tools for analysis of collated texts

[% IF c.user_exists %]Hello! [% c.user.get_object.email %] Sign out | [% ELSE %]Login | [% END %]About +

This browser does not support + the functions necessary for Stemmaweb to work properly. We recommend use of + Mozilla Firefox or + Google Chrome.

Text directory