Skip to content

Commit

Permalink
docs: vanilla js widget demo (#3313)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Nov 1, 2023
1 parent b83874f commit 866004c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions libs/widget-lib/demo/vanilla.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">
<title>CoWSwap Widget demo</title>
<script src="https://cdn.jsdelivr.net/npm/@cowprotocol/[email protected]/index.iife.js"></script>
</head>
<body>
<div id="app"></div>
<script>
cowSwapWidget.cowSwapWidget({
container: document.getElementById("app"),
width: 400,
height: 600,
metaData: {
appKey: 'test',
appUrl: 'test',
}
}, {
env: 'dev'
})
</script>
</body>
</html>

0 comments on commit 866004c

Please sign in to comment.