README
dothivify
Place digital stumbling blocks on your website to support the great cause of click4life.hiv
- Support the fight against HIV
- 2.73KB minified and gzipped
What this does
Basically, it helps you helping us making the world a tiny bit better: dothivify replaces all dots in text content of your site with tiny stumbling blocks directing to click4life.hiv or the .hiv domain of your choosing. Every click on any .hiv domains generates charity spendings for initiatives supporting the fight against HIV.
Getting started
1. Using our generator
- Visit click4life.hiv/dothivify
- Configure the dothivify script as you wish (our go with the turnkey solution)
- Embedd it at the end of your document's
<body>
tag
2. Using npm and browserify
npm install --save dothivify
require('dothivify')({});
3. Build it yourself
git clone git@github.com:marionebl/dothivify.git
cd dothivify
npm install
npm run build
Options
buttonHref
- Target of the popover buttonbuttonText
- Display text of the popover buttondiameter
- Diameter of the replacement dotsdotBackground
- Background color of the replacement dotspopoverBackground
- Background color of the popoverpopoverFontSize
- Font size of the popoverpopoverColor
- Text color of the popovertext
- Text displayed in the popoverbuttonTarget
-[target]
of the popover buttonreplaced
- Character to search and replacequeries
-document.querySelectorAll
query strings. Matched elements text contents will be search and replaced forreplaced
offset
- Offset between dots and popovers
License
dothivify is published under the MIT License. See the License File for details.