Skip to content

Instantly share code, notes, and snippets.

@ktiedt
Created April 14, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktiedt/10661577 to your computer and use it in GitHub Desktop.
Save ktiedt/10661577 to your computer and use it in GitHub Desktop.
loading timezone-js with dojo loadaer
<html>
<head>
<script>
dojoConfig = {
packages: [
{
"name": "timezoneJS",
"location": "../timezone-js/src",
"main": "date"
}
]
}
</script>
<script src="repos/dojo/dojo.js"></script>
<script>
require(["timezoneJS"], function(tz) {
console.log("tz: ", tz);
});
</script>
</head>
<body>
A test
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment