Skip to content

Commit 40cd526

Browse files
committed
Converted TDWFB CF app into RTN version
1 parent fa579e9 commit 40cd526

File tree

7 files changed

+144
-3
lines changed

7 files changed

+144
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
resetthenet-cloudflare-app
2-
==========================
1+
Reset The Net
2+
=================
33

4-
Cloudflare App for Reset The Net
4+
Reset The Net - CloudFlare App
5+
6+
### INSTRUCTIONS
7+
8+
This repo contains the CloudFlare App for [resetthenet.js](https://github.com/fightforthefuture/reset-the-net-widget). This app can be installed on your website via your CloudFlare account by going to **Websites** >> **Apps** >> **Reset The Net**.
9+
10+
If you do not have a CloudFlare account you can sign up for one for **FREE** at https://www.cloudflare.com

cloudflare.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"category": "anti-censorship",
3+
"config": {
4+
"assets": {
5+
"logos": {
6+
"132px": "./public/images/logo-132.png",
7+
"200px": "./public/images/logo-200.png"
8+
},
9+
"detail_page":
10+
[
11+
"./public/images/modal.png"
12+
]
13+
},
14+
"details": {
15+
"Language": "English",
16+
"Price": "Free",
17+
"Restrictions": "None",
18+
"Supporting": "<a href='https://www.resetthenet.org/'>www.resetthenet.org</a>",
19+
"has_js": true
20+
},
21+
"interface": []
22+
},
23+
"contributors": [
24+
{
25+
"email": "[email protected]",
26+
"name": "Thomas Davis"
27+
},
28+
{
29+
"email": "[email protected]",
30+
"name": "Dave Koston"
31+
},
32+
{
33+
"email": "[email protected]",
34+
"name": "Ramakrishna Nadella"
35+
}
36+
],
37+
"dependencies": {},
38+
"description": "This app lets you automatically add the Reset The Net banner to your site on June 5th, 2014. Don't ask for your privacy. Take it back. On June 5th we will Reset the Net. Are you in?",
39+
"licenses": [
40+
{
41+
"type": "MIT",
42+
"url": "http://www.opensource.org/licenses/MIT"
43+
}
44+
],
45+
"main": "./public/javascripts/banner.js",
46+
"name": "Reset The Net",
47+
"version": "1.0.0"
48+
}

cloudflare.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
This app lets you automatically add The Day We Fight Back banner to your site on February 11th, 2014. The Day We Fight Back is an organization that has organized a protest against mass surveillance. The banner that your visitors would see urges them to reach out to members of the US Congress to oppose the [FISA Improvements Act](https://www.aclu.org/blog/national-security-technology-and-liberty/sen-dianne-feinsteins-nsa-reforms-bad-privacy-bad), support the [USA Freedom Act](https://www.aclu.org/blog/national-security/usa-freedom-act-real-spying-reform) or sign a petition if outside the US.
2+
3+
When web visitors see your banner, they can take 1 of 2 actions. They can call their US member of Congress or send an email, using a sample script provided by the Day We Fight Back. Visitors outside of the US can still participate - they can sign a petition organized by the country they select.
4+
5+
Other organizations such as the Electronic Frontier Foundation (EFF), the American Civil Liberties Union (ACLU), Mozilla and others have joined this effort to express their concern that mass surveillance has on the freedom and openness of the internet. For more information, please visit [thedaywefightback.org](https://thedaywefightback.org).
6+
7+
8+
### How to add the banner to your site
9+
10+
Adding this app will automatically add The Day We Fight Back banner to the bottom of your site on February 11th, 2014. To add this app to multiple domains, please add them individually.
11+
12+
You can see a screenshot of the banner on an example website below.
13+
14+
Once you've added the banner to your site, don't forget to visit [thedaywefightback.org](https://thedaywefightback.org/) and let them know you're adding the banner.
15+
16+
17+
### F.A.Q.
18+
19+
**When will the banner show up?**
20+
21+
The banner will appear on February 11th, 2014 for all visitors of your website, based on your local time zone.
22+
23+
24+
**Do I need to enable the banner on the 11th?**
25+
26+
You can add the app to your site at any time and the banner will automatically appear on the 11th. You don’t need to do anything to turn the banner on or off.
27+
28+
29+
**What if I am outside the U.S.?**
30+
31+
The main functionality of the banner urges your web visitors to call or email members of the US Congress. However, Clicking on the "Not in the USA" link in the bottom left hand corner of the banner allows a visitor to sign a worldwide petition of support.
32+
33+
34+
**Can I get this app on Github?**
35+
36+
Yes, this app is open-sourced. You can find the app on Github here: [https://github.com/dkoston/thedaywefightback](https://github.com/dkoston/thedaywefightback)
37+
38+
39+
**Will you automatically un-install this app?**
40+
41+
Yes, we will automatically un-install this app for you by the end of February 2014.
42+
43+
44+
### Banner Screenshots
45+
46+
#### Main Banner
47+
48+
![Main Banner](/images/apps/the_day_we_fight_back/tdwfb-banner.png "Main Banner")
49+
50+
This is the banner that will appear at the bottom of your website when you enable the app.
51+
52+
#### Example on a website
53+
54+
![On Website](/images/apps/the_day_we_fight_back/on-website.png "On a website")
55+
56+
Here's an example of the banner appearing on a website.
57+
58+
#### Call Tool Pop-up
59+
60+
![Call Tool](/images/apps/the_day_we_fight_back/call-tool.png "Call Tool Pop-up")
61+
62+
When someone clicks on "Connect My Call" from within the banner to call their member of Congress, their phone number will be called and then connected to their member of Congress (based on what zip code they put in). This call script appears for sample talking points.
63+
64+
#### Email Tool Pop-up
65+
66+
![Email Tool](/images/apps/the_day_we_fight_back/email-tool.png "Email Tool Pop-up")
67+
68+
When someone clicks on "Compose Email" from within the banner, this email template will appear. Your web visitors can further customize it before sending.

public/images/logo-132.png

3.43 KB
Loading

public/images/logo-200.png

5.35 KB
Loading

public/images/modal.png

220 KB
Loading

public/javascripts/banner.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
CloudFlare.define('reset_the_net',[
2+
'reset_the_net/config',
3+
'cloudflare/dom'
4+
],
5+
function(
6+
config,
7+
dom
8+
){
9+
10+
config.callOnly = (config.callOnly === 'true');
11+
12+
// Doesn't come with any configuration variables
13+
// window.rtn_config = config;
14+
15+
// use dom.createElement to get around CFJS cache
16+
var s = dom.createElement('script');
17+
dom.setAttribute(s, 'src', '//fightforthefuture.github.io/reset-the-net-widget/widget/rtn.js');
18+
document.getElementsByTagName('body')[0].insertBefore(s, null);
19+
});

0 commit comments

Comments
 (0)