CodeWalrus

Development => Web => Topic started by: CKH4 on August 29, 2015, 08:21:40 PM

Title: Well I'm learning JS and stuff
Post by: CKH4 on August 29, 2015, 08:21:40 PM
For my first real attempt at writing JS I've decided to generate a nav based on html h(1,2,3) elements. The code that isn't mine is from various stackoverflow questions but I think that there's only two functions that aren't mine. If you know any JS (jquery) and would like to propose suggestions that would be cool.

http://codepen.io/CKH4/pen/WQeJWw (http://codepen.io/CKH4/pen/WQeJWw)
Title: Re: Well I'm learning JS and stuff
Post by: Snektron on August 30, 2015, 08:30:58 AM
Looks nice :3. I like how it queue's positions when you rapidly click on different topics too.
Title: Re: Well I'm learning JS and stuff
Post by: CKH4 on August 30, 2015, 01:34:48 PM
Yep, I'm pretty sure that was unintended though. It probably just worked out from the code I found.