var tdy=new Date(),gap=0;
// We add one day while the gap is lower to 4 or the day is a saturday or sunday
do {tdy.setDate(tdy.getDate()+1)} while(++gap<4 ||...
In this case, it's possible to use document.write (the document is not closed).
But you have at first to load the script which define the variable copyright (a HTML string).
What do you think about this variant* (See the source) with transparent doors ?
For pilasters, shadows are expected... This should be possible with areas of color ?
It's very simple. Each year (non leap year) is 365 days or 52 weeks plus one day, then each year gives a gap from one day. The leap years (after 1900...
It depends essentially of the form of the request !
Write the code can go very fast when you know what you should do. But the problem is most often to understand the customer request ! The number...
Use the division of two intergers (by 4 and by 2) with quotient and remainder to get the row, column and quadrant of the cells (from 0 to 15) of your grid. Then the code is something like this
It's too possible to define javascript Arrays like this http://mamisab.chez-alice.fr/sudoku/Su17Epb.js with sudokus. Then there is no need of Ajax to load sudokus...
Create a new object Board with cells (an unidimensional Array is sufficient), rows, cols and diagonals (use the quotients, remainders and their sums and differences) and a method place that update...