Skip to content

Place digital stumbling blocks on your website to support the great cause of https://click4life.hiv/de

License

Notifications You must be signed in to change notification settings

marionebl/dothivify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 button
  • buttonText - Display text of the popover button
  • diameter - Diameter of the replacement dots
  • dotBackground - Background color of the replacement dots
  • popoverBackground - Background color of the popover
  • popoverFontSize - Font size of the popover
  • popoverColor - Text color of the popover
  • text - Text displayed in the popover
  • buttonTarget - [target] of the popover button
  • replaced - Character to search and replace
  • queries - document.querySelectorAll query strings. Matched elements text contents will be search and replaced for replaced
  • offset - Offset between dots and popovers

License

dothivify is published under the MIT License. See the License File for details.

About

Place digital stumbling blocks on your website to support the great cause of https://click4life.hiv/de

Resources

License

Stars

Watchers

Forks

Packages

No packages published