devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1774780 - /devicemap/site/trunk/content/docs/browsermap.mdtext
Date Sat, 17 Dec 2016 15:52:38 GMT
Author: wkeil
Date: Sat Dec 17 15:52:38 2016
New Revision: 1774780

URL: http://svn.apache.org/viewvc?rev=1774780&view=rev
Log:
DMAP-43: Improve Website 

Task-Url: https://issues.apache.org/jira/browse/DMAP-43

Modified:
    devicemap/site/trunk/content/docs/browsermap.mdtext

Modified: devicemap/site/trunk/content/docs/browsermap.mdtext
URL: http://svn.apache.org/viewvc/devicemap/site/trunk/content/docs/browsermap.mdtext?rev=1774780&r1=1774779&r2=1774780&view=diff
==============================================================================
--- devicemap/site/trunk/content/docs/browsermap.mdtext (original)
+++ devicemap/site/trunk/content/docs/browsermap.mdtext Sat Dec 17 15:52:38 2016
@@ -2,4 +2,32 @@ Title: BrowserMap
 
 BrowserMap is a client side Javascript mechanism to analyze the User Agent and detect a device
your browser runs on. 
 
-It is fairly close to [Apache Cordova](http://cordova.apache.org/) but while Cordova / Phonegap
runs in a "tiny browser" wrapped into a native executable, BrowserMap runs in anny full scale
web browser with JavaScript support.
\ No newline at end of file
+It is fairly close to [Apache Cordova](http://cordova.apache.org/) but while Cordova / Phonegap
runs in a "tiny browser" wrapped into a native executable, BrowserMap runs in any full scale
web browser with JavaScript support.
+
+Example of Debugging Info - BrowserMap
+```js
+BrowserMap.version=1.4.0
+Modernizr.touch=true
+Modernizr.csstransforms3d=true
+window.devicePixelRatio=2
+window.orientation=undefined
+navigator.vendor=Google Inc.
+navigator.platform=Win32
+navigator.appName=Netscape
+navigator.appVersion=5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/55.0.2883.87 Safari/537.36
+navigator.appCodeName=Mozilla
+navigator.userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/55.0.2883.87 Safari/537.36
+screenWidth=1280
+screenHeight=720
+clientWidth=1280
+orientation=landscape
+portrait=false
+landscape=true
+screenWidthDependingOnOrientation=1280
+clientWidthDependingOnOrientation=1280
+devicePixelRatio=2
+canResizeBrowserWindow=false
+
+Test functions: 
+function (){return BrowserMap.probe("devicePixelRatio")>=2}
+```
\ No newline at end of file



Mime
View raw message