sbd-npm 1.1.2 → 1.1.3
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 +6 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -284,6 +284,12 @@ let Util = {
|
|
284
284
|
}
|
285
285
|
$(this).html(price);
|
286
286
|
});
|
287
|
+
$(".year_price_" + code).each(function () {
|
288
|
+
let year_price = $(this).attr("data-val");
|
289
|
+
if (year_price) {
|
290
|
+
$(this).html(Util.year_price_rate(item["price"], Util.to_float(year_price)));
|
291
|
+
}
|
292
|
+
});
|
287
293
|
}
|
288
294
|
if (item["high"]) {
|
289
295
|
let high_price = Util.digit_compare_trend(item["high"], item["previous_price"]);
|