Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
JavaScript snippets by Dan Dvoracek
JS Module pattern with jquery
JavaScript
0
4
1528
Nodejs: SocketIO listening to Express app server + very basic config
JavaScript
0
1
1382
Countdown til' date
JavaScript
0
4
1452
Remove duplicates of multidimensional arrays
JavaScript
0
9
1330
Return scroll position in Vanilla js
JavaScript
0
4
2097
Simple method to format date in Javascript (in order to get the th, rd, st, ...)
JavaScript
0
1
1594
Simple function to return scrollTop position in %
JavaScript
0
2
1276
VanillaJS ScrollTo
JavaScript
0
2
1411