correct hover behavior
This commit is contained in:
@@ -91,6 +91,29 @@
|
||||
|
||||
return t;
|
||||
}(document, "script", "twitter-wjs"));</script>
|
||||
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var accordionsMenu = $('.cd-accordion-menu');
|
||||
|
||||
if( accordionsMenu.length > 0 ) {
|
||||
|
||||
accordionsMenu.each(function(){
|
||||
var accordion = $(this);
|
||||
//detect change in the input[type="checkbox"] value
|
||||
accordion.on('change', 'input[type="checkbox"]', function(){
|
||||
var checkbox = $(this);
|
||||
console.log(checkbox.prop('checked'));
|
||||
( checkbox.prop('checked') ) ? checkbox.siblings('ul').attr('style', 'display:none;').slideDown(300) : checkbox.siblings('ul').attr('style', 'display:block;').slideUp(300);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
</script> <!-- Resource jQuery -->
|
||||
{% analytical_head_bottom %}
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user