From 57bcc645b9ac0870e0a28c072e341b9e8d4ec9ea Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 15 Oct 2018 13:14:56 +0200 Subject: [PATCH] Canvas Running at a Canvas Div --- Scripts/AppPreLoader.js | 4 ++-- index.html | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Scripts/AppPreLoader.js b/Scripts/AppPreLoader.js index ff119dd11..23f48e466 100644 --- a/Scripts/AppPreLoader.js +++ b/Scripts/AppPreLoader.js @@ -53,8 +53,8 @@ function loadAdvancedAlgosPlatform() { canvas.style.border = "0"; canvas.style = "position:absolute; top:0px; left:0px; z-index:1"; - let body = document.getElementsByTagName("body")[0]; - body.appendChild(canvas); + let canvasDiv = document.getElementById('canvasDiv'); + canvasDiv.appendChild(canvas); browserCanvas = document.getElementById('canvas'); diff --git a/index.html b/index.html index 0b656da61..4635a841c 100644 --- a/index.html +++ b/index.html @@ -20,5 +20,9 @@ "> + +
+
+ \ No newline at end of file