diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-04-14 06:28:44 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-04-14 06:28:44 +0800 |
commit | d814a45dffa6a872f6e336cad33ca41ffb102887 (patch) | |
tree | d8cdd0c4b8c6559efaf6846b24f0d6440f3c94f5 /ui/index.html | |
parent | 9f1438b85b3dac8f1dd98f7bd6e101035cfce0a5 (diff) | |
download | tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.gz tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.bz2 tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.lz tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.xz tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.tar.zst tangerine-wallet-browser-d814a45dffa6a872f6e336cad33ca41ffb102887.zip |
Moved UI into repo with its own dependency stack
Diffstat (limited to 'ui/index.html')
-rw-r--r-- | ui/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ui/index.html b/ui/index.html new file mode 100644 index 000000000..ba8a8baac --- /dev/null +++ b/ui/index.html @@ -0,0 +1,38 @@ +<!doctype html> +<html> + <head> + <meta charset="utf-8"> + <title>MetaMask</title> + </head> + <body> + + <!-- app content --> + <div id="app-content"></div> + <script src="./bundle.js" type="text/javascript" charset="utf-8"></script> + + <!-- design reference --> + <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 |