diff --git a/index.html b/index.html index 742944d..abb258e 100644 --- a/index.html +++ b/index.html @@ -98,7 +98,7 @@
- +
@@ -117,7 +117,7 @@
- +
@@ -151,27 +151,27 @@
- +
- +
- +
- +
- +
- +
diff --git a/js/Weight Calculation Script-Edited-Jquery-V4.js b/js/Weight Calculation Script-Edited-Jquery-V4.js index ed41597..f6cb4e9 100644 --- a/js/Weight Calculation Script-Edited-Jquery-V4.js +++ b/js/Weight Calculation Script-Edited-Jquery-V4.js @@ -114,4 +114,19 @@ } // End if }); }); + + //Saves scroll position on focus and restores + var savedScrollTop + function saveScroll() { + var savedScrollTop = jQuery(document).scrollTop(); // save scroll position + } + function restoreScroll() { + jQuery(document).scrollTop(savedScrollTop); // restore it + } + + + + /*var savedScrollTop = $(document).scrollTop(); // save scroll position + + $(document).scrollTop(savedScrollTop ); // restore it*/ // }); \ No newline at end of file