Adam's public fiddles
-
Mocking Websocket Message Events
How to mock web socket message events in Chrome.
-
Using Lodash With jQuery
Leveraging the Lodash library to perform operations on jQuery objects.
-
A Sortable Storyboard
Using jQuery UI and the sortable widget to implement a sortable storyboard.
-
Sorting Autocomplete Responses For Relevancy
Sorting the jQuery UI autocomplete response before it's rendered, based on some relevancy criteria.
-
Backbone Collection Fetch Scheduler
A simple method to orchestrate the fetching of several collections used in a Backbone application.
-
Handlebars Helpers vs String Utilities
You can register a template helper, or implement your own string utility. Which works best depends on your goals.
-
Advanced Dialog Effects
You can give the show and hide actions of the jQuery UI dialog widget very specific effect options, like direction, and easing.
-
Preserving Chained Calls Using wrap()
Without the use of the jQuery wrap() function, it's difficult to use chained calls in certain situations.
-
Scalable Routing With Backbone
To scale up larger applications that rely on Backbone routing mechanisms, you can't rely on a single router instance. You need modular routers that are fit for a particular purpose.
-
Button Icon Option Shortcut
Providing a simpler way for the rest of your application to set button icons.
-
Using Section Elements With Accordions
Using section elements instead of div elements for the jQuery UI accordion widget.
-
Showing Tick Marks On Sliders
Adding tick marks to the jQuery UI slider widget.
-
Value and Remaining Labels For Progressbars
Extending the jQuery UI progressbar widget to add value and remaining labels.
-
Remove Dialog Close Button Focus
The jQuery UI dialog close button is focused by default. This code removes the focus when the dialog is opened.
-
Sorted Array Push
Using Lodash to implement a sortedPush() array utility function.
-
Fullscreen Tabs Widget
Styles to better suit a jQuery Ui tabs widget when occupying the full screen.
-
Re-locating draggables
Instead of just change the position CSS properties on jQuery UI draggables, actually change the DOM structure.
-
Vertical Radio Buttons
Applying new styles to the jQuery UI buttonset widget to get a vertical layout.
-
Default Widget Options
Creating custom jQuery UI widgets for the sole purpose of providing a new set of default options.
-
Backbone Virtual Machine Demo
A simple Backbone virtual machine demo using handlebars templates.