Commit graph

9 commits

Author SHA1 Message Date
26ff31bb78
progress bar: Drop JS, make mobile friendly, match design to new site.
The existing jQuery UI-based fundraising progress bar used a float layout,
making it hard to adapt for mobile use. Given that there is not interactivity,
I've dropped all the JS and switched to a flexbox layout. This works well
because the bar will stretch to fit the text rather than always maintaining its scale.
2021-11-16 13:25:39 +11:00
cdc05ffafd Only focus search if search button clicked. 2021-10-19 06:47:58 -07:00
e340b7010c Add mobile menu and DuckDuckGo-based search. 2021-10-19 06:47:58 -07:00
Brett Smith
0add4633c1 base_conservancy: Activate progressbar for new match. 2017-11-27 13:08:21 -05:00
Brett Smith
9d855fda08 supporter: Improve shirt selection JavaScript.
* Add an animation for state changes.
* Set the start state by triggering the event on the selection at page load.
  Firefox at least remembers the selected button on page load.  This avoids
  a situation where the user says they want a shirt, reload, and now the
  size selection is invisible because we used to hide that unconditionally.
2017-01-01 15:28:33 -05:00
Brett Smith
8605b65783 supporter: Move more presentation rules to CSS.
This commit keeps the presentation basically the same, it just moves
presentation rules out of HTML and into CSS.  It's not pixel-perfect but
pretty close.
2017-01-01 13:53:41 -05:00
Brett Smith
7842ca6c57 supporter: Fix redundant no_shipping id. 2016-12-31 16:22:52 -05:00
Brett Smith
619bc033bc js: Render <video> inner HTML when no source is supported.
The HTML inside <video> is meant to be rendered by browsers that don't
support the tag at all.  You have to respond to the JavaScript error event
to deal with browsers that support video, but no available source.  See
<https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video#Showing_fallback_content_when_no_source_could_be_decoded>.
2016-12-31 15:19:59 -05:00
Brett Smith
034a60be9b js: Split whole-site JS from Supporter-specific JS. 2016-12-31 14:46:10 -05:00