No autoresizing to fit the code
Render blocking of the parent page
Apply local draft version or discard it
Auto-close HTML tags
Show line numbers
Enable line wrapping
Indent with tabs
This week’s challenge is to find an elegant solution to generating elements in a spiral pattern. Consider the following diagram…
Your solution can be procedural or recursive, but in either case you will be dealing with a shrinking grid of possible locations for elements. The colours do not have to be in the result - they are only used to indicate the pattern.
Hint: Try defining variables for columns and rows so that the shape can change but the positioning and order remain the same.
Add title to make the fiddle public.
/echo simulates AJAX calls:
See docs for more info.
Created and maintained by Piotr and @oskar.
Hosted on DigitalOcean
All code belongs to the poster and no license is enforced.
JSFiddle or its authors are not responsible or liable for any loss or damage of any kind during the usage of provided code.
Status page by updown.io
Keep us running by whitelisting JSFiddle in your ad blocker.
We're serving quality, tech-related ads only.