Skip to content

Commit ada1549

Browse files
committed
Fix links in example files
1 parent 06128e7 commit ada1549

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
</style>
1515
<meta charset="utf-8">
1616
<link href="../index.css" rel="stylesheet">
17-
<script type="module" src="../dist/index.esm.js"></script>
17+
<!-- Link to `../dist/index.esm.js` for testing the module locally -->
18+
<script type="module" src="https://unpkg.com/@github/image-crop-element/dist/index.esm.js"></script>
1819
<title>image-crop-element demo</title>
1920
</head>
2021
<body>

examples/polyfill.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
}
1414
</style>
1515
<meta charset="utf-8">
16-
<link href="./index.css" rel="stylesheet">
16+
<link href="../index.css" rel="stylesheet">
1717
<!-- Uncomment for testing: Polyfill for IE11 (Reflect.construct) -->
1818
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
1919
<script type="text/javascript" src="https://unpkg.com/@webcomponents/webcomponents-platform@1.0.0/webcomponents-platform.js"></script>
2020
<script type="text/javascript" src="https://unpkg.com/@webcomponents/template@latest/template.js"></script>
2121
<!-- Uncomment for testing: Polyfill for Firefox, Edge, and IE11 -->
2222
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-hi-ce.js"></script>
2323
<!-- Uncomment for testing: Build file -->
24-
<script type="text/javascript" src="../dist/index-umd.js"></script>
24+
<script type="module" src="https://unpkg.com/@github/image-crop-element/dist/index.esm.js"></script>
2525
<title>image-crop-element demo</title>
2626
</head>
2727
<body>
28-
<image-crop src="ams.jpg" class="wrapper">
28+
<image-crop src="../ams.jpg" class="wrapper">
2929
<div class="loading" data-loading-slot>loading</div>
3030
<input type="text" data-image-crop-input="x" name="x" size="4" aria-label="x">
3131
<input type="text" data-image-crop-input="y" name="y" size="4" aria-label="y">

0 commit comments

Comments
 (0)