You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
611 B

semantic.sidebar = {};
// ready event
semantic.sidebar.ready = function() {
// selector cache
var
// alias
handler
;
$('.left.sidebar')
.sidebar()
;
$('.transition.example')
.find('.button')
.on('click', function() {
var
transition = $(this).data('transition')
;
$('.left.sidebar')
.sidebar('setting', {
transition : transition,
mobileTransition : transition
})
.sidebar('toggle')
;
})
;
};
// attach ready event
$(document)
.ready(semantic.sidebar.ready)
;