sbd-npm 1.2.77 → 1.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +2 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* 通用工具函数
|
3
3
|
* Theme https://colorlib.com/polygon/gentelella/index.html
|
4
|
+
* Font Awesome Icons https://fontawesome.com/v4/icons/
|
4
5
|
* [20 个杀手级 JavaScript 单行代码](https://segmentfault.com/a/1190000040721650)
|
5
6
|
*/
|
6
7
|
|
@@ -1259,6 +1260,7 @@ const Util = {
|
|
1259
1260
|
" 52周最高:" + Util.digit_compare_trend1(j["exchange_rate"], j["week52high"]) +
|
1260
1261
|
" 52周最低:" + Util.digit_compare_trend1(j["exchange_rate"], j["week52low"]);
|
1261
1262
|
let title = j["name"] !== currency ? (j["name"] + "(" + currency.toUpperCase() + ")") : j["name"];
|
1263
|
+
title = '<i class="fa fa-' + currency + '"></i> ' + title;
|
1262
1264
|
title = Util.pack_html_link("https://cn.investing.com/currencies/" + currency + "-cny", title);
|
1263
1265
|
$("#currency_modal_title").html(title + " " + currency_modal_summary);
|
1264
1266
|
Util.hide_tips();
|