sniff.html
1002 Bytes
<html>
<head>
<title>dojo/_base/sniff test</title>
<style>
table {
border-collapse: collapse;
}
td {
padding: 2px;
border: 1px solid black;
}
</style>
<script src="../../dojo.js" data-dojo-config="async: true, isDebug: true"></script>
<script>
require(["dojo/_base/array", "dojo/sniff", "dojo/dom-construct", "dojo/domReady!"],
function(array, has, domConstruct){
array.forEach([
"isKhtml", "isWebKit", "isChrome", "isSafari",
"isOpera", "isMozilla", "isMoz", "isFF", "isIE", "isQuirks",
"isIos", "isAndroid", "isWii", "isAir", "isMac"], function(key){
var res = dojo[key];
domConstruct.place("<tr><td>dojo." + key + "</td><td>" +
(res === undefined ? "undefined" : res) + "</td></tr>", "tbody");
});
});
</script>
</head>
<body>
<h1>dojo/_base/sniff results</h1>
<p>Note that dojo/_base/sniff is deprecated, replaced by dojo/sniff.</p>
<table>
<tbody id="tbody">
</tbody>
</table>
</body>
</html>