diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:32:50 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:32:50 +0800 |
commit | cd21a4b699fd692800e0fb6ef961d98e786925b6 (patch) | |
tree | 5d798b04e55c759ca4f7f4bb11ada6a685003d6a /ui/index.html | |
parent | a0a676c3e2f1c37613c5890ffd77542736804ba1 (diff) | |
download | tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar.gz tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar.bz2 tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar.lz tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar.xz tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.tar.zst tangerine-wallet-browser-cd21a4b699fd692800e0fb6ef961d98e786925b6.zip |
Remove scroll fixing from ui preview
Diffstat (limited to 'ui/index.html')
-rw-r--r-- | ui/index.html | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/ui/index.html b/ui/index.html index ba8a8baac..9dfaefbb3 100644 --- a/ui/index.html +++ b/ui/index.html @@ -14,25 +14,7 @@ <link rel="stylesheet" type="text/css" href="./app/css/debug.css"> <div id="design-container"> <img id="design-img" src="./design/metamask_wfs_jan_13.png"> - <!-- persist scroll position on refresh --> - <script type="text/javascript"> - var scrollElement = document.getElementById('design-container') - function getScrollPosition () { - var scrollTop = scrollElement.scrollTop, scrollLeft = scrollElement.scrollLeft - window.location.hash = 'scrollTop='+scrollTop+'&scrollLeft='+scrollLeft - } - window.onload = function () { - setInterval(getScrollPosition, 1000) - var hashLocation = window.location.hash.split('#')[1] - if (!hashLocation) return - var sections = hashLocation.split('&') - var scrollTop = sections[0].split('=')[1] - var scrollLeft = sections[1].split('=')[1] - scrollElement.scrollTop = scrollTop - scrollElement.scrollLeft = scrollLeft - } - </script> </div> - + </body> -</html>
\ No newline at end of file +</html> |