Skip to content

Commit

Permalink
Edit link payment (June 2023) See https://webmonetization.org/docs/#p…
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbnt committed Feb 19, 2024
1 parent a12f2db commit 6f65bea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
<div class='row'>
<div class='col'>
<h3>How it works?</h3>
<p>On your webpage, integrate your monetization tag on meta :</p>
<highlightjs class='selectAll' language='html' :code='exampleCodeMeta' />
<p>On your webpage, integrate your monetization tag on link :</p>
<highlightjs class='selectAll' language='html' :code='exampleCodeLink' />
<p>And detect if monetization is possible, then work.</p>
<highlightjs class='selectAll' language='JavaScript' :code='exampleCodeJavaScript' />
</div>
Expand Down Expand Up @@ -114,7 +114,7 @@ export default {
data() {
return {
git: [this.git],
exampleCodeMeta: `<meta name='monetization' content='$ilp.example.com/123456789'>`,
exampleCodeLink: `<link rel="monetization" href="https://ilp.example.com/alice">`,
exampleCodeJavaScript: `if (document.monetization) {
document.monetization.addEventListener('monetizationstart', () => {
console.log('🎉 Awesome ! You use Web Monetization. More information https://webmonetization.org')
Expand Down

0 comments on commit 6f65bea

Please sign in to comment.