UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

35 lines 879 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", "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>