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 Luis Lopez
Sheetsu POST API usage
JavaScript
0
2
1471
Vanilla JavaScript $.getJSON version with callback
JavaScript
0
3
4075
Real time search result rendering
JavaScript
0
3
1425
Epileptic Stroboscope Fun
JavaScript
0
0
1159
ROT13 Encoder/Decoder
JavaScript
0
0
2410
Opening a Tweet text window
JavaScript
0
0
1208
Simple Restful API with Express (Cloud9 Compatible)
JavaScript
0
0
1703
Consuming JSONP APIs Vanilla Javascript
JavaScript
0
1
2980
Calculate maximum and minimum in array (Helper)
JavaScript
0
1
1239
Flatten a multidimensional array (Helper)
JavaScript
0
0
1666
Shuffle the contents of an array (helper)
JavaScript
0
0
1292
Capitalize a phrase (helper)
JavaScript
0
2
1235
Get a random number between a range (helper)
JavaScript
0
1
1497
Toggle boolean attributes in DOM elements
JavaScript
0
1
1330