/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to js/client.js

  • Committer: Suren A. Chilingaryan
  • Date: 2011-01-26 02:48:39 UTC
  • mto: This revision was merged to the branch mainline in revision 212.
  • Revision ID: csa@dside.dyndns.org-20110126024839-nv6qp2ie9stmd2dn
Support of Appled devices by Toni Pirhonen

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    return (navigator.userAgent.toLowerCase().indexOf("konqueror") > -1) ? true : false;
19
19
}
20
20
 
 
21
function isiDevice() {
 
22
  return (navigator.userAgent.indexOf('iPhone') > -1 || navigator.userAgent.indexOf('iPod') > -1 || navigator.userAgent.indexOf('iPad') > -1 || navigator.userAgent.indexOf('android') > -1) ? true : false;
 
23
}
 
24
function isiPhone() {
 
25
  return (navigator.userAgent.indexOf('iPhone') > -1 || navigator.userAgent.indexOf('iPod')) ? true : false;
 
26
}
 
27
function isiPad(){
 
28
  return (navigator.userAgent.indexOf('iPad') > -1) ? true : false;
 
29
}
 
30
 
21
31
function CLIENT() {
22
32
    this.browser = 0;
23
33
    this.version = 0;
38
48
CLIENT.prototype.isKonqueror = function() {
39
49
    return isKonqueror();
40
50
}
41
 
 
 
51
CLIENT.prototype.isiDevice = function() {
 
52
  return isiDevice();
 
53
}
 
54
CLIENT.prototype.isiPhone = function() {
 
55
  return isiPhone();
 
56
}
 
57
CLIENT.prototype.isiPad = function() {
 
58
  return isiPad();
 
59
}
42
60
client = new CLIENT();