~ubuntu-branches/ubuntu/trusty/jwchat/trusty

« back to all changes in this revision

Viewing changes to browsercheck.js.es_ga

  • Committer: Bazaar Package Importer
  • Author(s): Lincoln de Sousa, Lincoln de Sousa, Marcelo Jorge Vieira
  • Date: 2010-09-16 11:42:28 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100916114228-5s5ne28n1w6wrfbl
Tags: 1.0+dfsg-1
[Lincoln de Sousa]

* Switch to dpkg-source 3.0 (quilt) format
* Migrating package from cdbs to debhelper 7.0.50~
* Changing the rule get-orig-source to generate a dfsg compatible
  package striping swf files from the orig (Closes: #591962)
* Updated Standards-Version to 3.9.1
* Removing po-debconf from the Build-Depends-Indep list.

[Marcelo Jorge Vieira]

* Fixing the default backend
* Fixing Debugger dependency
* Changing information about packaging from old maintainers to
  Debian XMPP Team.
* Removing sound support.
* Setting a port for apache VirtualHost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      BrowserCheck Object
2
 
        provides most commonly needed browser checking variables
3
 
        19990326
4
 
*/
5
 
// Copyright (C) 1999 Dan Steinman
6
 
// Distributed under the terms of the GNU Library General Public License
7
 
// Available at http://www.dansteinman.com/dynapi/
8
 
 
9
 
function BrowserCheck() {
10
 
        var b = navigator.appName
11
 
        if (b=="Netscape") this.b = "ns"
12
 
        else if (b=="Microsoft Internet Explorer") this.b = "ie"
13
 
        else if (b=="Opera") this.b = "op"
14
 
        else this.b = b
15
 
        this.v = parseInt(navigator.appVersion)
16
 
        this.ns = (this.b=="ns" && this.v>=4)
17
 
        this.ns4 = (this.b=="ns" && this.v==4)
18
 
        this.ns5 = (this.b=="ns" && this.v==5)
19
 
        this.ie = (this.b=="ie" && this.v>=4)
20
 
        this.op = (this.b=="op" && this.v>=7)
21
 
        this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
22
 
        this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
23
 
        this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0)
24
 
        if (this.ie55) {
25
 
                this.v = 5.5;
26
 
                this.ie5 = false;
27
 
        }
28
 
        this.mac = (navigator.userAgent.indexOf('Mac')>0);
29
 
        if (this.ie5) this.v = 5
30
 
        this.min = (this.ns||this.ie)
31
 
}
32
 
 
33
 
// automatically create the "is" object
34
 
is = new BrowserCheck()