previous

page 18

next
function draw() {
// temp
for (var i=0;i<4;i++) {
var el=document.getElementById(100+i);
var j=g_temp_col[i];
if (j==-1) {
el.src='cards/empty.png';
} else {
el.src='cards/'+j+'.png';
}
}
// main
Hide_class('main')
for (var c=1;c<9;c++) {
var ids=g_main_cols[c];
for (var i=0;i<ids.length;i++) {
var id=ids[i]; var r=i+1;
var el=document.getElementById(id);
el.style.gridRowStart=r;
el.style.gridColumnStart=c;
el.style.zIndex=g_z; g_z++;
Show(id);
}
}
}

And now the move from main to temp is perfect.

But what about the reverse?

What function do we need to alter to fix yet another problem?

click me for the answer

previous
next