Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $('.panelContent').hide();
- $('.panelIcon').html('<img src="images/condense-symbol.png">');
- $('.collapsiblePanel').children('h3').click(function () {
- var panel = $(this);
- $(this).siblings('.panelContent').slideToggle('fast', function () {
- if ($(this).is(':visible')) {
- panel.children('.panelIcon').html('<img src="images/expand-symbol.png">');
- //$('.silhouette').addClass('highlight');
- var highlight = $(this).data('highlight');
- console.log(highlight);
- window.selectedPanel = $(this);
- window.icon = $("#" + highlight)
- $("#" + highlight).addclass('outline');
- } else {
- panel.children('.panelIcon').html('<img src="images/condense-symbol.png">');
- $('.silhouette').removeClass('outline');
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement