25 lines
651 B
JavaScript
25 lines
651 B
JavaScript
/*
|
|
* Beware of fadeIn/fadeOut jQuery animations; they add an inline
|
|
* "display: block" which overrides display: none in the stylesheet. Sneaky!
|
|
*
|
|
*/
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
$j(document).ready(function() {
|
|
$j('#toggle-list').click(toggleList);
|
|
$j('#toggle-panel').click(togglePanel);
|
|
});
|
|
|
|
function toggleList() {
|
|
$j('.panelview').addClass("listview").removeClass("panelview");
|
|
$j(this).css({opacity: 1});
|
|
$j('#toggle-panel').css({opacity: .2});
|
|
}
|
|
|
|
function togglePanel() {
|
|
$j('.listview').addClass("panelview").removeClass("listview");
|
|
$j(this).css({opacity: 1});
|
|
$j('#toggle-list').css({opacity: .2});
|
|
}
|