jonathanstegall / campaign-zero-widget

Campaign Zero Widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Campaign Zero Widget

Usage Instructions

To use this script, you simply need to add the following code anywhere on your website that you want the widget to show up:

<script async src="https://embed.joincampaignzero.org/widget.js" charset="utf-8"></script>

This will inject a widget into a newly created HTML element with the ID campaign-zero-widget directly above where you placed our script.

Alternate Usage Instructions

If you are unable to place JavaScript where you want the widget to go, you can use the following HTML directly:

<div id="campaign-zero-widget"></div>

Then, include the following script tag anywhere else on your page:

<script async src="https://embed.joincampaignzero.org/widget.js" charset="utf-8"></script>

If you are using something like WordPress that just asks you for the URL for the script to put in your footer, you can use the following URL:

https://embed.joincampaignzero.org/widget.js

If you are using Firefox or Internet Explorer, you can use the following code:

<iframe src="https://embed.joincampaignzero.org/plain.html" width="100%" height="400px" style="border:0"></iframe>

Demos

  • DEMO: Widget using just the script tag
  • DEMO: Widget using custom placement ( with surrounding HTML )

About

Campaign Zero Widget


Languages

Language:PHP 97.5%Language:CSS 1.4%Language:JavaScript 1.0%Language:HTML 0.1%