Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -604,8 +604,16 @@ async(c, o, b, p, d, n, m)=>{
|
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
605 |
|
606 |
var o_ = o.split(",");
|
607 |
-
o_.
|
608 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
var dome = [];
|
610 |
for (var j=0; j<o_.length; j++) {
|
611 |
o_[j] = parseInt(o_[j]);
|
|
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
605 |
|
606 |
var o_ = o.split(",");
|
607 |
+
if (!o_.indexOf(n)) {
|
608 |
+
o_.push(n);
|
609 |
+
}
|
610 |
+
var j=0;
|
611 |
+
while (j<o_.length) {
|
612 |
+
if (o_.indexOf(o_[j]) != o_.lastIndexOf(o_[j])) {
|
613 |
+
o_.splice(o_.lastIndexOf(o_[j]), 1);
|
614 |
+
}
|
615 |
+
j++;
|
616 |
+
}
|
617 |
var dome = [];
|
618 |
for (var j=0; j<o_.length; j++) {
|
619 |
o_[j] = parseInt(o_[j]);
|