Giter VIP home page Giter VIP logo

captcha-for-congress's Introduction

Captcha for Congress

Hey! Thanks for showing up for reproductive rights. If you're here, you must want to put Captcha for Congress on your site, and this guide is here to help you do that!

(Disclaimer: Actual captchas, intended to prevent spambots from submitting forms, take a lot of work to create and maintain. Don't use this in place of an actual captcha. Do use this to show your support for reproductive health.)

Installing

Captcha for Congress can be added to your site by adding the code below somewhere in the HTML of your page.

<script src="https://captchaforcongress.com/captcha-for-congress.min.js"></script>

Once you have that script on your page, you need to tell the captcha where and when it should appear. If you add the attribute data-c4c to any element, then when the user clicks on that element, the captcha will appear!

<button data-c4c>Click me!</button>

Customizing

If you would like the captcha to appear automatically once the page has loaded, then you can add data-c4c="auto" to the element. Note that, even if you use the automatic method, you still need an element to add that attribute to โ€” the captcha will also use that element to position itself on the screen.

<div data-c4c="auto">
  The captcha will automatically appear by this div.
</div>

By default, the captcha appears over a semi-transparent "shadow" that covers the rest of the page. To disable this, add data-c4c-shadow="none" to the element.

<button data-c4c data-c4c-shadow="none">Click me</button>

captcha-for-congress's People

Contributors

scottpdo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.