App-Dochazka-WWW
view release on metacpan or search on metacpan
share/js/dochazka-www/viewer.js view on Meta::CPAN
// "intervals" array in haw. At the same time, convert the time range string
// (e.g. "08:00-08:10") into a startTime-duration object (e.g. { "startTime":
// "08:00", "duration": "10" } where "duration" is always in minutes.
//
// Now, haw contains all information needed to construct the SVG blocks.
//
// Iterate over haw, writing SVG blocks. When a non-holiday/weekend date is
// detected immediately following a holiday/weekend date (that means Monday),
// insert a scale SVG block unless it is the first or last date in haw.
//
// At the end, draw a legend linking the colors to activity codes and write
// the total number of hours associated with each activity code.
//
//
"use strict";
define ([
"jquery",
"app/caches",
"app/svg-lib",
( run in 1.124 second using v1.01-cache-2.11-cpan-49f99fa48dc )