Skip to content

Commit

Permalink
remove: old time table
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Nov 3, 2023
1 parent a4c06e4 commit 9e76136
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/index/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ function on_eew(data, type) {
document.getElementById("detection_location_1").innerHTML = "";
document.getElementById("detection_location_2").innerHTML = "";
}
const _distance = [];
for (let index = 0; index < 1002; index++) {
_distance[index] = _speed(data.depth, index);
}
const unit = (data.type == "eew-jma") ? "気象庁(JMA)" : (data.type == "eew-nied") ? "防災科学技術研究所" : (data.type == "eew-kma") ? "기상청(KMA)" : (data.type == "eew-scdzj") ? "四川省地震局" : (data.type == "eew-cwb") ? "交通部中央氣象署" : "TREM";
if (!TREM.EQ_list[data.id]) {
if (!skip) {
Expand All @@ -254,7 +250,6 @@ function on_eew(data, type) {
data,
eew : 0,
alert : false,
wave : _distance,
};
if (!eew_cache.includes(data.id + data.number)) {
eew_cache.push(data.id + data.number);
Expand All @@ -277,7 +272,6 @@ function on_eew(data, type) {
data.lon = TREM.EQ_list[data.id].data.lon;
}
TREM.EQ_list[data.id].data = data;
TREM.EQ_list[data.id].wave = _distance;
if (data.cancel) {
TREM.EQ_list[data.id].eew = 0;
TREM.EQ_list[data.id].data._time = Now().getTime() - 225_000;
Expand Down

0 comments on commit 9e76136

Please sign in to comment.