Recent work with Active Calculus [turning preview activities into long
WeBWorK exercises] reveals that it is bad to leave the Activate button
at the bottom of an exercise.
So I moved it to the top. But it's not clear where to place the
button. And if it still literally has the word "Activate" that's a lot
of space to take up in a region that has less space. Here is what it
looks like:
https://spot.pcc.edu/~ajordan/temp/sample-chapter/frontmatter.html
This involves editing JS, CSS, and the XSL in this pull request. So
it's a bit of a dance. What suggestions to do it differently, better?
This prototype has the button up high, sticking into the right margin
(no conflict with permalink). The button has an accessible aria-label
that still says "Activate" (but that could stand to be more
descriptive). The button just shows an icon (the WeBWorK logo) right
now. Are there better suggestions? When you click it, the exercise
becomes live. The button disappears. There is still the "Revert"
button at the bottom though, and if you click that, you go back to
static and the Activate button comes back.
I went ahead and opened a PR here:
https://github.com/PreTeXtBook/pretext/pull/1874
with the XSL edit for this. CSS changes are easy for David to make. JS
changes are more significant but I think I can do them with backward
compatibility.