From 44301d386ba0e951d66a4c9f2a798ded5bae22b1 2014-12-02 23:25:42
From: Bradley M. Kuhn
Date: 2014-12-02 23:25:42
Subject: [PATCH] Correct Markdown-style footnote w/ HTML style one.
This footnote is now correctly formatted in HTML, with links back and
forth, as well as a jQuery UI tooltip popup for the footnote.
---
diff --git a/www/conservancy/static/conservancy.css b/www/conservancy/static/conservancy.css
index 9ec0249e1c15bc2b893a4fc8bbd3b9238c704415..82a9251ae652e798cbc6a075324baf9346b56ac5 100644
--- a/www/conservancy/static/conservancy.css
+++ b/www/conservancy/static/conservancy.css
@@ -37,6 +37,10 @@ text-decoration: none; color: #557733;
.donate-sidebar { display: none; }
}
+p.footnote {
+ font-size: 85%;
+}
+
h1 { margin-top: .75em; margin-bottom: .5em; }
h2 { margin-top: .75em; margin-bottom: .5em; }
h3 { margin-top: .6em; margin-bottom: .4em; }
diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js
index 68952c4921925adfd57bd9fa2439c230f09cbd78..3bbe284a860c828fb6248ab0af3cd0dcef87f7b4 100644
--- a/www/conservancy/static/supporter-page.js
+++ b/www/conservancy/static/supporter-page.js
@@ -78,8 +78,26 @@ $(document).ready(function() {
$('#annualSelector').css("font-weight", "bold").css("font-size", "127%");
$('#monthlySelector').css("font-weight", "normal").css("font-size", "125%");
});
-
- });
+ $( ".footnote-mark" ).tooltip({
+ items: "a",
+ hide: { duration: 5000 },
+ position: {
+ my: "center bottom-20",
+ at: "center left",
+ using: function( position, feedback ) {
+ $( this ).css( position );
+ $( "" )
+ .addClass( "arrow" )
+ .addClass( feedback.vertical )
+ .addClass( feedback.horizontal )
+ .appendTo( this );
+ }
+ },
+ content: function() {
+ return $('.footnote-1-text').text();
+ }
+ });
+});
$(window).load(function () {
verifySelctionCorrectOnPageLoad = function() {
diff --git a/www/conservancy/static/supporter/index.html b/www/conservancy/static/supporter/index.html
index 407e9084192de9666833bf9ce660cce831b54212..73cf47f5b7d93305e41a3d9388d3f8a41948499e 100644
--- a/www/conservancy/static/supporter/index.html
+++ b/www/conservancy/static/supporter/index.html
@@ -77,7 +77,7 @@ contribute to the cause.
For the first time, we're launching a Supporter
program. For an annual donation of $120, you can
-download an official Supporter card and receive a Conservancy t-shirt[1]. If
+download an official Supporter card and receive a Conservancy t-shirt. If
this is out of reach, please donate at whatever level you can - it makes a
big difference to us to know that you support us, and a little goes a long
way.
@@ -122,7 +122,8 @@ internal policies are published and available for scrutiny.
Please join our Supporter program and spread software freedom!
-[1] the shirts will ship First Quarter 2015.
+