Added common files (geo layers, css, js and images) as well as the geo plot method and a mechanism to insert the mnr css etc files in the header
This commit is contained in:
7
inst/www/js/frameHeight.js
Normal file
7
inst/www/js/frameHeight.js
Normal file
@@ -0,0 +1,7 @@
|
||||
window.addEventListener('message', function (event) {
|
||||
if (event.data == "FrameHeight") {
|
||||
var body = document.body, html = document.documentElement;
|
||||
var height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
|
||||
event.source.postMessage({ "FrameHeight": height }, "*");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user