Q4Widgets API Documentation

q4.dst

A simple widget for changing the time zone strings of either modules or widgets.
Script link
q4.dst.1.0.0.min.js
Source file
q4.dst.js, line 2

Examples

$('.ModuleEvent').dst({
    container: '.ModuleTime',
    timeZones: [
         {
             find: 'EST',
             replace: 'EDT'
         },
         {
             find: 'PST',
             replace: 'PDT'
         },
         {
             find: 'CST',
             replace: 'CDT'
         }
     ]
});

Options

container string
Class container for where the time zone text can be found
timeZones array
An array of what time zone strings to look out for and what to replace them with if found
Example
timeZones : [
    { find: 'EST', replace: 'EDT' }
]
onComplete function
A callback fired once the widget has finished running