Skip to content
Funding websites with Nimiq
Vue HTML JavaScript
Branch: master
Clone or download
Latest commit d500156 Jun 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src save opt status to localStorage for return visits Jun 3, 2018
.gitignore make opt in/out more transparent May 17, 2018
LICENSE Initial commit May 13, 2018
README.md
demo.html make opt in/out more transparent May 17, 2018
package.json bump rev 0.1.2 Jun 3, 2018
screenshot.png Add files via upload Jun 13, 2018
vue.config.js nimiq funder proof of concept May 13, 2018
yarn.lock make opt in/out more transparent May 17, 2018

README.md

Nimiq Funder

Funding websites with Nimiq

See the Demo or see it in action on my blog

screenshot

Nimiq Funder is built using Vue and vue-cli.

Requirements

  • Node
  • Yarn npm install -g yarn

Installing

$ yarn install

Running a development server

$ yarn serve

Build Distribution

$ yarn build

# or the umd build
$ vue-cli-service build --target lib --name nimiq-funder ./src/main.js

Running in your website

Nimiq Funder is designed to work with mining pools, and is configured by default to connect to the nimiq.watch pool. The funding address along with the pool configuration may applied appropriately. Download the zip release, extract and take a look at demo.html as an example.

<!DOCTYPE html>
<html>
  <head>
    <title>nimiq-funder demo</title>
    <link rel="stylesheet" href="./nimiq-funder.css">
  </head>
  <body>
    <!-- element the Vue instance mounts to -->
    <div id="nimiq-funder"></div>
    <!-- load in Vue dependency -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.min.js"></script>
    <!-- load in nimiq cdn link -->
    <script src="https://cdn.nimiq.com/nimiq.js"></script>
    <script>
      // config - comment out and define your funding address and pool configuration if desired
      // var NIMIQ_ADDRESS = 'NQ42 2X..';
      // var NIMIQ_POOL_HOST = 'pool.nimiq.watch';
      // var NIMIQ_POOL_PORT = 8443;
    </script>
    <script src="./nimiq-funder.umd.js"></script>
  </body>
</html>

Like this Project? Donate some NIM to NQ42 2XFM G9U0 8MSC 7T2H UTUV A9D6 RG13 P1RV

You can’t perform that action at this time.