greenrobo's public fiddles
-
:checked - accordion hack
No-Library (pure JS), HTML, CSS, JavaScript
-
JSChart Example
jQuery 1.10.1, HTML, CSS, JavaScript
-
Skew angled shape - Rhombus
jQuery Compat (edge), HTML, CSS, JavaScript
-
Skew angled shape - Rhombus 2
No-Library (pure JS), HTML, CSS, JavaScript
-
onchange listener for <select> multiple to update 'values' and 'indexes' properties
When this script is run, select.values and select.indexes will give the array of options that are selected and their indexes respectively. 'indexes' and 'indices' are equivalent. This is done in pure JavaScript. No library dependency. Make sure to include at the bottom.
-
jQuery Ajax - Weather API - JSON
jQuery (edge), HTML, CSS, JavaScript
-
Roulette Design 1
No-Library (pure JS), HTML, CSS, JavaScript
-
Roulette Design 2
No-Library (pure JS), HTML, CSS, JavaScript
-
Input type=file with custom styles
jQuery 1.9.1, HTML, CSS, JavaScript
-
Css Close ×
.close::after { content: '×'; }
-
jQuery Deferred example with jQuery animation.
This example not only shows the jQuery Deferred object's working, but also gives a rough idea on how to group a related tasks into a single object named 'anim'. By doing such grouping, code will be more modular than spagetti.
-
Revealing Module Pattern
Two different examples for the pattern.
-
Input type=file with custom styles
jQuery 1.9.1, HTML, CSS, JavaScript
-
Codehut tag add/remove
jQuery 1.9.1, HTML, CSS, JavaScript
-
CSS-Tricks Forum Solution
Tab triggering - hover effect
-
CSS-Tricks Forum Solution
jQuery 1.9.1, HTML, CSS, JavaScript
-
CSS-Tricks Forum Solution
jQuery 1.8.3, HTML, CSS, JavaScript
-
tooltip with css
jQuery 1.8.3, HTML, CSS, JavaScript
-
Add/Remove for tables
jQuery 1.8.3, HTML, CSS, JavaScript
-
<label> hover <input> example
This example demonstrates how the hover style of input box is activated when hovered over the input's label.