Skip to content

Commit

Permalink
Add test for UMD version
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Jan 6, 2020
1 parent 44a3977 commit 514c42a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions test/browser-umd-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>lindsvg</title>
<style>
svg {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<script src="../dist/lindsvg.min.js"></script>
<script type="module">
import {lsParams, svgParams} from "./params.mjs";
document.body.insertAdjacentHTML("beforeend", window.lindsvg.getSVGCode(lsParams, svgParams));
</script>
</body>
</html>

0 comments on commit 514c42a

Please sign in to comment.