Skip to content

Commit

Permalink
Update interface.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LaiYanKai authored Nov 9, 2022
1 parent 6236311 commit 555f137
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions UniformPlanners/scripts/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,7 @@ for (f of file_names) {
var script = document.createElement("script"); // create a script DOM node
script.src = 'scripts/planners/'.concat(f, '.js'); // set its src to the provided URL
document.body.appendChild(script);
console.log("Loaded", f);
// console.log("Loaded", f);
}

/*var h = Math.round(Math.random()*360);
Expand All @@ -2778,8 +2778,13 @@ document.body.style.background = 'hsl('.concat(h,',', s, '%,', l, '%)');
document.getElementById('ui_load_overlay').parentNode.removeChild(document.getElementById('ui_load_overlay'));

// select A*
this.ui.html.nav.options.algorithms.options.forEach(opt=>{
if(opt.value == 'A*')
opt.selected = true;
});
this.ui.graphic_handlers.change_planner_options();// just in case it is the first.
{
var tmp = this.ui.html.nav.options.algorithms;
for(var i = 0; i < tmp.options.length;i++) {
if(tmp.options[i].value == "astar" ) {
tmp.options[i].selected = true;
}
}
}
this.ui.graphic_handlers.change_planner_options(); // just in case
this.ui.graphic_handlers.update_planner(true);

0 comments on commit 555f137

Please sign in to comment.