',
+ '
',
+ '
',
+ '',
+ ' : ',
+ '',
+ '',
+ '
',
+ '
',
+ '
'
+ ].join('');
+
+ // ClockPicker
+ function ClockPicker(element, options) {
+ var popover = $(tpl),
+ plate = popover.find('.clockpicker-plate'),
+ hoursView = popover.find('.clockpicker-hours'),
+ minutesView = popover.find('.clockpicker-minutes'),
+ amPmBlock = popover.find('.clockpicker-am-pm-block'),
+ isInput = element.prop('tagName') === 'INPUT',
+ input = isInput ? element : element.find('input'),
+ addon = element.find('.input-group-addon'),
+ self = this,
+ timer;
+
+ this.id = uniqueId('cp');
+ this.element = element;
+ this.options = options;
+ this.isAppended = false;
+ this.isShown = false;
+ this.currentView = 'hours';
+ this.isInput = isInput;
+ this.input = input;
+ this.addon = addon;
+ this.popover = popover;
+ this.plate = plate;
+ this.hoursView = hoursView;
+ this.minutesView = minutesView;
+ this.amPmBlock = amPmBlock;
+ this.spanHours = popover.find('.clockpicker-span-hours');
+ this.spanMinutes = popover.find('.clockpicker-span-minutes');
+ this.spanAmPm = popover.find('.clockpicker-span-am-pm');
+ this.amOrPm = "PM";
+
+ // Setup for for 12 hour clock if option is selected
+ if (options.twelvehour) {
+
+ var amPmButtonsTemplate = ['