Advertisement
Guest User

Untitled

a guest
Mar 5th, 2013
314
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3. var info = false;
  4. if(window.localStorage["center-close"] && window.localStorage["center-close"] == "true"){
  5. $(".stats .content").hide();
  6. var info = true;
  7. }
  8. $(".stats .title-bar").click(function(){
  9. $(".stats .content").animate({ height:"toggle" }, 1000, "easeOutQuad");
  10. if(info){
  11. info = false;
  12. window.localStorage["center-close"] = "false";
  13. } else {
  14. window.localStorage["center-close"] = "true";
  15. info = true;
  16. }
  17. });
  18. });
  19. </script>
Advertisement
RAW Paste Data Copied
Advertisement