27
2024
03
16:02:09

一个可以显示访问者浏览器信息、屏幕信息、电池信息、请求头等 网页源码

一个可以显示访问者浏览器信息、屏幕信息、电池信息、请求头等 html网页源码




<!DOCTYPE html>
<html data-v="20240327-142421">

<head>
    <meta charset="utf-8" />
    <title>我的浏览器:浏览器信息查看_浏览器内核测试_检查浏览器版本</title>
    <meta name="description" content="检测我的浏览器状况,浏览器版本在线查看,完全掌握我正在使用的是什么浏览器.最全的浏览器信息查看网站" />
    <meta name="keywords" content="我的浏览器,浏览器信息,浏览器版本,检查浏览器,浏览器内核,浏览器测试" />
    <link rel="canonical" href="https://mybrowse.osfipin.com/" />
    <link rel="alternate" media="only screen and(max-width: 640px)" href="https://kodbox.kinber.cn/mybrowse.html">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta content="webkit" name="renderer" />
    <link rel="shortcut icon" type="image/x-icon" href="https://kodbox.kinber.cn/favicon.ico">
    <script>window.mybrowse = '221218';</script>
    <style type="text/css">
        /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*# end */

/* body{font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Hiragino Sans GB", "Microsoft Yahei", "微软雅黑", Arial, Helvetica, STHeiti, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";} */
@media only screen { html {font-size:87.5%;} }
@media only screen and (min-width: 360px) and (max-width: 399px) { html { font-size:93.8%; } }
@media only screen and (min-width: 400px) and (max-width: 479px) { html { font-size:100%; } }
@media only screen and (min-width: 480px) and (max-width: 719px) { html { font-size:125%; } }
@media only screen and (min-width: 720px) { html { font-size:155%; } }
@media only screen and (min-width: 1080px) { html { font-size:205%; } }

