Skip to content

Commit

Permalink
Change div for a-scene in order to add identities easily
Browse files Browse the repository at this point in the history
  • Loading branch information
dlumbrer authored and jgbarah committed Jan 27, 2019
1 parent c579e04 commit 70de605
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/ar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@

<div class="container-fluid" style="height:100%">
<div class="row" style="height:100%">
<div class="col-md-12" id="AframeDCShow" style="height:100%"></div>
<div class="col-md-12" id="AframeDCShow" style="height:100%">
<a-scene id="aframeScene"></a-scene>
</div>
</div>
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/ar/js/aframedc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2701,7 +2701,7 @@ function aframedc() {
}
var dashBoard = function (dashEntity) {
//var dashEntity = document.createElement("a-entity");
dashEntity.id = "aframedc";
//dashEntity.id = "aframedc";
dashEntity.setAttribute('position', '0 0.5 0');
//scene.appendChild(dashEntity);
var odashboard = dashEntity;
Expand Down Expand Up @@ -2799,7 +2799,7 @@ function aframedc() {
return parent;
}
aframedc.dashboard = function (containerdiv) {
var scene = document.createElement("a-scene");
var scene = document.getElementById("aframeScene");
scene.setAttribute('arjs', '');
scene.setAttribute('embedded', '');
scene.setAttribute('antialias', "true");
Expand All @@ -2817,7 +2817,7 @@ function aframedc() {
box.setAttribute('position', '0 0.5 0');
box.setAttribute('material', 'color: red;');
//scene.appendChild(box);
containerdiv.appendChild(scene);
//containerdiv.appendChild(scene);
return dashBoard(scene);
}
var baseMixin = {
Expand Down

0 comments on commit 70de605

Please sign in to comment.