Web component: j-Clock


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Clock

  • works only with Bootstrap Grid System (otherwise is need to fix CSS)
  • thanks weareoutman for some things

Configuration:

Example: data-jc-config="twelvehour:true"

  • twelvehour {Boolean} (optional) the clock will be 12-hour (default false).

Usage

var ELEMENT = $(document);
var PATH = 'some.path.to.date';
var X_OFFSET = 100;
SETTER('clock', 'toggle', ELEMENT, PATH, function(date) {
   console.log('SELECTED DATE:', date);
}, X_OFFSET);

Author

Browser‘s Save action performs Preview