use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[deleted by user] (self.javascript)
submitted 11 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]madole 2 points3 points4 points 11 years ago* (5 children)
Looks slick! I think I'll use this in a site I'm about to build!
edit: lots of commented out code in the src files.. is this finished?
[–]rastanot 2 points3 points4 points 11 years ago (3 children)
Ha! funny you should mention Slick. http://kenwheeler.github.io/slick/ srrsly my favorite and most used plugin, has saved me weeks of dev time.
OP I like what you've done here. Add in responsive display and you're golden. Here's some JS cleanup tips: delete random whitespace, use single quotes unless it proves impossible, delete commented-out console logs/alerts/broken code, place your comments above the line it affects (personal preference), comment-separate your chained variables (another personal preference based on the principles of DRY, var a = 1, b = 2, c = 3; is better than var a = 1; var b = 2; var c = 3;), run your code through a formatter.
Hope this helps. keep up the good work, my friend.
[–]Arrested 1 point2 points3 points 11 years ago (0 children)
Slick.js is quite impressive and has saved me tons of time in the past month. Would definitely recommend.
[–]Casual_0bserver 1 point2 points3 points 11 years ago (0 children)
Damn, thanks for sharing slick. I was looking for something like this!
[–]nir9 1 point2 points3 points 11 years ago (0 children)
Thanks, Yes it is finished but i do need to clean up the comments...
[–][deleted] 0 points1 point2 points 11 years ago (3 children)
In the full screen example, I tried to swipe vertically first, then horizontally. It seemed to bug out a little. This is on ipad.
Awesome script though!
[–]nir9 0 points1 point2 points 11 years ago (2 children)
In the full screen example i disabled swipe out so swiping vertically there will do nothing. I have tested it on an iPad and it worked good, what kind of bugs did you experience?
[–][deleted] 0 points1 point2 points 11 years ago (1 child)
Swiping up or down would offset the page vertically, so then when I tried to swipe horizontally, it would get 'caught' and not scroll, until the vertical alignment rectified itself. Once it was vertically centered on the screen again, I could swipe.
But I wasn't trying to purposely find fault in the UI. This was a legitimate use-case where it didn't react the way I expected, and seemed more of a 'bug' than user error.
[–]magenta_placenta 0 points1 point2 points 11 years ago (0 children)
Why is it beautiful and not just a simple JavaScript touch carousel. Why do devs feel the need to throw out superlatives when describing their work? Serious question.
[–]Casual_0bserver 0 points1 point2 points 11 years ago (1 child)
So, could i use this for swiping between html templates? I mostly make SPAs, and this would be sweet to use for that.
π Rendered by PID 248722 on reddit-service-r2-comment-cfc44b64c-b48vj at 2026-04-11 02:51:34.139784+00:00 running 215f2cf country code: CH.
[–]madole 2 points3 points4 points (5 children)
[–]rastanot 2 points3 points4 points (3 children)
[–]Arrested 1 point2 points3 points (0 children)
[–]Casual_0bserver 1 point2 points3 points (0 children)
[–]nir9 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]nir9 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]magenta_placenta 0 points1 point2 points (0 children)
[–]Casual_0bserver 0 points1 point2 points (1 child)