UNPKG

ipfs-api

Version:

A client library for the IPFS HTTP API

27 lines (26 loc) 648 B
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"/> <title>JS IPFS API - Example - Browser - Add</title> <script src="bundle.js"></script> <style> .content { border: 1px solid black; padding: 10px; margin: 5px 0; } </style> </head> <body> <h1>JS IPFS API - Add data to IPFS from the browser</h1> <textarea id="source"> </textarea> <button id="store">add to ipfs</button> <div> <div>found in ipfs:</div> <div class="content" id="hash">[ipfs hash]</div> <div class="content" id="content">[ipfs content]</div> </div> </body> </html>