1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/development/index.html

65 lines
1.1 KiB
HTML
Raw Normal View History

2016-07-01 03:22:16 +02:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MetaMask</title>
2016-07-01 03:22:16 +02:00
</head>
<body>
<!-- app content -->
<div id="app-content" style="height: 100%"></div>
2016-07-01 03:22:16 +02:00
<script src="./bundle.js" type="text/javascript" charset="utf-8"></script>
</body>
2016-07-01 08:50:20 +02:00
<style>
html, body, #test-container, .super-dev-container {
2016-07-01 08:50:20 +02:00
height: 100%;
width: 100%;
position: relative;
2016-07-07 08:05:30 +02:00
background: white;
2016-07-01 08:50:20 +02:00
}
#app-content {
2016-07-01 08:50:20 +02:00
background: #F7F7F7;
}
</style>
<script>
liveReloadCode(Date.now(), 300)
function liveReloadCode(lastUpdate, updateRate) {
setTimeout(iter, updateRate)
function iter() {
var xhr = new XMLHttpRequest()
xhr.open('GET', '/-/live-reload')
xhr.onreadystatechange = function() {
if(xhr.readyState !== 4) {
return
}
try {
var change = JSON.parse(xhr.responseText).lastUpdate
if(lastUpdate < change) {
return reload()
}
} catch(err) {
}
xhr =
xhr.onreadystatechange = null
setTimeout(iter, updateRate)
}
xhr.send(null)
}
}
function reload() {
window.location.reload()
}
</script>
2016-07-01 03:22:16 +02:00
</html>