Skip to content

Commit 4456e81

Browse files
committed
Fix incorrect type casting in some projects.
1 parent 289162f commit 4456e81

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var globalData = {
22

33
is_ES6: true,
44

5-
modalbox_size: Math.round($(window).width() - 8) + "px",
5+
modalbox_size: `${Math.round($(window).width() - 8)}px`,
66

77
starting_width: $(document).width()
88

online/harmonic-waves.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ <h2>Notes:</h2>
448448

449449
var wavesSimulationData = {};
450450

451-
function setHTMLValueFormRange(val, id, unit) { return $('#' + id).html(val + unit); }
451+
function setHTMLValueFormRange(val, id, unit) { return $(`#${id}`).html(`${val}${unit}`); }
452452

453453
function editDataValue(AOne, kOne, wOne, phiOne, sgnOne, ATwo, kTwo, wTwo, phiTwo, sgnTwo) {
454454

online/meteorites-map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450

451451
$("#modalbox-notes").css('left', 'unset');
452452

453-
$("#modalbox-notes").css('width', Math.round($(window).width() - 8) + "px");
453+
$("#modalbox-notes").css('width', `${Math.round($(window).width() - 8)}px`);
454454

455455
}
456456

0 commit comments

Comments
 (0)