sbd-npm 1.1.89 → 1.1.90
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 +10 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -368,6 +368,16 @@ const Util = {
|
|
368
368
|
}
|
369
369
|
}
|
370
370
|
});
|
371
|
+
$(".d5_price_" + code).each(function () {
|
372
|
+
if (item["d5_price"]) {
|
373
|
+
$(this).html(Util.year_price_rate(item["price"], item["d5_price"]));
|
374
|
+
} else {
|
375
|
+
let d5_price = $(this).attr("data-val");
|
376
|
+
if (d5_price) {
|
377
|
+
$(this).html(Util.year_price_rate(item["price"], Util.to_float(d5_price)));
|
378
|
+
}
|
379
|
+
}
|
380
|
+
});
|
371
381
|
if (item["high_52week"]) {
|
372
382
|
$(".high_52week_" + code).each(function () {
|
373
383
|
$(this).html(Util.year_price_rate(item["price"], item["high_52week"]));
|