Skip to content

Commit 77fa6a8

Browse files
committed
Bumped Three.js and 3D Force Graph versions
1 parent ca032a4 commit 77fa6a8

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

index.html

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
<script type="importmap">
6969
{ "imports":
7070
{
71-
"three": "https://cdn.jsdelivr.net/npm/three@0.162.0/build/three.module.js/+esm",
72-
"three/examples/": "https://cdn.jsdelivr.net/npm/three@0.162.0/examples/",
73-
"forcegraph": "https://cdn.jsdelivr.net/npm/3d-force-graph@1.73.3/+esm"
71+
"three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js/+esm",
72+
"three/examples/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/",
73+
"forcegraph": "https://cdn.jsdelivr.net/npm/3d-force-graph@1.79.0/+esm"
7474
}
7575
}
7676
</script>
@@ -505,52 +505,52 @@
505505
}
506506
});
507507

508-
// Play next step
509-
$("#playnext").on("click", function() {
510-
try {
511-
if ( !sim.tick() ) {
512-
$("#playnext").addClass("button-disabled");
513-
$("#finalreheat").click();
514-
}
515-
$("#playprevious").removeClass("button-disabled");
516-
sim.stop();
517-
resume();
518-
}
519-
catch(e) {
520-
if (e instanceof RangeError || e instanceof TypeError) {
521-
console.log(e.stack);
522-
alert(e);
523-
} else {
524-
console.log(e.stack);
525-
alert("Unknown error, sorry for this.");
526-
}
527-
}
528-
});
529-
530-
// Play previous step
531-
$("#playprevious").on("click", function() {
532-
try {
533-
if ( !sim.tick(1, true) ) {
534-
$("#playprevious").addClass("button-disabled");
535-
}
536-
$("#playnext").removeClass("button-disabled");
537-
$("#playstop").removeClass("button-disabled").css("background-color","black");
538-
$("#play, #final").show();
539-
$("#stop, #reheat").hide();
540-
sim.stop();
541-
resume();
542-
}
543-
catch(e) {
544-
if (e instanceof RangeError || e instanceof TypeError) {
545-
console.log(e.stack);
546-
alert(e);
547-
} else {
548-
console.log(e.stack);
549-
alert("Unknown error, sorry for this.");
550-
}
551-
}
552-
});
553-
508+
// Play next step
509+
$("#playnext").on("click", function() {
510+
try {
511+
if ( !sim.tick() ) {
512+
$("#playnext").addClass("button-disabled");
513+
$("#finalreheat").click();
514+
}
515+
$("#playprevious").removeClass("button-disabled");
516+
sim.stop();
517+
resume();
518+
}
519+
catch(e) {
520+
if (e instanceof RangeError || e instanceof TypeError) {
521+
console.log(e.stack);
522+
alert(e);
523+
} else {
524+
console.log(e.stack);
525+
alert("Unknown error, sorry for this.");
526+
}
527+
}
528+
});
529+
530+
// Play previous step
531+
$("#playprevious").on("click", function() {
532+
try {
533+
if ( !sim.tick(1, true) ) {
534+
$("#playprevious").addClass("button-disabled");
535+
}
536+
$("#playnext").removeClass("button-disabled");
537+
$("#playstop").removeClass("button-disabled").css("background-color","black");
538+
$("#play, #final").show();
539+
$("#stop, #reheat").hide();
540+
sim.stop();
541+
resume();
542+
}
543+
catch(e) {
544+
if (e instanceof RangeError || e instanceof TypeError) {
545+
console.log(e.stack);
546+
alert(e);
547+
} else {
548+
console.log(e.stack);
549+
alert("Unknown error, sorry for this.");
550+
}
551+
}
552+
});
553+
554554
// Final state
555555
$("#finalreheat").on("click", function() {
556556
try {
@@ -764,12 +764,12 @@
764764
<svg id="play" viewBox="4 0 24 16"><polygon fill="white" points="14,3 14,11 20,7"/></svg>
765765
<svg id="stop" viewBox="4 0 24 14"><polygon fill="white" points="12,3 15,3 15,11 12,11"/><polygon fill="white" points="17,3 20,3 20,11 17,11"/></svg>
766766
</span>
767-
<span title="Previous" id="playprevious" class="button" style="width:24px;">
768-
<svg id="previous" viewBox="4 0 24 16"><polygon fill="white" points="10,7 15,11 15,3"></polygon><polygon fill="white" points="18,3 20,3 20,11 18,11"></polygon></svg>
769-
</span>
770-
<span title="Next" id="playnext" class="button" style="width:26px;">
771-
<svg id="next" viewBox="4 0 24 16"><polygon fill="white" points="17,3 17,11 22,7"></polygon><polygon fill="white" points="12,3 14,3 14,11 12,11"></polygon></svg>
772-
</span>
767+
<span title="Previous" id="playprevious" class="button" style="width:24px;">
768+
<svg id="previous" viewBox="4 0 24 16"><polygon fill="white" points="10,7 15,11 15,3"></polygon><polygon fill="white" points="18,3 20,3 20,11 18,11"></polygon></svg>
769+
</span>
770+
<span title="Next" id="playnext" class="button" style="width:26px;">
771+
<svg id="next" viewBox="4 0 24 16"><polygon fill="white" points="17,3 17,11 22,7"></polygon><polygon fill="white" points="12,3 14,3 14,11 12,11"></polygon></svg>
772+
</span>
773773
<span title="End/reheat" id="finalreheat" class="button button-disabled" style="width:24px;">
774774
<svg id="reheat" viewBox="4 0 24 14"><path fill="white" d="M16.1 10.2c-2 0-3-1-3.1-3S14 4 15.7 3.9c1.8-.1 2.1 1.1 2.1 1.1L16.7 6.3h4V2.5l-1.3 1C18.4 2.4 17.5 2 16 2C13 2 11 4 11 7S12.9 11.8 16 12c3.1-.3 4.2-2 4.5-4h-2.1c-.3 1.2-1 2-2.3 2.2z"/></svg>
775775
<svg id="final" viewBox="4 0 24 14"><polygon fill="white" points="12,3 12,11 18,7"/><polygon fill="white" points="18,3 20,3 20,11 18,11" /></svg>

0 commit comments

Comments
 (0)