• Resolved akmiecik

    (@akmiecik)


    I am trying to use dat-fns with Code Manager.

    I have a working JS Fiddle

    But when I try to transfer it does not work.

    I have a link to date_fns.min.js in the header and the following in Code Manager:

    var id1 = document.getElementById("id1")
    
    id1.innerHTML = dateFns.startOfQuarter(new Date())
    
    id2.innerHTML = dateFns.endOfQuarter(new Date())

    And ideas would be great, thanks.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter akmiecik

    (@akmiecik)

    Dang it!!!

    Yet AGAIN, I forgot to click the darn Enable checkbox.

    Is there someway I can make checked the default.

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @akmiecik,

    Good you fixed it! ??

    >>> Is there someway I can make checked the default.

    Yes, this is possible, but not very wise! ?? All code is disabled by default to prevent errors. But I understand your request, so maybe I can add some styling to visualize non active versus active code. Let me see what I can do for the next version…

    Thank you for your contribution,
    Peter

    PS Can I close your request “Can’t copy/paste to new PHP file”?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tips for getting date-fns to work’ is closed to new replies.