mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 19:41:25 -08:00
优化提示信息
This commit is contained in:
1 parent
06fa463bdd
commit
56eba5626e
2 files changed
+8
-5
No files matched your search
@@ -2726,14 +2726,16 @@
|
|||||||
'Gif time is too short': 'Gif 时间太短',
|
'Gif time is too short': 'Gif 时间太短',
|
||||||
'Start creating gif, please wait': '开始创建 gif,请稍等',
|
'Start creating gif, please wait': '开始创建 gif,请稍等',
|
||||||
'Create gif successfully': '创建 gif 成功',
|
'Create gif successfully': '创建 gif 成功',
|
||||||
'There is another gif in the processing': '正有另一个 gif 在创建中'
|
'There is another gif in the processing': '正有另一个 gif 在创建中',
|
||||||
|
'Release the mouse to start': '放开鼠标即可开始'
|
||||||
},
|
},
|
||||||
'zh-tw': {
|
'zh-tw': {
|
||||||
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
|
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
|
||||||
'Gif time is too short': 'Gif 時間太短',
|
'Gif time is too short': 'Gif 時間太短',
|
||||||
'Start creating gif, please wait': '開始創建 gif,請稍等',
|
'Start creating gif, please wait': '開始創建 gif,請稍等',
|
||||||
'Create gif successfully': '創建 gif 成功',
|
'Create gif successfully': '創建 gif 成功',
|
||||||
'There is another gif in the processing': '正有另一個 gif 在創建中'
|
'There is another gif in the processing': '正有另一個 gif 在創建中',
|
||||||
|
'Release the mouse to start': '放開鼠標即可開始'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -2817,7 +2819,7 @@
|
|||||||
$progress.style.width = "".concat(width + 1, "%");
|
$progress.style.width = "".concat(width + 1, "%");
|
||||||
loop();
|
loop();
|
||||||
} else {
|
} else {
|
||||||
createGif();
|
notice.show(i18n.get('Release the mouse to start'));
|
||||||
}
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ function i18nMix(i18n) {
|
|||||||
'Start creating gif, please wait': '开始创建 gif,请稍等',
|
'Start creating gif, please wait': '开始创建 gif,请稍等',
|
||||||
'Create gif successfully': '创建 gif 成功',
|
'Create gif successfully': '创建 gif 成功',
|
||||||
'There is another gif in the processing': '正有另一个 gif 在创建中',
|
'There is another gif in the processing': '正有另一个 gif 在创建中',
|
||||||
|
'Release the mouse to start': '放开鼠标即可开始',
|
||||||
},
|
},
|
||||||
'zh-tw': {
|
'zh-tw': {
|
||||||
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
|
'Long press, gif length is between 1 second and 5 seconds': '長按,gif 長度為 1 ~ 5 秒',
|
||||||
@@ -15,6 +16,7 @@ function i18nMix(i18n) {
|
|||||||
'Start creating gif, please wait': '開始創建 gif,請稍等',
|
'Start creating gif, please wait': '開始創建 gif,請稍等',
|
||||||
'Create gif successfully': '創建 gif 成功',
|
'Create gif successfully': '創建 gif 成功',
|
||||||
'There is another gif in the processing': '正有另一個 gif 在創建中',
|
'There is another gif in the processing': '正有另一個 gif 在創建中',
|
||||||
|
'Release the mouse to start': '放開鼠標即可開始',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -91,7 +93,6 @@ function artplayerPluginGif(art) {
|
|||||||
cleanTimer();
|
cleanTimer();
|
||||||
pressStartTime = new Date();
|
pressStartTime = new Date();
|
||||||
notice.show(i18n.get('Long press, gif length is between 1 second and 5 seconds'));
|
notice.show(i18n.get('Long press, gif length is between 1 second and 5 seconds'));
|
||||||
|
|
||||||
(function loop() {
|
(function loop() {
|
||||||
progressTimer = setTimeout(() => {
|
progressTimer = setTimeout(() => {
|
||||||
const width = parseInt($progress.style.width, 10);
|
const width = parseInt($progress.style.width, 10);
|
||||||
@@ -99,7 +100,7 @@ function artplayerPluginGif(art) {
|
|||||||
$progress.style.width = `${width + 1}%`;
|
$progress.style.width = `${width + 1}%`;
|
||||||
loop();
|
loop();
|
||||||
} else {
|
} else {
|
||||||
createGif();
|
notice.show(i18n.get('Release the mouse to start'));
|
||||||
}
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in new issue
Block a user