Last active
November 20, 2015 05:02
-
-
Save prosenjit-manna/a640f146107a33a307c6 to your computer and use it in GitHub Desktop.
Main JS coding style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// jQuery No Conflict | |
$.noConflict(); | |
(function( $ ) { | |
// | |
var app = { | |
// navigation toogle show and hide | |
togglenavigation : function (options) { | |
var tConf = $.extend({ | |
elm : $('.js-toggle-nav-button'), | |
wrap : $('.nav-popup-wrap'), | |
tgClass : 'nav-popup-wrap-open-state' | |
},options); | |
tConf.elm.on('click',function(){ | |
tConf.wrap.toggleClass(tConf.tgClass); | |
}); | |
} | |
}; | |
app.togglenavigation(); | |
}( jQuery )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment