I'm working with a slide toggle which is vertical and it's as high the page is, and the same goes for the width. For default, the toggle appears opened. I want that toggle to remain opened even if when refreshing the page. I've read another questions and aswers, and I know I can achieve this by using jquery Cookie (by Klaus H.) I tried understanding this by reading other responses similar to what i'm looking for, but they all contain parts I don't need and i can't differentiate what I really need. I'm still very new at this, so I would really appreciate some of your help!
This is the script till now:
jQuery(document).ready(function(){
var r=0, dir=true;
jQuery(".slide").click(function() {
dir = !dir;
r = dir? -1300 : 0;
jQuery(this).stop().animate({left: r+'px'}, 800);
});
});
This is the css
.blunt {
background: #fff;
height: 100%;
position: fixed;
top: 0;
width: 1356px;
z-index: 999;
}
.slide {
background: #fff;
cursor: pointer;
height: 100%;
left: 0px;
position: absolute;
top: 0px;
width: 100%;
}
This ones where questions and answers I tried to understand:
If you need more explanation, I will be glad to go and give it another try (since english it's not my native tongue). Thank you very much!