Widget:MattTest: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 753: Line 753:
function updateVisitSelector(target, visitCounter){
function updateVisitSelector(target, visitCounter){
if (visitCounter > 1){
if (visitCounter > 1){
if (target.dmin.getHours() >= 12){
if (target.dmin.getHours() > 12){
var hrsMin = target.dmin.getHours() - 12;
var hrsMin = target.dmin.getHours() - 12;
var minsMin = target.dmin.getMinutes();
var minsMin = target.dmin.getMinutes();
Line 763: Line 763:
}
}
if(target.dmax.getHours() >= 12){
if(target.dmax.getHours() > 12){
var hrsMax = target.dmax.getHours() - 12;
var hrsMax = target.dmax.getHours() - 12;
var minsMax = target.dmax.getMinutes();
var minsMax = target.dmax.getMinutes();

Revision as of 18:49, 7 May 2018