pagawa / pgwbrowser Goto Github PK
View Code? Open in Web Editor NEWBrowser & OS / platform detection plugin for jQuery and Zepto
License: GNU General Public License v3.0
Browser & OS / platform detection plugin for jQuery and Zepto
License: GNU General Public License v3.0
Hi, it shows my user-agent string as:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
But the PgwBrowser has found:
Loading... It just shows Loading and doesn't actually load the browser details?
Thanks,
-Roman
On your test page my XP 64 is only detected as "Windows", not as "Windows XP". The essential string in the UserAgent is Windows NT 5.2
(note the 5.2). Would you consider to add this OS to your plugin?
Here the UserAgent strings from my 4 browsers:
Opera - Opera/9.80 (Windows NT 5.2; WOW64) Presto/2.12.388 Version/12.17
Chrome - Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36
FireFox - Mozilla/5.0 (Windows NT 5.2; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
IE8 - Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Thanks
Details fetched from windows 7,8,10 on IE it is showing almost all details incorrect.
Hi Jonathan,
I think in the futur, it will be nice to add an attribute "desktop" or "mobile" in "os" node.
If "os" group is "Windows Phone" or "Android" or "iOS":
desktop:false;
// or mobile:true;
In the other cases:
desktop:true;
// or mobile:false;
Regards,
it will not detect new browsers
is there any updates?
In Nokia Lumia 1320 it is not executing script(PgwBrowse) in IE.
While using a blackberry in the BB10 browser, the browser.name is Safari.
PgwBrowser doesn't explicitly detect 10.11, so it ends up matching identifier: 'Mac OS X (10([_|\.])1([0-9_\.]*))'
and being marked as OS X Puma.
console.log($.pgwBrowser().os.name);
in Firefox on OS X Mavericks when using the minified version logs Mac OS
but Mac OS X Mavericks
when running the un-minified version.
For example, the identifier pattern string for Mavericks should be 'Mac OS X (10([_|\.])9([0-9_\.]*))'
The .
character is preceded by \
since .
is a RegExp special character that matches any non-whitespace character.
Why is there no response to 'pull request'?
On the test page using OS X Yosemite, the OS version number is correctly detected as 10.10.0
. When parsed, this shows up as Mac OS X Puma.
"os": {
"name": "Mac OS X Puma",
"group": "Mac OS",
"fullVersion": "10.10.0",
"majorVersion": 10,
"minorVersion": 10
}
Is this just as simple as adding the following?
{ name: 'Mac OS X Yosemite', group: 'Mac OS', identifier: 'Mac OS X (10([_|.])10([0-9_.]*))', versionSeparator: '[_|.]' },
While used in Windows 10's Edge browser, the browser.name is Chrome.
bower register pgwbrowser git://github.com/Pagawa/PgwBrowser.git
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.