sniff.html
879 Bytes
<html>
<head>
<title>dojo/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([
"khtml", "webkit", "chrome", "safari",
"opera", "mozilla", "ie", "ff", "quirks",
"ios", "android", "wii", "air", "mac"], function(key){
var res = has(key);
domConstruct.place("<tr><td>has(\"" + key + "\")</td><td>" +
(res === undefined ? "undefined" : res) + "</td></tr>", "tbody");
});
});
</script>
</head>
<body>
<h1>dojo/sniff results</h1>
<table>
<tbody id="tbody">
</tbody>
</table>
</body>
</html>