svnweb-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Svnweb-commits] r747 - static/trunk/fsforg/js


From: sysadmin
Subject: [Svnweb-commits] r747 - static/trunk/fsforg/js
Date: Wed, 14 Oct 2009 16:17:02 -0400

Author: root
Date: Wed Oct 14 16:16:50 2009
New Revision: 747

Log:
moved widget.js to static

Added:
   static/trunk/fsforg/js/
   static/trunk/fsforg/js/widget.js

Added: static/trunk/fsforg/js/widget.js
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ static/trunk/fsforg/js/widget.js    Wed Oct 14 16:16:50 2009        (r747)
@@ -0,0 +1,44 @@
+/*
+ * widget.js -- Fundraising web widget
+ * Copyright (c) 2007 Creative Commons
+ * Copyright (c) 2007 Free Software Foundation, Inc.
+ *
+ * Modified by the FSF in November 2007 to make it FSF-specific.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * A copy of the GNU Lesser General Public License is available at
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ */
+
+if (fsf_widget_text == "Help protect your freedom!") {
+    var fsf_widget_text = "Get updates from the FSF";
+       }
+
+if (fsf_widget_text == "Help fight DRM!") {
+    var fsf_widget_text = "Get updates from the FSF";
+       }
+
+document.write("<link 
href=\"http://www.fsf.org/graphics/widget/campaignwidget.css?1.0.1\"; 
rel=\"stylesheet\" type=\"text/css\" />");
+document.write("");
+document.write("<div id=\"fsf_campaign_widget\" class=\"" + fsf_widget_size + 
"\">");
+document.write("<div id=\"fsf_campaign_widget_bg\"><div 
id=\"fsf_campaign_widget_bg_logo\">");
+document.write("<h1 id=\"fsf_widget_title\"><span><a 
href=\"http://www.fsf.org\";>Free Software Foundation</a></span></h1>");
+document.write("<p style='text-align:center;'><a 
href=\"http://www.fsf.org/associate/support_freedom/join_fsf?referrer="; +  
fsf_associate_id + "\">Support software freedom!</a></p>");
+document.write("<p style='text-align:center;'>Get <span id='thinhide'>the new 
monthly newsletter &mdash; <br /><em></span>the Free Software 
Supporter</em></p>");
+document.write("<form 
action=\"http://lists.gnu.org/mailman/subscribe/info-fsf\"; method=\"post\">");
+document.write("<p style='text-align:center;'><input type=\"text\" 
id=\"txtbx\" name=\"email\" size=\"10\" value=\"address@hidden" 
onfocus=\"this.value=''\" /></p>");
+document.write("<p style='text-align: center; margin-top: 10px;'><input 
type=\"submit\" value=\"Subscribe Me\" /></p>");
+document.write("</form>");
+document.write("");
+document.write("</div></div>");
+document.write("</div>");
+document.write("");
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]