Skip to content

Commit

Permalink
Add Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jun 10, 2020
1 parent d422496 commit 4280c87
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/cdn/internal-source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror mode="javascript">
<script type="wc-content">
function myGoodPerson(){
return "what can I do for you ?"
}
</script>
</wc-codemirror>

</body>
</html>
17 changes: 17 additions & 0 deletions examples/npm/internal-source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror mode="javascript">
<script type="wc-content">
function myGoodPerson(){
return "what can I do for you ?"
}
</script>
</wc-codemirror>

</body>
</html>

0 comments on commit 4280c87

Please sign in to comment.