Skip to content

TheButterflySDK/Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

The Butterfly Button plugin for web

License: MIT Platform

The Butterfly SDK helps your website to take an active part in the fight against domestic violence.

Installation

🔌 & ▶️

WiX websites?

Go To: https://www.wix.com/app-market/the-butterfly-button

image

Other websites?

Embed tags in your HTML code

<script src="https://butterfly-button.web.app/cdn/butterfly-plugin.js"></script>
<img onclick="bf_ReporterPlugin.toggleButterflyReporter('your API key');" src="https://butterfly-button.web.app/img/butterfly-logo-200.png" style="width: 50px; cursor: pointer;" alt="The Butterfly Button" />

Using WordPress?

image

Simply put this in the HTML code inside WordPress:

<script src="https://butterfly-button.web.app/cdn/butterfly-plugin.js"></script>
<img onclick="bf_ReporterPlugin.toggleButterflyReporter('your API key');" src="https://butterfly-button.web.app/img/butterfly-logo-200.png" style="width: 50px; cursor: pointer;" alt="The Butterfly Button" />

Using the same country / language in your website?

Use [override country code] / [override language] in order to override our automatic detection of language and country.

<script src="https://butterfly-button.web.app/cdn/butterfly-plugin.js"></script>
<img onclick="bf_ReporterPlugin.toggleButterflyReporter('your API key', [override country code], [override language]);" src="https://butterfly-button.web.app/img/butterfly-logo-200.png" style="width: 50px; cursor: pointer;" alt="The Butterfly Button" />

Manual usage in JavaScript

  // Import
  <script src="https://butterfly-button.web.app/cdn/butterfly-plugin.js"></script>

  // Call
  <script>
      function toggleButterfly() {
          bf_ReporterPlugin.toggleButterflyReporter("your-api-key");
      }
  </script>

Use an API key 🔑

To join us, visit our website.

To recognize your app in our servers you'll need an application key. You can set it via code, as demonstrated above.

Demo in our website

ynet.co.il already operate with our button, simply click our logo.

Enjoy and good luck ❤️

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published