How to add an extra loop in this existing loop
I have the following fiddle (click the 1 to see the board): http://jsfiddle.net/mauricederegt/vNpYe/1/
It creates a series of divs from the `var levels = [` part near the bottom of the script. The following part of the script loops through this to build up the board:
Ofcourse some code extending needs to be done. For instance a `z-index` needs to be added and the loop needs to be re-written a bit.
I am not that great at coding, but I did some attempts to get this right. See this fiddle with my attempt. I have marked the lines with: `//NEW added: etc` where I have added stuff to make this work:
The fiddle doesn't work cause the coding isn't quite right yet. Hope someone can help me out here. What am I missing/doing wrong?
|All times are GMT +1. The time now is 01:49 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.