Skip to content

aloycwl/JSTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js

Everything about javascript

Essential JS CDN for referencing, currently consist of:

  • jquery 3.6.0 dist
  • web3 3.0.0 dist
  • moment 2.29.2
  • ipfs-api 26.1.2 dist

Examples/

IPFS_Upload.html
The only 100% working Javascript to IPFS example currently.
No node.js, no NPM, no react. Simply import from CDN and run the code.
No login is required, it will return the CID.
IPFS HTPP Client is obselete, IPFS API has not.

IPFS_Upload_web3storage.html
Using web3.storage API to upload in case Infura start charging

ERC20_Get_Balance.html
Fetch token from pure javascript using metamask

Web3_Alchemy_or_Infura.html
In environment such as mobile browser or anything without Metamask or related provider
Can only fetch information, if need to write will require memonic phase signing

IFPS_Upload_Canvas.html
Merge multiple images to canvas and convert it into base64
Convert base64 into a file object and upload to IPFS
Added promise for async to only allow ipfs action after all images are loaded

Web3_List_Token_Holders_getPastEvents.html
Using ABI and contract address to get all emitted events with the owner addresses
Put them into an unique only array

Canvas_Scrolling_Background.html
Panaroma landscape background scrolling
Perpetual scrolling with setInterval reset to prevent unintended stoppage

About

Vanillla Javascript essential CDN & examples of js-dist (ipfs browser upload, etc). The only pure javascript that can be found here and be embed anywhere.

Topics

Resources

Stars

Watchers

Forks

Contributors