adding all weblabels from weblabels.fsf.org
[weblabels.fsf.org.git] / www.fsf.org / 20131028 / files / graphics / widget / widget.js
CommitLineData
5a920362 1/*
2 * THIS VERSION IS FOR USE ON FSF.ORG ONLY - SSL FIXES!
3 *
4 * widget.js -- Fundraising web widget
5 * Copyright (c) 2007 Creative Commons
6 * Copyright (c) 2007 Free Software Foundation, Inc.
7 *
8 * Modified by the FSF in November 2007 to make it FSF-specific.
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * A copy of the GNU Lesser General Public License is available at
21 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
22 */
23
24if (fsf_widget_text == "Help protect your freedom!") {
25 var fsf_widget_text = "Help protect your freedom!";
26 }
27
28if (fsf_widget_text == "Help fight DRM!") {
29 var fsf_widget_text = "Help protect your freedom!";
30 }
31
32
33
34document.write("<link href=\"/graphics/widget/progress.css\" rel=\"stylesheet\" type=\"text/css\" />");
35document.write("<link href=\"/graphics/widget/campaignwidget.css?1.0.1\" rel=\"stylesheet\" type=\"text/css\" />");
36document.write("");
37document.write("<div id=\"fsf_campaign_widget\" class=\"" + fsf_widget_size + "\">");
38document.write("<div id=\"fsf_campaign_widget_bg\"><div id=\"fsf_campaign_widget_bg_logo\">");
39document.write("<h1 id=\"fsf_widget_title\"><span><a href=\"http://www.fsf.org\">Free Software Foundation</a></span></h1>");
40document.write("<p id=\"fsf_widget_text\"><a href=\"https://www.fsf.org/associate/support_freedom/join_fsf\">" + fsf_widget_text + "</a></p>");
41document.write("<div id=\"campaign\">");
42document.write("<div class=\"progress\" >");
43document.write("<span>&nbsp;</span>");
44document.write("</div>");
45document.write("<div class=\"results\"> &nbsp;&nbsp;463 / 500 new members</div>");
46document.write("</div>");
47document.write("<div id=\"donors\">");
48document.write("<strong>Supporters</strong><br/>");
49document.write("<a href=\"http://FIXME/\">529 have contributed</a>");
50document.write("</div>");
51document.write("");
52document.write("<form method=\"get\" action=\"https://www.fsf.org/associate/support_freedom/join_fsf\">");
53document.write("");
54document.write("<input name=\"referrer\" value='" + fsf_associate_id + "' type=\"hidden\" />");
55document.write("");
56document.write("&nbsp;<input type=\"submit\" id=\"fsf_widget_donation_btn\" value=\"Join the FSF\" />");
57document.write("");
58document.write("</form>");
59document.write("");
60document.write("</div></div>");
61document.write("</div>");
62document.write("");