You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
898 B
35 lines
898 B
<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", "trident", "ff", "quirks", |
|
"ios", "android", "wii", "air", "mac", "edge"], 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> |