Comments (2)
Step 1
part 1
Get your site monetized by adding a Web Monetization meta tag. Try dragging the meta tag to its place in this example site's code.
- Developer note: hovering over meta tag could make the puzzle piece do a jumping animation.
part 2 - After dragging the piece into place
Perfect! The Web Monetization meta tag goes in the head
of your website.
You'll start receiving money as users who have started using Web Monetization spend time on your site.
We’ll go over how to include your own monetization account at the end of the tutorial.
- Developer note: could provide a link on your own monetization account, so interested users can jump to this info.
from a-web-monetization-story.
Code from https://github.com/esse-dev/web-monetization-base/blob/master/simple.html
Step 1: Add monetization meta tag -- 1 block
- may want to replace below code with
<meta name="monetization" content="MY_PAYMENT_POINTER">
<meta name="monetization" content="$ilp.uphold.com/aEYQyH47UYPY">
Step 2: Check for document.monetization
-- 1 block
if (document.monetization) {
}
Step 3: Listen for monetizationprogress
event -- 1 block
document.monetization.addEventListener('monetizationprogress', event => {
});
Step 4: Show element -- part 1 -- 1 block
<div id="thank-you-note" style="display: none; background-color: #5D67FF; color: #FFF">thank you for supporting me via Web Monetization <3</div> // add to body
Step 4: Show element -- part 2 -- 1 block
document.getElementById('thank-you-note').style.display = 'block'; // within monetization progress event
document.getElementById('thank-you-note').style.display = 'none'; // within else case for document.monetization
check
Congrats page with link to resources such as
- https://github.com/esse-dev/web-monetization-base
- https://webmonetization.org/docs/getting-started
- https://webmonetization.org/#wallets
from a-web-monetization-story.
Related Issues (20)
- Create DEVPOST Submission image HOT 1
- Triangular user interaction flow should be improved
- Strange padding on page-12 button triplets, and next and back buttons
- Animate "drag into place to start the story" arrow HOT 1
- If user navigates from and back to a page with .animate-in elements quickly, the animated elements in the page disappear
- adjust landing page sizing for larger screens
- Add loading placeholder page while font and images on landing page load HOT 2
- Look into swapping <pre> with <code>
- New persona and backstory each time a user visits the site
- Add animation delay to tutorial puzzle pieces
- Loading on landing page can be improved HOT 1
- Thank you page chase animate: make Auden and Chicken disappear off one edge of the page and re-enter on another. HOT 1
- Update README with devpost submission link and dragula usage HOT 1
- Add Creative Commons Attribution to website content HOT 1
- Add Apache license to each file
- Keyboard Navigation Focus "disappears" after the last page
- Tabbing between pages does not update URL
- Separate external assets from esse-dev assets
- Update GftW Forum link to Web Monetization Community Forem
- Include akitaproject.site in AWMS and README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from a-web-monetization-story.