1class ScriptDetailShipmentTime extends Script { 2 constructor(params) { 3 super(params) 4 this.$unit = document.getElementById(`${this.attrId}`) 5 this.$shipmentTime = this.$unit.querySelector('.unit-detail-shipment-time') 6 this.$shipmentTimeNum = this.$unit.querySelector('.unit-detail-shipment-time__num') 7 } 8 9 init() { } 10 11 setShowShipmentTime() { 12 const detail = window.app.info.productDetail 13 if (detail.config.display_delivery_time) { 14 this.$shipmentTime.classList.remove('d-none'); 15 this.$shipmentTimeNum.innerHTML = detail.config.order_delivery_time 16 } 17 } 18 19 render() { 20 this.setShowShipmentTime() 21 } 22}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.