1
0
Fork 0
This commit is contained in:
Rylie James Thomas 2018-11-04 22:19:21 +11:00
parent a046ebd094
commit 2ff26af10a
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
jQuery(document).ready(function($){
//open the lateral panel
$('.cd-btn').on('click', function(event){
event.preventDefault();
$('.cd-panel').addClass('is-visible');
});
//clode the lateral panel
$('.cd-panel').on('click', function(event){
if( $(event.target).is('.cd-panel') || $(event.target).is('.cd-close') ) {
$('.cd-panel').removeClass('is-visible');
event.preventDefault();
}
});
});