Skip to content

Instantly share code, notes, and snippets.

@evejweinberg
Created January 30, 2017 16:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evejweinberg/427d636080c730fc890da7e31538ed5e to your computer and use it in GitHub Desktop.
Save evejweinberg/427d636080c730fc890da7e31538ed5e to your computer and use it in GitHub Desktop.
mojs error
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test 1 - shapes</title>
<!-- this was copy pasted from here: -->
<!-- https://github.com/legomushroom/mojs/blob/master/build/mo.js -->
<script type="text/javascript" src="mo2.js">
</script>
<!-- tried loading from here -->
<!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/mojs/0.265.6/mo.min.js">
</script> -->
<style media="screen">
.bg{
position: absolute;
top: 0px;
left: 0px;
width: 40vw;
height: 10vh;
}
</style>
</head>
<body>
<div class="bg">
</div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
console.log('ready')
var shape = new mojs.Shape({
shape: 'circle',
isShowStart: true
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment