aboutsummaryrefslogtreecommitdiff
path: root/static/mauve_utils.js
blob: 8a4a9db84d6f192466388c7966e9d3b9eeee6778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Controls the showing of details on alerts.

function next_date(n, d, when) {
  switch(when) {
    case "daytime"
      next_daytime_hour(d) + n;
    case "working"
      next_working_hour(d) + n;
    default
      d + n;
  }
}

function is_daytime_hour(d) { 
  return (d.getHours() => 8 and d.getHours() <= 17);
}


function next_working_hour(d) {


}