Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ep_collabtickerpublic

    ep_CollabTicker

    Function

    Inserts the current localtime when the user types a the string defined in triggerSequence at the beginning of a line. There is a very simple time-offset-correction implemented, which is triggered every updateInterval milliseconds.

    Settings

    "ep_CollabTicker" : {
                             "updateInterval": "30000",
                             "triggerSequence": "###",
                             "wordpress_url": "http://your.wordpressinstallation.com/",
                             "ticker_id": "4",
                             "exportInterval": "30000"
                             "bold": true
                           }

    Sub-Settings:

    • updateInterval, defaults to 30000, -1 means no auto-updating, the interval in which the time-offset gets updated
    • triggerSequence, defaults to ###, the characters the user has to write to trigger a timestamp-insertation
    • wordpress_url, the full URL to your WordPress with http/https and port if it differs from the standards
    • ticker_id, the ID of the post that you want to use - you can find this number in the URL of the "edit post" page, e.g. if the URL is http://wordpresstargeturl.com/wp-admin/post.php?post=4514&action=edit then 4514 is your lucky number ;)
    • exportInterval, defaults to 30000, the interval in which the pad gets exported to wordpress (in milliseconds)
    • bold, defaults to true, places -tags around the timestamps

    Keywords

    none

    install

    npm i ep_collabticker

    Downloadslast 7 days

    4

    version

    0.0.3

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar