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 | |
24 | if (fsf_widget_text == "Help protect your freedom!") { |
25 | var fsf_widget_text = "Help protect your freedom!"; |
26 | } |
27 | |
28 | if (fsf_widget_text == "Help fight DRM!") { |
29 | var fsf_widget_text = "Help protect your freedom!"; |
30 | } |
31 | |
32 | |
33 | |
34 | document.write("<link href=\"/graphics/widget/progress.css\" rel=\"stylesheet\" type=\"text/css\" />"); |
35 | document.write("<link href=\"/graphics/widget/campaignwidget.css?1.0.1\" rel=\"stylesheet\" type=\"text/css\" />"); |
36 | document.write(""); |
37 | document.write("<div id=\"fsf_campaign_widget\" class=\"" + fsf_widget_size + "\">"); |
38 | document.write("<div id=\"fsf_campaign_widget_bg\"><div id=\"fsf_campaign_widget_bg_logo\">"); |
39 | document.write("<h1 id=\"fsf_widget_title\"><span><a href=\"http://www.fsf.org\">Free Software Foundation</a></span></h1>"); |
40 | document.write("<p id=\"fsf_widget_text\"><a href=\"https://www.fsf.org/associate/support_freedom/join_fsf\">" + fsf_widget_text + "</a></p>"); |
41 | document.write("<div id=\"campaign\">"); |
42 | document.write("<div class=\"progress\" >"); |
43 | document.write("<span> </span>"); |
44 | document.write("</div>"); |
45 | document.write("<div class=\"results\"> 463 / 500 new members</div>"); |
46 | document.write("</div>"); |
47 | document.write("<div id=\"donors\">"); |
48 | document.write("<strong>Supporters</strong><br/>"); |
49 | document.write("<a href=\"http://FIXME/\">529 have contributed</a>"); |
50 | document.write("</div>"); |
51 | document.write(""); |
52 | document.write("<form method=\"get\" action=\"https://www.fsf.org/associate/support_freedom/join_fsf\">"); |
53 | document.write(""); |
54 | document.write("<input name=\"referrer\" value='" + fsf_associate_id + "' type=\"hidden\" />"); |
55 | document.write(""); |
56 | document.write(" <input type=\"submit\" id=\"fsf_widget_donation_btn\" value=\"Join the FSF\" />"); |
57 | document.write(""); |
58 | document.write("</form>"); |
59 | document.write(""); |
60 | document.write("</div></div>"); |
61 | document.write("</div>"); |
62 | document.write(""); |