Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love this. Is it open source? I would love to create my own with my milestones.



I guess so? It's pretty janky and a day or two of light work in between more serious commitments but feel free to take it and do what you will!


> It's pretty janky

There's 31,000+ divs generated. If you shave the unnecessary code from each one you could save several megabytes of repeated text in total. e.g.

- replace all the inline CSS with a couple of declarations in a stylesheet

- remove the class names on the round divs. Add a class only to the square ones.

- data-tooltip-id="tooltip" data-tooltip-html="..." is also repetitive. You could replace it with simply data-text="..."

- better still, add the text as content to the divs, hide it with CSS, and use :hover to reveal it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: