
previous

page 26
next
You may want to stop here but I just had to keep going!
opening the rock



To make it more interesting than just clicking on the rock, click on the coloured patches in rainbow order.
Note that the order of the colours changes each time you refresh the page.
I found it easiest to add this magic separately so I started by creating a panel.js file - note I used capitals for the IDs this time.
panel.js
var g_colours=['RED','ORANGE','YELLOW','GREEN','BLUE','INDIGO','VIOLET'];
var order=[0,1,2,3,4,5,6];
Shuffle(order);
document.write("<div id='panel'>");
for (var i=0;i<7;i++) {
var j=order[i];
document.write("<div class='cell item' id='"+g_colours[j]+"' style='background-color:"+g_colours[j]+";' onClick='cell_clicked(this);'></div>");
}
document.write("</div>");
var order=[0,1,2,3,4,5,6];
Shuffle(order);
document.write("<div id='panel'>");
for (var i=0;i<7;i++) {
var j=order[i];
document.write("<div class='cell item' id='"+g_colours[j]+"' style='background-color:"+g_colours[j]+";' onClick='cell_clicked(this);'></div>");
}
document.write("</div>");
previous
next