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
Web development
html(5), javascript, CSS, jQuery, NodeJS
58
snippets by
Marco Piñero
Media Queries
CSS
1
29
8050
My Minimum HTML5 Template
HTML
1
24
7860
Linux Ubuntu: Printing one or more webpages to pdf file
Bash
0
0
2218
CSS: Setup wallpaper image (cover)
CSS
1
1
1520
CSS: Ellipsis at end of string
CSS
0
4
1545
Javascript: Is my browser on line?
JavaScript
0
2
1546
Display desktop notifications | Javascript
JavaScript
8
50
10393
Perfect Full Page Background Image
CSS
4
19
3119
CSS: Crossbrowser rounded borders
CSS
0
2
1435
Javascript: calculating similarity % between two strings
0
3
10381
CSS select text user-select
CSS
0
8
1472
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1441
My Favorite JavaScript Helper Functions
JavaScript
4
32
10193
Javascript: convert native browser event to jQuery event.
JavaScript
0
3
1535
realWidthHeight.js
JavaScript
0
2
939
nginx: add new alias
Plain text
2
2
2657
Proxy reversible
Bash
0
0
1774
gitlab: backup all
Bash
0
1
1219
Javascript: Convert proper name to Capital/Title Case
JavaScript
0
0
1329
Javascript: Disable Back Button - idea #1
JavaScript
0
0
1362
CSS: Data column organized as top-down-right structure
CSS
0
1
894
linux: create .htpasswd without using apache tools
Bash
0
0
919
Javascript: Get file name from fullpath.
JavaScript
0
0
822
CSS/flex: Header/Body/Footer layout using flex
HTML
0
0
898
CSS: Hide Scrollbar while still being able to scroll
CSS
0
0
842
Javascript: Get filename and path from full path filename
JavaScript
0
0
1094
Javascript: Clone array/object.
Bash
0
0
651
CSS/FontAwesome: Battery charging animation
CSS
0
0
1028
CSS: spin element
CSS
0
0
689
CSS/HTML: Switch with input
HTML
0
0
723
CSS: Transparent event clicks having translucid front div element
CSS
0
0
715
CSS: Blurry Glass Effect
CSS
0
0
654
CSS: Grow element when mouse hover
CSS
0
0
676
Nginx: URI Path as Parameters
Bash
0
0
571
Javascript/jQuery: Input with fixed prefix.
JavaScript
0
0
647
Javascript: ProtocolCheck
JavaScript
0
0
1324
CSS: Hide Scrollbar and still being scrollable
CSS
0
0
624
Javascript: Beep
JavaScript
0
0
810
Javascript: Get host info
JavaScript
0
0
594
Javascript: Vanilla async get
JavaScript
0
0
495
Regular Expressions: pattern string except preceeded by
JavaScript
0
0
486
Javascript: Open new window POSTing parameters
JavaScript
5
0
8846
CSS/Android Ripple Effect in Pure CSS
CSS
0
0
624
CSV/MS Excel: Trick for separators
Plain text
0
0
555
Javascript: Query Params to JSON
JavaScript
0
0
439
Javascript/CSS: Ripple Effect - Vanilla
JavaScript
0
0
475
Vanilla Javascript: Upload file
JavaScript
0
0
524
VSCode: Enable auto Guess Encoding
Bash
0
0
365
Simple toggle vanilla JS
JavaScript
0
0
404
Javascript: Async/Await
JavaScript
0
0
426
CSS: Animated progress bar
CSS
0
0
333
CSS: Shake Element
CSS
0
0
447
CSS: Blurry background
CSS
0
0
384
CSS: Align elements like windows explorer icons layout style
CSS
0
0
303
Javascript: Submit JSON object from form values
JavaScript
0
0
368
Javascript: Fetch POST JSON
JavaScript
0
0
335
CSS: Best readable fonts for web
CSS
0
0
1351
Linux: Download web page files using wget
Bash
0
0
268