Commit graph

35 commits

Author SHA1 Message Date
Brett Smith
492de3eab3 js: Rewrite #renew links to the Supporter page.
#renewal is the correct hash to use.
2016-12-29 10:33:22 -05:00
Brett Smith
9822895971 supporter: Fix JS syntax to check donation upgrade amount. 2016-12-02 15:26:36 -05:00
Brett Smith
6fe13959a3 supporter: Support donors upgrading to supporters.
With a valid URL, a past donor can upgrade to a supporter by donating
the rest of the amount.  Django validates the data and, if it passes,
puts it in the form.  The JavaScript does most of the work from there.
2016-12-02 12:50:21 -05:00
Brett Smith
d28ffd68ca supporter: HTML5 improvements to form.
* Use "number" type for a better prompt.
* Use new standard "min" attribute for richer validation.
2016-12-02 12:35:19 -05:00
Brett Smith
4afce1eadc appeal: Fix object structure passed into $().multiprogressbar. 2016-12-02 10:13:25 -05:00
Brett Smith
2c5a5f3a95 appeal: Fix jQuery chaining that didn't work. 2016-12-02 10:11:21 -05:00
Brett Smith
6908c135f2 appeal: Progress bar emphasizes current match program. 2016-12-02 10:09:12 -05:00
Brett Smith
1637a36dfe js: Fix math again.
I misunderstood how multiprogressbar works.  Values aren't expected to
progressively grow larger; it takes care of the summing itself.
2016-11-29 13:45:44 -05:00
Brett Smith
52bcf1152a js: Set default noCommaSiteMiddleGoal. 2016-11-29 13:29:12 -05:00
Brett Smith
05290a6352 js: Fix needProgress math. 2016-11-29 13:25:53 -05:00
Brett Smith
8cb1f3f685 js: Use three-part progressbar when no middle goal defined.
Since our current fundraiser doesn't have a "middle goal," this makes
it a little easier to maintain the template and do the math.
2016-11-29 13:13:40 -05:00
Brett Smith
ec26bfc846 supporter-page.js: Add my copyright. 2016-09-09 15:39:21 -04:00
Brett Smith
ab29d45639 Supporter page: Try #2 for scroll to type selection after window ready.
* Trigger on the "load" event rather than "ready".
* Install the handler outside document's "ready" handler so it should
  take effect more reliably.
2016-09-09 15:16:46 -04:00
Brett Smith
fa6a61ed9b Supporter page: Scroll to type selection after window ready. 2016-09-09 14:51:11 -04:00
Brett Smith
9d30d7431a Supporter page: Make supporter type selections act like tabs.
* Scroll to the type selection when the visitor follows a link to a
  specific type.
* Don't scroll the page when the user changes their selection.
2016-09-09 14:35:15 -04:00
Brett Smith
c2ee1c761d Supporter page: Remove debug log. 2016-09-09 12:11:29 -04:00
Brett Smith
86ef51db5d Supporter page: Refactor JavaScript.
This isn't intended to have any functional change, it's just DRYing up
the code to simplify functional changes later.
2016-09-09 12:10:41 -04:00
Bradley M. Kuhn
15ee2b6edd Update punctuation. 2016-02-23 19:46:59 -08:00
Bradley M. Kuhn
cd15ed755b moreCount variable no longer used. 2016-02-23 19:45:50 -08:00
Bradley M. Kuhn
e260280ee1 Fix math error. 2016-02-23 19:45:16 -08:00
Bradley M. Kuhn
99ff4771a1 Change bar to show totals in a different way.
The achieved! text is removed, to just show the total Supporters, and
the middle part is how many more we need right now.
2016-02-23 19:21:22 -08:00
Bradley M. Kuhn
3fe4a5bcbb Reduce ! in various site-wide fundraising texts.
Surprisingly, given her predilection for exclamation points:

  <karen> yeah... believe it or not, I'd rather not have two exclamation points
          in the 750 achieved!  [20:30]

  <karen> and I would also delete the exclamation point after " enforcement
          efforts!" in the text above it  [20:31]

So this change is made on her behalf.
2016-01-18 20:32:12 -08:00
Bradley M. Kuhn
d628fa8fb7 Revert previous incorrect change. 2016-01-18 20:25:17 -08:00
Bradley M. Kuhn
c6af56f2a6 Unclear what this should be, testing this value. 2016-01-18 20:22:17 -08:00
Bradley M. Kuhn
9813a0795f When we're at the middle goal, drop it immediately. 2016-01-18 20:18:49 -08:00
Bradley M. Kuhn
cffc81b5d8 Prepare for Supporters beyond 750.
After the next import, we'll have more than 750 supporters.  This change
not only handles that fact, but adds sufficient Javascript and Django
templating to handle the case if the Supporter count for any reason
drops below 750 again.
2016-01-18 19:50:08 -08:00
Bradley M. Kuhn
822b9b1fcf Add title to this text.
Most browsers popup the title= attribute on mouse-over.
2015-12-24 14:21:47 -08:00
Bradley M. Kuhn
566324fbcb One of the hide's was missing. 2015-12-21 09:29:21 -08:00
Bradley M. Kuhn
f1c924b07e Create renewal option on form.
This adds a renewal option to the form.
2015-12-21 09:25:04 -08:00
Bradley M. Kuhn
963c023eab site-wide supporter count fundraiser.
Using the jQuery UI multiprogress bar added earlier, this change allows
display of the of the progress bar on every page.
2015-11-30 19:19:46 -08:00
Bradley M. Kuhn
61ecfd8341 Move supporter-page.js into js directory. 2015-11-30 19:19:46 -08:00
Bradley M. Kuhn
63aa13ac23 Proper update to jQuery 1.7.2 and jQuery UI 1.8.22 2015-11-30 19:19:45 -08:00
Bradley M. Kuhn
1a612c75ed Multi-progress bar support.
Source code can be found for this at:

https://github.com/j-ulrich/jquery-ui-multiprogressbar
2015-11-30 19:19:44 -08:00
Bradley M. Kuhn
e358835058 Switch to jQuery 1.7.2 and jQuery UI 1.8.22 custom 2015-11-30 19:19:43 -08:00
Bradley M. Kuhn
7f78638faf Moved js and css from top level to subdirs 2015-11-30 19:19:43 -08:00