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
596 B
39 lines
596 B
semantic.sidebar = {};
|
|
|
|
// ready event
|
|
semantic.sidebar.ready = function() {
|
|
|
|
// selector cache
|
|
var
|
|
// alias
|
|
handler
|
|
;
|
|
|
|
|
|
$('.left.sidebar')
|
|
.sidebar()
|
|
;
|
|
$('.animation.example')
|
|
.find('.button')
|
|
.on('click', function() {
|
|
var
|
|
animation = $(this).data('animation')
|
|
;
|
|
$('.left.sidebar')
|
|
.sidebar('setting', {
|
|
animation: animation,
|
|
mobileAnimation: animation
|
|
})
|
|
.sidebar('toggle')
|
|
;
|
|
})
|
|
;
|
|
|
|
|
|
};
|
|
|
|
|
|
// attach ready event
|
|
$(document)
|
|
.ready(semantic.sidebar.ready)
|
|
;
|