.table{ border-style: dotted;border-color: #66be8c;width: 100%;}
.table .head{background-color: #66be8c;text-align:center;color: #fff;font-size:0.9rem;line-height:1.5rem}
.table tr{padding: 5px;}
.table tr.tra{background-color: #dff0d8}
.table tr.trb{background-color: #fff}
.table td{border-style: dotted;border-color: #66be8c;padding:8px;}
.tda1{width:35%;text-align: right;}
.table td.tda1{color: #66be8c;}
.table td.tda2{color: #6d6e70;}
.table td.tda2 a{text-decoration: none;color:#6d6e70;margin-right: 5px;}

#test-modernizr span{white-space: nowrap;vertical-align: baseline;border-radius: .25em;background-color: #1d4be8;padding:0 5px;text-decoration:none;color: #fff;line-height: 1.5;}
#test-modernizr span.yes{background-color:#2baf2b;}
#test-modernizr span.no{background-color:#c7c8ca;}    </style>
</head>

<body>
    <table border="1" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2">我的浏览器</td>
        </tr>
        <tr>
            <td>操作系统</td>
            <td id="a2_platform">Win32</td>
        </tr>
        <tr>
            <td>浏览器版本</td>
            <td id="a2_app">Google Chrome</td>
        </tr>
        <tr>
            <td>请求头</td>
            <td id="a2_ua">Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
            </td>
        </tr>
        <tr>
            <td>屏幕</td>
            <td id="a2_screen">1080*1920(24位)</td>
        </tr>
        <tr>
            <td>电池</td>
            <td id="a2_battery">不支持获取</td>
        </tr>
        <tr>
            <td>其他功能<br />绿色代表支持</td>
            <td id="test-modernizr">
                <span name="audio">Audio</span>
                <span name="video">Video</span>
                <span name="cookies">Cookies</span>
                <span name="canvas">Canvas</span>
                <span name="svg">SVG</span>
                <span name="webgl">WebGL</span>
                <!-- <span name="emoji">Emoji</span> -->
                <span name="cssanimations">CSS动画</span>
                <span name="borderradius">圆角边框</span>
                <span name="boxshadow">阴影</span>
                <span name="cssfilters">滤镜</span>
                <span name="flexbox">Flexbox</span>
                <span name="mediaqueries">MediaQueries</span>
                <span name="opacity">不透明级别</span>
                <span name="es5">ES5</span>
                <span name="arrow">ES6 Arrow</span>
                <span name="filereader">File API</span>
                <span name="webp">Webp</span>
                <span name="scriptasync">script[async]</span>
                <span name="scriptdefer">script[defer]</span>
                <span name="localstorage">LocalStorage</span>
                <span name="sessionstorage">SessionStorage</span>
                <span name="atobbtoa">Base64</span>
                <span name="fullscreen">Fullscreen</span>
                <span name="json">JSON</span>
                <span name="webworkers">WebWorkers</span>
            </td>
        </tr>
        <tr>
            <td>友情链接</td>
            <td>
                <a href="https://kodbox.kinber.cn/" target="_blank">本站首页</a>

            </td>
        </tr>
        <tr>
            <td colspan="2">我的浏览器: 查看浏览器信息。</td>
        </tr>
    </table>

    <script type="text/javascript">
        
/*! superload v0.1 | (c) 2016 osfipin*/(function(exports){exports=exports||{};if("undefined"!=typeof exports.superload)return;exports.superload='superload v0.1';var handlers={},createChain,add;createChain=function(context,stack,lastMethod){var inHandler=context.halt=false;context.error=function(e){throw e;};context.next=function(exit){if(exit){inHandler=false}if(!context.halt&&stack&&stack.length){var args=stack.shift(),method=args.shift();inHandler=true;try{handlers[method].apply(context,[args,args.length,method])}catch(e){context.error(e)}}return context};for(var alias in handlers){if(typeof context[alias]==='function'){continue}(function(alias){context[alias]=function(){var args=Array.prototype.slice.call(arguments);if(alias==='onError'){if(stack){handlers.onError.apply(context,[args,args.length]);return context}var new_context={};handlers.onError.apply(new_context,[args,args.length]);return createChain(new_context,null,'onError')}args.unshift(alias);if(!stack){return createChain({},[args],alias)}context.then=context[alias];stack.push(args);return inHandler?context:context.next()}}(alias))}if(lastMethod){context.then=context[lastMethod]}context.call=function(method,args){args.unshift(method);stack.unshift(args);context.next(true)};return context.next()};add=exports.addMethod=function(method){var args=Array.prototype.slice.call(arguments),handler=args.pop();for(var i=0,len=args.length;i<len;i++){if(typeof args[i]==='string'){handlers[args[i]]=handler}}if(!--len){handlers['then'+method.substr(0,1).toUpperCase()+method.substr(1)]=handler}createChain(exports)};add('chain',function(args){var self=this,next=function(){if(self.halt){return}else if(!args.length){return self.next(true)}try{if(null!=args.shift().call(self,next,self.error)){next()}}catch(e){self.error(e)}};next()});add('run',function(args,arg_len){var self=this,chain=function(){if(self.halt){return}else if(!--arg_len){self.next(true)}};var error=function(e){self.error(e)};for(var i=0,len=arg_len;!self.halt&&i<len;i++){if(null!=args[i].call(self,chain,error)){chain()}}});add('defer',function(args){var self=this;setTimeout(function(){self.next(true)},args.shift())});add('onError',function(args,arg_len){var self=this;this.error=function(err){self.halt=true;for(var i=0;i<arg_len;i++){args[i].call(self,err)}}});add('loadjs',function(args,argc){for(var queue=[],i=0;i<argc;i++){(function(i){queue.push(asyncLoadScript(args[i]))}(i))}this.call('run',queue)});add('loadcss',function(args,argc){for(var queue=[],i=0;i<argc;i++){(function(i){queue.push(asyncLoadcss(args[i]))}(i))}this.call('run',queue)});asyncLoadScript=function(src){var head=exports.document.getElementsByTagName('head')[0]||exports.document.documentElement;return function(onload,onerror){var script=exports.document.createElement('script');script.type='text/javascript';script.src=src;script.onload=onload;script.onerror=onerror;script.onreadystatechange=function(){var state=this.readyState;if(state==='loaded'||state==='complete'){script.onreadystatechange=null;onload()}};head.insertBefore(script,head.firstChild)}};asyncLoadcss=function(src){var head=exports.document.getElementsByTagName('head')[0]||exports.document.documentElement;return function(onload,onerror){var style=exports.document.createElement('link');style.rel='stylesheet';style.type='text/css';style.href=src;style.onload=onload;style.onerror=onerror;style.onreadystatechange=function(){var state=this.readyState;if(state==='loaded'||state==='complete'){style.onreadystatechange=null;onload()}};head.appendChild(style)}}}("undefined"!=typeof window?window:this));/*# end */

/*! modernizr 3.6.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-arrow-atobbtoa-audio-borderradius-boxshadow-canvas-canvastext-cookies-cssanimations-cssfilters-emoji-es5-filereader-flexbox-fullscreen-json-localstorage-mediaqueries-opacity-scriptasync-scriptdefer-sessionstorage-svg-video-webgl-webp-webworkers !*/
 !function(window,document,undefined){function is(e,t){return typeof e===t}function testRunner(){var e,t,r,n,o,i,s;for(var a in tests)if(tests.hasOwnProperty(a)){if(e=[],t=tests[a],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(r=0;r<t.options.aliases.length;r++)e.push(t.options.aliases[r].toLowerCase());for(n=is(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)i=e[o],s=i.split("."),1===s.length?Modernizr[s[0]]=n:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=n),classes.push((n?"":"no-")+s.join("-"))}}function cssToDOM(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,r){return t+r.toUpperCase()}).replace(/^-/,"")}function createElement(){return"function"!=typeof document.createElement?document.createElement(arguments[0]):isSVG?document.createElementNS.call(document,"http://www.w3.org/2000/svg",arguments[0]):document.createElement.apply(document,arguments)}function getBody(){var e=document.body;return e||(e=createElement(isSVG?"svg":"body"),e.fake=!0),e}function injectElementWithStyles(e,t,r,n){var o,i,s,a,d="modernizr",l=createElement("div"),c=getBody();if(parseInt(r,10))for(;r--;)s=createElement("div"),s.id=n?n[r]:d+(r+1),l.appendChild(s);return o=createElement("style"),o.type="text/css",o.id="s"+d,(c.fake?c:l).appendChild(o),c.appendChild(l),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),l.id=d,c.fake&&(c.style.background="",c.style.overflow="hidden",a=docElement.style.overflow,docElement.style.overflow="hidden",docElement.appendChild(c)),i=t(l,e),c.fake?(c.parentNode.removeChild(c),docElement.style.overflow=a,docElement.offsetHeight):l.parentNode.removeChild(l),!!i}function contains(e,t){return!!~(""+e).indexOf(t)}function fnBind(e,t){return function(){return e.apply(t,arguments)}}function testDOMProps(e,t,r){var n;for(var o in e)if(e[o]in t)return r===!1?e[o]:(n=t[e[o]],is(n,"function")?fnBind(n,r||t):n);return!1}function domToCSS(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function computedStyle(e,t,r){var n;if("getComputedStyle"in window){n=getComputedStyle.call(window,e,t);var o=window.console;if(null!==n)r&&(n=n.getPropertyValue(r));else if(o){var i=o.error?"error":"log";o[i].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else n=!t&&e.currentStyle&&e.currentStyle[r];return n}function nativeTestProps(e,t){var r=e.length;if("CSS"in window&&"supports"in window.CSS){for(;r--;)if(window.CSS.supports(domToCSS(e[r]),t))return!0;return!1}if("CSSSupportsRule"in window){for(var n=[];r--;)n.push("("+domToCSS(e[r])+":"+t+")");return n=n.join(" or "),injectElementWithStyles("@supports ("+n+") { #modernizr { position: absolute; } }",function(e){return"absolute"==computedStyle(e,null,"position")})}return undefined}function setClasses(e){var t=docElement.className,r=Modernizr._config.classPrefix||"";if(isSVG&&(t=t.baseVal),Modernizr._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}Modernizr._config.enableClasses&&(t+=" "+r+e.join(" "+r),isSVG?docElement.className.baseVal=t:docElement.className=t)}function addTest(e,t){if("object"==typeof e)for(var r in e)hasOwnProp(e,r)&&addTest(r,e[r]);else{e=e.toLowerCase();var n=e.split("."),o=Modernizr[n[0]];if(2==n.length&&(o=o[n[1]]),"undefined"!=typeof o)return Modernizr;t="function"==typeof t?t():t,1==n.length?Modernizr[n[0]]=t:(!Modernizr[n[0]]||Modernizr[n[0]]instanceof Boolean||(Modernizr[n[0]]=new Boolean(Modernizr[n[0]])),Modernizr[n[0]][n[1]]=t),setClasses([(t&&0!=t?"":"no-")+n.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function testProps(e,t,r,n){function o(){s&&(delete mStyle.style,delete mStyle.modElem)}if(n=is(n,"undefined")?!1:n,!is(r,"undefined")){var i=nativeTestProps(e,r);if(!is(i,"undefined"))return i}for(var s,a,d,l,c,u=["modernizr","tspan","samp"];!mStyle.style&&u.length;)s=!0,mStyle.modElem=createElement(u.shift()),mStyle.style=mStyle.modElem.style;for(d=e.length,a=0;d>a;a++)if(l=e[a],c=mStyle.style[l],contains(l,"-")&&(l=cssToDOM(l)),mStyle.style[l]!==undefined){if(n||is(r,"undefined"))return o(),"pfx"==t?l:!0;try{mStyle.style[l]=r}catch(p){}if(mStyle.style[l]!=c)return o(),"pfx"==t?l:!0}return o(),!1}function testPropsAll(e,t,r,n,o){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+cssomPrefixes.join(i+" ")+i).split(" ");return is(t,"string")||is(t,"undefined")?testProps(s,t,n,o):(s=(e+" "+domPrefixes.join(i+" ")+i).split(" "),testDOMProps(s,t,r))}function testAllProps(e,t,r){return testPropsAll(e,undefined,undefined,t,r)}var classes=[],tests=[],ModernizrProto={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout(function(){t(r[e])},0)},addTest:function(e,t,r){tests.push({name:e,fn:t,options:r})},addAsyncTest:function(e){tests.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=ModernizrProto,Modernizr=new Modernizr,Modernizr.addTest("json","JSON"in window&&"parse"in JSON&&"stringify"in JSON),Modernizr.addTest("svg",!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),Modernizr.addTest("cookies",function(){try{document.cookie="cookietest=1";var e=-1!=document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}}),Modernizr.addTest("arrow",function(){try{eval("()=>{}")}catch(e){return!1}return!0}),Modernizr.addTest("filereader",!!(window.File&&window.FileList&&window.FileReader)),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("atobbtoa","atob"in window&&"btoa"in window,{aliases:["atob-btoa"]}),Modernizr.addTest("webworkers","Worker"in window);var prefixes=ModernizrProto._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];ModernizrProto._prefixes=prefixes;var newSyntax="CSS"in window&&"supports"in window.CSS,oldSyntax="supportsCSS"in window;Modernizr.addTest("supports",newSyntax||oldSyntax),Modernizr.addTest("es5array",function(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)}),Modernizr.addTest("es5date",function(){var e="2013-04-12T06:06:37.307Z",t=!1;try{t=!!Date.parse(e)}catch(r){}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&t)}),Modernizr.addTest("es5function",function(){return!(!Function.prototype||!Function.prototype.bind)}),Modernizr.addTest("strictmode",function(){"use strict";return!this}()),Modernizr.addTest("es5string",function(){return!(!String.prototype||!String.prototype.trim)}),Modernizr.addTest("es5syntax",function(){var value,obj,stringAccess,getter,setter,reservedWords,zeroWidthChars;try{return stringAccess=eval('"foobar"[3] === "b"'),getter=eval("({ get x(){ return 1 } }).x === 1"),eval("({ set x(v){ value = v; } }).x = 1"),setter=1===value,eval("obj = ({ if: 1 })"),reservedWords=1===obj["if"],zeroWidthChars=eval("_‌‍ = true"),stringAccess&&getter&&setter&&reservedWords&&zeroWidthChars}catch(ignore){return!1}}),Modernizr.addTest("es5undefined",function(){var e,t;try{t=window.undefined,window.undefined=12345,e="undefined"==typeof window.undefined,window.undefined=t}catch(r){return!1}return e}),Modernizr.addTest("es5object",function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)}),Modernizr.addTest("es5",function(){return!!(Modernizr.es5array&&Modernizr.es5date&&Modernizr.es5function&&Modernizr.es5object&&Modernizr.strictmode&&Modernizr.es5string&&Modernizr.json&&Modernizr.es5syntax&&Modernizr.es5undefined)});var hasOwnProp;!function(){var e={}.hasOwnProperty;hasOwnProp=is(e,"undefined")||is(e.call,"undefined")?function(e,t){return t in e&&is(e.constructor.prototype[t],"undefined")}:function(t,r){return e.call(t,r)}}();var docElement=document.documentElement,isSVG="svg"===docElement.nodeName.toLowerCase();Modernizr.addTest("canvas",function(){var e=createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:"function"==typeof createElement("canvas").getContext("2d").fillText}),Modernizr.addTest("audio",function(){var e=createElement("audio"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return t}),Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1;var e=window.devicePixelRatio||1,t=12*e,r=createElement("canvas"),n=r.getContext("2d");return n.fillStyle="#f00",n.textBaseline="top",n.font="32px Arial",n.fillText("?",0,0),0!==n.getImageData(t,t,1,1).data[0]}),Modernizr.addTest("video",function(){var e=createElement("video"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(r){}return t}),Modernizr.addTest("webgl",function(){var e=createElement("canvas"),t="probablySupportsContext"in e?"probablySupportsContext":"supportsContext";return t in e?e[t]("webgl")||e[t]("experimental-webgl"):"WebGLRenderingContext"in window}),Modernizr.addTest("opacity",function(){var e=createElement("a").style;return e.cssText=prefixes.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),Modernizr.addTest("scriptasync","async"in createElement("script")),Modernizr.addTest("scriptdefer","defer"in createElement("script"));var mq=function(){var e=window.matchMedia||window.msMatchMedia;return e?function(t){var r=e(t);return r&&r.matches||!1}:function(e){var t=!1;return injectElementWithStyles("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"==(window.getComputedStyle?window.getComputedStyle(e,null):e.currentStyle).position}),t}}();ModernizrProto.mq=mq,Modernizr.addTest("mediaqueries",mq("only all"));var omPrefixes="Moz O ms Webkit",cssomPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.split(" "):[];ModernizrProto._cssomPrefixes=cssomPrefixes;var atRule=function(e){var t,r=prefixes.length,n=window.CSSRule;if("undefined"==typeof n)return undefined;if(!e)return!1;if(e=e.replace(/^@/,""),t=e.replace(/-/g,"_").toUpperCase()+"_RULE",t in n)return"@"+e;for(var o=0;r>o;o++){var i=prefixes[o],s=i.toUpperCase()+"_"+t;if(s in n)return"@-"+i.toLowerCase()+"-"+e}return!1};ModernizrProto.atRule=atRule;var domPrefixes=ModernizrProto._config.usePrefixes?omPrefixes.toLowerCase().split(" "):[];ModernizrProto._domPrefixes=domPrefixes,ModernizrProto._l={},ModernizrProto.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},ModernizrProto._trigger=function(e,t){if(this._l[e]){var r=this._l[e];setTimeout(function(){var e,n;for(e=0;e<r.length;e++)(n=r[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){ModernizrProto.addTest=addTest}),Modernizr.addAsyncTest(function(){function e(e,t,r){function n(t){var n=t&&"load"===t.type?1==o.width:!1,i="webp"===e;addTest(e,i&&n?new Boolean(n):n),r&&r(t)}var o=new Image;o.onerror=n,o.onload=n,o.src=t}var t=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],r=t.shift();e(r.name,r.uri,function(r){if(r&&"load"===r.type)for(var n=0;n<t.length;n++)e(t[n].name,t[n].uri)})});var modElem={elem:createElement("modernizr")};Modernizr._q.push(function(){delete modElem.elem});var mStyle={style:modElem.elem.style};Modernizr._q.unshift(function(){delete mStyle.style}),ModernizrProto.testAllProps=testPropsAll;var prefixed=ModernizrProto.prefixed=function(e,t,r){return 0===e.indexOf("@")?atRule(e):(-1!=e.indexOf("-")&&(e=cssToDOM(e)),t?testPropsAll(e,t,r):testPropsAll(e,"pfx"))};Modernizr.addTest("fullscreen",!(!prefixed("exitFullscreen",document,!1)&&!prefixed("cancelFullScreen",document,!1))),ModernizrProto.testAllProps=testAllProps,Modernizr.addTest("cssanimations",testAllProps("animationName","a",!0)),Modernizr.addTest("borderradius",testAllProps("borderRadius","0px",!0)),Modernizr.addTest("boxshadow",testAllProps("boxShadow","1px 1px",!0)),Modernizr.addTest("cssfilters",function(){if(Modernizr.supports)return testAllProps("filter","blur(2px)");var e=createElement("a");return e.style.cssText=prefixes.join("filter:blur(2px); "),!!e.style.length&&(document.documentMode===undefined||document.documentMode>9)}),Modernizr.addTest("flexbox",testAllProps("flexBasis","1px",!0)),testRunner(),delete ModernizrProto.addTest,delete ModernizrProto.addAsyncTest;for(var i=0;i<Modernizr._q.length;i++)Modernizr._q[i]();window.Modernizr=Modernizr}(window,document);

/*! browsecore v0.1 | (c) 2017 osfipin*/
 (function(w){"use strict";var n=w.navigator,d=w.document;var r={};r.isIE=("number"==typeof d.documentMode)?d.documentMode:false;r.isWebkit=("undefined"!=typeof n.productSub&&"20030107"==n.productSub);r.isGecko=("object"==typeof w.netscape);r.isChrome=("object"==typeof w.chrome||(r.isWebkit&&"string"==typeof n.vendor&&/Google/.test(n.vendor)));r.isUC=("object"==typeof w.ucapi);r.isFirefox=("object"==typeof w.InstallTrigger);r.isEdge=(!r.isIE&&!!w.StyleMedia);if(!r.isEdge&&r.isChrome){if(w.navigator.userAgent.indexOf("Edg")>-1){r.isEdge=true}}r.isOpera=(!!w.opr&&!!opr.addons)||!!w.opera||n.userAgent.indexOf(' OPR/')>=0;r.isSafari=Object.prototype.toString.call(w.HTMLElement).indexOf('Constructor')>0||(function(p){return p.toString()==="[object SafariRemoteNotification]"})(!w['safari']||safari.pushNotification);if(!r.isSafari&&!r.isChrome&&"string"==typeof n.vendor&&/Apple/.test(n.vendor)){r.isSafari=true}r.isBlink=(r.isChrome||r.isOpera)&&!!w.CSS;w.browsecore=r})("undefined"!=typeof window?window:this);        if ('getBattery' in navigator) {
            navigator.getBattery().then(function (battery) {
                document.getElementById('a2_battery').innerHTML = battery.level * 100 + "%(" + (battery.charging ? "插电中" : "未充电") + ")"
            });
        } else {
            document.getElementById('a2_battery').innerHTML = '不支持获取'
        }

        var app = '';
        if ('userAgentData' in navigator && 'brands' in navigator.userAgentData) {
            for (i = 0; i < navigator.userAgentData.brands.length; i++) {
                var ele = navigator.userAgentData.brands[i]
                if (' ' != ele.brand[0]) {
                    app += ' ' + ele.brand + '(' + ele.version + ')'
                }
            }
        } else {
            var bs = [];
            if (browsecore.isIE) {
                bs.push('Trident')
            } else if (browsecore.isWebkit) {
                bs.push('Webkit')
            } else if (browsecore.isGecko) {
                bs.push('Gecko')
            }
            if (browsecore.isBlink) {
                bs.push('Chrome')
            }
            if (browsecore.isIE) {
                bs.push('IE' + browsecore.isIE)
            }
            if (browsecore.isFirefox) {
                bs.push('Firefox')
            }
            if (browsecore.isEdge) {
                bs.push('Edge')
            }
            if (browsecore.isSafari) {
                bs.push('Safari')
            }
            if (browsecore.isOpera) {
                bs.push('Opera')
            }
            if (browsecore.isUC) {
                bs.push('UC')
            }
            for (i in bs) {
                app += ' ' + bs[i]
            }
        }

        document.getElementById('a2_platform').innerHTML = navigator.platform + (("language" in navigator) ? " " + navigator.language : ''); // + (('oscpu' in navigator) ? ' ' + navigator.oscpu : '')
        document.getElementById('a2_app').innerHTML = app
        document.getElementById('a2_ua').innerHTML = navigator.userAgent
        document.getElementById('a2_screen').innerHTML = window.screen.height + "*" + window.screen.width + (("pixelDepth" in window.screen) ? "(" + window.screen.pixelDepth + "位)" : '') + (("ontouchstart" in window) ? " 触摸屏" : " 非触摸")

        var c = document.getElementById('test-modernizr').children

        for (i = 0; i < c.length; i++) {
            var t = c[i].getAttribute('name')
            if (!Modernizr[t]) {
                c[i].className = 'no';
            } else {
                c[i].className = 'yes';
            }
        }
        Modernizr.on('webp', function (result) {
            if (result) {
                c['webp'].className = 'yes';
            } else {
                c['webp'].className = 'no';
            }
        });

       
    </script>
</body>

</html>


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://hqyman.cn/post/5587.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: