Thursday, July 14, 2016

loadthecontrols

function loadthecontrols() {
loadthewhattoshowoptions()}

function loadthewhattoshowoptions() {
showthecalendar()}

function showthecalendar() {
showthecalendarcontrols()
showtheinterval(gettheinterval())}

var i = interval();var ni = numberofintervals()
var in = intervalnumber();var l = layernumber()

function fillthisinterval(interval)
var c = i.split("<color>")[0]
var i = i.split("<color>")[1].split("<i>")
var ni = i.length

displaytheinterval(

the record for an interval is an array literal
the record for a month:
yearnumber<year>month<month>numberofdays<nod>therecordforthefirstweek<week>...
so
2016<year>July<month>31<nod>week1record<week>week2record

to help me think about this I'm working on a page that draws a month

function drawthemonth(numberofdays,firstMonday) {
var themonth = fitthemonthtothecanvas()
drawtheweeks(numberofdays,firstMonday,themonth)}

function drawtheweeks(numberofdays,firstMonday,themonth) {
var nextMonday = firstMonday
while (nextMonday < numberofdays) {
drawtheweek(nextMonday,numberofdays,themonth)
nextMonday = nextMonday + 7}}