Good day!

Whether here interests whether there is an opportunity to define iOS device on the website by means of jQuery ?

    1 answer 1

    In this way:

     jQuery.os = { name: (/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris') }; 
    • and ipad? and how to use it? I just just delve into js, ​​how to put in jQuery.os alert - Dimastik86
    • 3
      And mister @IamS likes to leave the understatement)) alert (jQuery.os.name); - Deonis
    • 2
      And to display, do this: alert (jQuery.os.name); And to check on the ipad, you can add it: (/ (win | mac | linux | sunos | solaris | iphone | ipad) / - k0mar
    • one
      @Deonis, oops)) - k0mar
    • mega cool! thanks for the clarifications! those. I can add there android and so on? - Dimastik86