thiswebshoprules

git clone https://git.tarina.org/thiswebshoprules
Log | Files | Refs

scrollcookie.js (262B)


      1 $(window).on("scroll", function() {
      2   $.cookie("tempScrollTop", $(window).scrollTop());
      3 });
      4 $(function() {
      5   if ($.cookie("tempScrollTop")) {
      6     $(window).scrollTop($.cookie("tempScrollTop"));
      7     alert("loaded postion : " + $.cookie("tempScrollTop"));
      8   }
      9 });