puresight's public fiddles
-
Try appendAround
jQuery 1.9.1, HTML, CSS, JavaScript
-
Revealing Module Pattern Demo in JS
This fiddle is a demonstration of the revealing module pattern in JavaScript.
-
Module Pattern Demo in JS
This fiddle is a demonstration of the module pattern in JavaScript.
-
Put JavaScript UI component parameters in your CSS stylesheet
When implementing a UI component with JavaScript, keeping style properties in the stylesheet is better than intermingling them in JavaScript code. Here is a demonstration using JavaScript to retrieve JSON-formatted data from a stylesheet.
-
Collate Referenced Assets
Function collates assets locally referenced in hyperlink, image, embed or link elements found in given selectors.
-
Put desktop alternative in SCRIPT text/html element
Mobile First HTML tucks the desktop markup - IMG, IFRAME, et cetera - in a SCRIPT element of type text/html. This can then be conditionally injected, based on the window width.