<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>浏览器检测</title>
<style>
body{background-color: #FFFFFF;margin: 50px;}
</style>
<!--<script src="js/modernizr.min.js"></script>-->
</head>
<body>
<ul></ul>
<script src="js/jquery-1.7.min.js"></script>
<script src="js/fingerprint.js"></script>
<script src="js/jquery.client.js"></script>
<script type="text/javascript">
function appendLi(text){
$('ul').append('<li></li>');
$('ul li:last-child').text(text);
}
$(function(){
appendLi('userAgent: ' + window.navigator.userAgent);
appendLi('platform: ' + window.navigator.platform);
appendLi('appCodeName: ' + window.navigator.appCodeName);
appendLi('appName: ' + window.navigator.appName);
appendLi('appVersion: ' + window.navigator.appVersion);
appendLi('product: ' + window.navigator.product);
appendLi('支持应用缓存: ' + !!window.applicationCache);
appendLi('支持localStorage: ' + !!window.localStorage);
appendLi('支持Modernizr.localStorage: ' + !!Modernizr.localStorage);
appendLi('支持sessionStorage: ' + !!window.sessionStorage);
appendLi('支持Modernizr.sessionStorage: ' + !!Modernizr.sessionStorage);
appendLi('支持Canvas: ' + !!document.createElement('canvas').getContext);
appendLi('分辨率: ' + $(window).width() + " * " + $(window).height());
appendLi('JS指纹: ' + new Fingerprint().get());
appendLi('系统: ' + $.client.os);
});
</script>
</body>
</html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>浏览器检测</title>
<style>
body{background-color: #FFFFFF;margin: 50px;}
</style>
<!--<script src="js/modernizr.min.js"></script>-->
</head>
<body>
<ul></ul>
<script src="js/jquery-1.7.min.js"></script>
<script src="js/fingerprint.js"></script>
<script src="js/jquery.client.js"></script>
<script type="text/javascript">
function appendLi(text){
$('ul').append('<li></li>');
$('ul li:last-child').text(text);
}
$(function(){
appendLi('userAgent: ' + window.navigator.userAgent);
appendLi('platform: ' + window.navigator.platform);
appendLi('appCodeName: ' + window.navigator.appCodeName);
appendLi('appName: ' + window.navigator.appName);
appendLi('appVersion: ' + window.navigator.appVersion);
appendLi('product: ' + window.navigator.product);
appendLi('支持应用缓存: ' + !!window.applicationCache);
appendLi('支持localStorage: ' + !!window.localStorage);
appendLi('支持Modernizr.localStorage: ' + !!Modernizr.localStorage);
appendLi('支持sessionStorage: ' + !!window.sessionStorage);
appendLi('支持Modernizr.sessionStorage: ' + !!Modernizr.sessionStorage);
appendLi('支持Canvas: ' + !!document.createElement('canvas').getContext);
appendLi('分辨率: ' + $(window).width() + " * " + $(window).height());
appendLi('JS指纹: ' + new Fingerprint().get());
appendLi('系统: ' + $.client.os);
});
</script>
</body>
</html>