Skip to content

Commit

Permalink
fix: initiator element
Browse files Browse the repository at this point in the history
  • Loading branch information
danieIabel committed Feb 16, 2023
1 parent b13f12d commit e657f44
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/js/feeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@
const textarea = RESULTS.querySelector('textarea');
const button = RESULTS.querySelector('button');
function copyArea(textarea, data) {
textarea.value = `<script src='https://cdn.jsdelivr.net/npm/ifeeds@1/dist/js/feeds.min.js'></script>
textarea.value = `<div class="widget-feeds"></div>
<script src='https://cdn.jsdelivr.net/npm/ifeeds@1/dist/js/feeds.min.js'></script>
<script>Feeds.initPlugin({
max: ${data.max}, direction: '${data.direction}', background: '${data.background}', title: '${data.title}', category: '${data.category}', categorybg: '${data.categorybg}', border: '${data.border}', url: '${data.url}', label: '${data.label}'
})
</script>`;
})</script>`;
}
button.onclick = () => {
navigator.clipboard.writeText(textarea.value).then(function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/feeds.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e657f44

Please sign in to comment.