GithubHelp home page GithubHelp logo

rogeriocaroco / countdown-widget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fightforthefuture/countdown-widget

0.0 2.0 0.0 677 KB

The clock is ticking on net neutrality. Join the Internet Countdown and keep the web free and open!

License: GNU General Public License v3.0

JavaScript 54.13% CSS 45.87%

countdown-widget's Introduction

The Internet Countdown Widget!

Join the battle for net neutrality with the Internet Countdown widget!

The FCC is voting on net neutrality rules on February 26th, 2015. But cable monopolies are trying to derail the process. The goal of this project is to allow anyone with a web site to run their own campaign to save net neutrality. Simply embed a couple of lines of Javascript and you're good to go!

To stay up-to-date on developments, please subscribe to our developer mailing list. If you have any problems or questions regarding the widget, please submit an issue or email Jeff Lyon.

Installation Instructions (Floating Bottom Bar)

To install the floating bottom bar, paste this code at the bottom of your page, right before the closing /BODY tag: (See demo)

<script type="text/javascript">var _cd_options = { animation: 'bottomBar' };</script>
<script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js"></script>

Bottom Bar

Installation Instructions (Ad)

Basic installation:

The ad will show up wherever you put this snippet of code on your page: (See demo)

<script type="text/javascript">var _cd_options = { animation: 'ad' };</script>
<div><script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js"></script></div>

Ad

Optimizing for fast loading:

You can speed up loading of your page by loading the ad asynchronously. Here's how.

  1. Place this code at the bottom of your page, right before the closing /BODY tag:
<script type="text/javascript">
var _cd_options = {
    animation: 'ad',
    elementId: '_cd_container'
}
</script>
<script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js" async></script>
  1. Then, place this empty DIV anywhere on your page where you want the banner to appear:
<div id="_cd_container"></div>

Installation Instructions (Banner)

Basic installation:

The banner will show up wherever you put this snippet of code on your page: (See demo)

<div><script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js"></script></div>

Blue version (default)


Red version:

Put this anywhere on your page that you want the banner to show up.

<script type="text/javascript">var _cd_options = { theme: 'red' };</script>
<div><script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js"></script></div>

Red version


Optimizing for fast loading:

You can speed up loading of your page by loading the banner asynchronously. Here's how.

  1. Place this code at the bottom of your page, right before the closing /BODY tag:
<script type="text/javascript">
var _cd_options = {
    theme: 'blue', // or 'red'
    elementId: '_cd_container'
}
</script>
<script src="https://fightforthefuture.github.io/countdown-widget/widget.min.js" async></script>
  1. Then, place this empty DIV anywhere on your page where you want the banner to appear:
<div id="_cd_container"></div>

Which browsers are supported

Modern browsers, and the two latest versions of Internet Explorer (10 and 11).

countdown-widget's People

Contributors

chrisantaki avatar rubbingalcoholic avatar

Watchers

 avatar  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.