[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Getting checkboxes in HTML output?
From: |
Matt Price |
Subject: |
Re: [O] Getting checkboxes in HTML output? |
Date: |
Thu, 28 Nov 2013 16:58:23 -0500 |
On Thu, Nov 28, 2013 at 4:26 PM, Sebastien Vauban
<address@hidden> wrote:
> Achim Gratz wrote:
>> Rick Frankel writes:
>>> For xhtml compatibility, it would need to be 'checked="checked"'. I've
>>> done a quick look at the html dtd, and i does look like input elements
>>> are allowed outside of forms, but i would need to double
>>> check... Also, the fallback to "[-]" for the partially checked state
>>> is a bit inconsistent, perhaps changing background color or other
>>> attributre of the checkbox would be better.
>>
>> I'd much prefer if you'd be using character entities for that since you
>> can't do any input on the HTML anyway (WHITE MEDIUM SQUARE, SQUARE WITH
>> LOWER RIGHT DIAGONAL BLACK and BLACK MEDIUM SQUARE look like good
>> candidates). That probably makes it UTF-8 only since I don't think
>> these symbols are defined for plain (X)HTML, so for other encodings
>> things should probably stay as they are.
>
> FWIW, here's what I do for the HTML export:
>
> In JS:
>
> #+begin_src js
> $(function () {
> $('li > code:contains("[X]")')
> .parent()
> .addClass('checked')
> .end()
> .remove();
> $('li > code:contains("[-]")')
> .parent()
> .addClass('halfchecked')
> .end()
> .remove();
> $('li > code:contains("[ ]")')
> .parent()
> .addClass('unchecked')
> .end()
> .remove();
> });
> #+end_src
>
> In CSS:
>
> #+begin_src css
> li.checked {
> list-style-image: url('../images/checked.png');
> }
>
> li.halfchecked {
> list-style-image: url('../images/halfchecked.png');
> }
>
> li.unchecked {
> list-style-image: url('../images/unchecked.png');
> }
> #+end_src
>
> with 3 nice pictures of green V, red X, and blue || (line "pause" on
> recorders).
>
so, I don't know if I'm the only one here who feels this way, but I
would like to be able to export to an HTML file with ACTUAL HECKBOXES
that I cna check off, say on a phone, when I put the milk in the
shopping art, or pack the swim goggles in the vacation bag, or
whatever. Maybe though I should be thinking in terms of some other
export application, remember the milk or something. Am I describing a
different use case than other users here, perhaps?
- [O] Getting checkboxes in HTML output?, Peter Davis, 2013/11/27
- Re: [O] Getting checkboxes in HTML output?, Nick Dokos, 2013/11/27
- Re: [O] Getting checkboxes in HTML output?, Peter Davis, 2013/11/27
- Re: [O] Getting checkboxes in HTML output?, Achim Gratz, 2013/11/28
- Re: [O] Getting checkboxes in HTML output?, Sebastien Vauban, 2013/11/28
- Message not available
- Re: [O] Getting checkboxes in HTML output?,
Matt Price <=
- Re: [O] Getting checkboxes in HTML output?, Rick Frankel, 2013/11/29
- Re: [O] Getting checkboxes in HTML output?, Peter Davis, 2013/11/29
- Re: [O] Getting checkboxes in HTML output?, Carsten Dominik, 2013/11/30
- Re: [O] Getting checkboxes in HTML output?, Rick Frankel, 2013/11/30
- Re: [O] Getting checkboxes in HTML output?, Eric Abrahamsen, 2013/11/28
Re: [O] Getting checkboxes in HTML output?, Waldemar Quevedo, 2013/11/28