Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // JavaScript Document
- jQuery.noConflict();
- jQuery(function() {
- jQuery(".clickedbuttons").hide();
- jQuery(".buttons").click(function() {
- jQuery(".sidebar").animate({height: "hide", opacity: 0}, 500,
- function() {
- jQuery(".forums").animate({width: "100%"}, 500);
- });
- jQuery(this).hide();
- jQuery(".clickedbuttons").show();
- jQuery.cookie("sidebar","collapsed", {expires: 365});
- return false;
- });
- jQuery(".clickedbuttons").click(function() {
- jQuery(".forums").animate({width: "80%"}, 500,
- function() {
- jQuery(".sidebar").animate({height: "show", opacity: 1}, 500);
- });
- jQuery(this).hide();
- jQuery(".buttons").show();
- jQuery.cookie("sidebar","expanded", {expires: 365});
- return false;
- });
- if(jQuery.cookie("sidebar") == "collapsed") {
- jQuery(".buttons").hide();
- jQuery(".clickedbuttons").show();
- jQuery(".forums").css("width","100%");
- jQuery(".sidebar").hide();
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement