0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-15 16:38:43 -05:00

Fix asset references for running locally (i.e. file://)

This commit is contained in:
Matt Borja 2019-11-01 17:31:54 -07:00 committed by GitHub
parent 82bb41535b
commit c701aa0386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,21 +12,21 @@
<title>Matter.js Demo</title>
<!-- Libs -->
<script type="text/javascript" src="./lib/decomp.js"></script>
<script type="text/javascript" src="./lib/pathseg.js"></script>
<!-- libs -->
<script type="text/javascript" src="lib/decomp.js"></script>
<script type="text/javascript" src="lib/pathseg.js"></script>
<!-- Matter -->
<script src="../build/matter.js"></script>
<script src="../build/matter.min.js"></script>
<!-- MatterTools -->
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
<script src="./lib/matter-tools.gui.js"></script>
<script src="./lib/matter-tools.inspector.js"></script>
<script src="./lib/matter-tools.demo.js"></script>
<script src="lib/jquery-1.11.0.min.js"></script>
<script src="lib/matter-tools.gui.js"></script>
<script src="lib/matter-tools.inspector.js"></script>
<script src="lib/matter-tools.demo.js"></script>
<!-- Plugins -->
<script src="./lib/matter-wrap.js"></script>
<script src="lib/matter-wrap.js"></script>
<!-- Examples -->
<script src="../examples/airFriction.js"></script>
@ -72,7 +72,7 @@
<script src="../examples/timescale.js"></script>
<script src="../examples/views.js"></script>
<script src="../examples/wreckingBall.js"></script>
<style type="text/css">
* {
box-sizing: border-box;
@ -82,30 +82,9 @@
margin: 0;
padding: 0;
}
.matter-js-compare-build {
position: absolute;
background: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
z-index: 1;
pointer-events: none;
}
.matter-js-compare-build .matter-header-outer {
display: none;
}
.matter-js-compare-build canvas {
opacity: 0.5;
background: transparent !important;
}
</style>
</head>
<body>
<script src="./js/Demo.js"></script>
<script src="js/Demo.js"></script>
</body>
</html>
</html>