~ubuntu-branches/ubuntu/precise/ncbi-tools6/precise

« back to all changes in this revision

Viewing changes to doc/seq_install/sniff.js

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
** Sniff browser
 
4
*/
 
5
if (navigator.appVersion.indexOf("Mac") != -1) {
 
6
    platform = "mac";
 
7
} else {
 
8
    platform = "win";
 
9
}
 
10
 
 
11
if (platform == 'win' && (parseInt(navigator.appVersion) < 4 )) {
 
12
          browser = 'ie3';
 
13
}
 
14
else if ((navigator.appName.indexOf("Netscape") != -1) ||
 
15
         (navigator.appName.indexOf("Safari") != -1) ||
 
16
         (navigator.appName.indexOf("Gecko") != -1)) {
 
17
          browser = 'netscape';
 
18
} else {
 
19
          browser = 'ie';
 
20
}
 
21
document.write("<LINK REL=stylesheet HREF=\"",platform,"-",browser,".css\" TYPE=\"text/css\">");