Add global state and right click menu using redux
This commit is contained in:
parent
9821373504
commit
54d64cc124
10 changed files with 190 additions and 81 deletions
11
index.html
11
index.html
|
|
@ -10,7 +10,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body style="width:100%; height:100%">
|
||||
<div id="main" style="height:100%">
|
||||
<div id="main">
|
||||
</div>
|
||||
<script>
|
||||
document.addEventListener("keydown", function (e) {
|
||||
|
|
@ -20,6 +20,15 @@
|
|||
location.reload();
|
||||
}
|
||||
});
|
||||
function resize()
|
||||
{
|
||||
var heights = window.innerHeight;
|
||||
document.getElementById("main").style.height = heights + "px";
|
||||
}
|
||||
resize();
|
||||
window.onresize = function() {
|
||||
resize();
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="dist/bundle.js"></script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue