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.
48 lines
717 B
48 lines
717 B
semantic.customize = {};
|
|
|
|
// ready event
|
|
semantic.customize.ready = function() {
|
|
|
|
var
|
|
$accordion = $('.main.container .ui.accordion'),
|
|
$choice = $('.download .item'),
|
|
$popup = $('.main.container [data-content]'),
|
|
$checkbox = $('.download .item .checkbox'),
|
|
handler = {}
|
|
;
|
|
|
|
$choice
|
|
.on('click', function() {
|
|
$(this)
|
|
.find($checkbox)
|
|
.checkbox('toggle')
|
|
;
|
|
})
|
|
;
|
|
|
|
$checkbox
|
|
.checkbox()
|
|
;
|
|
|
|
$accordion
|
|
.accordion({
|
|
exclusive: false,
|
|
onChange: function() {
|
|
$('.ui.sticky').sticky('refresh');
|
|
}
|
|
})
|
|
;
|
|
|
|
|
|
$popup
|
|
.popup()
|
|
;
|
|
|
|
|
|
};
|
|
|
|
|
|
// attach ready event
|
|
$(document)
|
|
.ready(semantic.customize.ready)
|
|
;
|