Skip to content

Instantly share code, notes, and snippets.

View ParthBarot-BoTreeConsulting's full-sized avatar

Parth Barot ParthBarot-BoTreeConsulting

View GitHub Profile
@ParthBarot-BoTreeConsulting
ParthBarot-BoTreeConsulting / js_patterns_articles
Created October 17, 2014 14:24
Useful Javascript articles - JS patterns
http://blog.jerodsanto.net/2012/02/a-simple-pattern-to-namespace-and-selectively-execute-certain-bits-of-javascript-depending-on-which-rails-controller-and-action-are-active/
http://css-tricks.com/how-do-you-structure-javascript-the-module-pattern-edition/
Super - http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript
http://rmurphey.com/blog/2009/10/15/using-objects-to-organize-your-code/
http://alistapart.com/article/the-design-of-code-organizing-javascript
@ParthBarot-BoTreeConsulting
ParthBarot-BoTreeConsulting / overlay-code-fragments
Created October 4, 2013 12:08
Design an UI-Overlay for the webpage using jQuery
// JS CODE ===================================
//Added for overlay, while ajax data is being loaded.
var $overlay_wrapper;
var $overlay_panel;
function show_overlay() {
if ( !$overlay_wrapper) append_overlay();
if(!$($overlay_wrapper).is(':visible'))