Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Sackfield
Courses Plus Student 19,663 PointsTreehouse Charts
2 Answers
Andrew Chalkley
Treehouse Guest TeacherGreat project. I've taken a look at your code and put these videos together for you. In the first video I'll give you feedback in the form of code improvements and the second video will go over creating a jQuery Plugin so the same code can be used multiple times on the same page with no code duplication.
Improving JavaScript Code
Making a Plugin
Around 3:18 in this video I do options.radius
not options.radiusSize
however in my fork of the project on github has the corrected code.
For those who are interested in following along with Improving JavaScript Code and Making a Plugin just watch the video and download the code from the github project and download the plugin_example.html.
Hope this helps!
Regards
Andrew
Patrick Castle
Courses Plus Student 14,591 PointsIt's awesome that you've done that. I'll have to remember to submit projects to the forum in case I get some great advice like this.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsThis is brilliant Andrew Chalkley really appreciate you taking the time and I have learnt a lot in those 20mins. Think jQuery is the language I am starting to enjoy working with the most. Also sass so perhaps this is the way to study more for me.
Thanks again
James Mejia
7,726 PointsJames Mejia
7,726 PointsFantastic post. I learned a lot! Do these types of posts get featured? I'd love to see more.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsI agree it would be great it they added them as a featured post.
Constantine Antonakos
9,741 PointsConstantine Antonakos
9,741 PointsYou rock, Andrew! This is an awesome forum video!
Also, couldn't you place the "totals" string in the 'exclude' array to ignore it?
Andrew Chalkley
Treehouse Guest TeacherAndrew Chalkley
Treehouse Guest TeacherFork it and contribute ;)