GithubHelp home page GithubHelp logo

arunshekher / livetime Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 624 KB

An e107 plugin that incorporate Matt Bradley's livestamp javascript library and its dependency moment.js

PHP 0.10% JavaScript 99.90%

livetime's Introduction

Livetime

An e107 plugin that incorporates Matt Bradley’s livestamp javascript library and its dependency moment.js to e107 powered websites.

The awesome devs at e107 inc was kind enough to add support for this library to e107 core by means of a date function e107::getParser()->toDate(); after this feature request.

What it does?

It will update automatically the timestamp text in the supported timestamp elements on your e107 powered website as time goes by.

Demo

See the browser screen-cast gif animation below to see it in action, but 20x fast-forwarded. livetime-demo3

How to use

Its just a matter for e107 theme and plugin developers to use the above mentioned date method to parse date in their e107 projects and install this plugin. Rest is handled by the awesome javascript libraries called moment.js and livestamp.js that this plugin makes use of.

Update Libraries

If you have bower installed, run the following command inside the livetime plugin directory to update the javascript libraries to latest versions.

# terminal

$ bower update

livetime's People

Contributors

arunshekher avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

livetime's Issues

Question: e_header.php

Wouldn't be easier to add e_header.php and have it load the e107::js('core', "livestamp/moment.min.js"); and e107::js('core', "livestamp/livestamp.min.js"); so administrators don't have to add them in custom themes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.