• Resolved sabinem

    (@lunaluce)


    Hello, great plugin, I am in awe!

    I would like to be able to change a tiny bit of the display: I show the start times and (default) display the end times on hover. Is there any chance I could edit the display of the dash for the “until” end time?

    Default: 11:00 – 11:30

    11:00–11:30

    11:00—11:30

    11:00 …?11:30

    I haven’t found a parameter to do so, CSS would not work since it is in HMTL? Any hints greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author room34

    (@room34)

    At the moment there’s not any kind of wrapper around the delimiter, so what you’re talking about couldn’t be done with CSS, but it could be done with JavaScript/jQuery. (Ideally I should make it an editable parameter… I’ll look into adding that in a future update.)

    If you were to do it in jQuery it would look something like this:

    jQuery(document).on('r34ics_init_end', function() {
    jQuery('.ics-calendar .end_time').each(function() {
    var text = jQuery(this).text();
    text.replace('–', '…');
    jQuery(this).text(text);
    });
    });

    This should work, but it may not perform very well, especially if you have a lot of events in your calendar. This is something that really should be done on the server side, so we’re back to me adding it as a parameter in the shortcode.

    (Also just a note… the text in the first .replace parameter is supposed to be ampersand code #8211; but the forum converts it to the en dash character.)

    • This reply was modified 2 months, 1 week ago by room34.
    • This reply was modified 2 months, 1 week ago by room34.
    Thread Starter sabinem

    (@lunaluce)

    Thank you very much for your prompt reply and the clarification! Since it is mainly a visual/grammatical feature, I might refrain from using jQuery here and patiently wait for the parameter to be implemented some time in the future. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.