This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "additionalFees": [ | |
| {% for fee in order.additionalFees %} | |
| {% if forloop.first != true %},{% endif %} | |
| { | |
| "id": {{ fee.id | json }}, | |
| "name": {{ fee. name | json }}, | |
| "price": { | |
| "presentmentMoney": { | |
| "amount": {{ fee.price.presentmentMoney.amount | json }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Return milliseconds from a count of day. | |
| function getMsFromDay(day) { | |
| return day * 86400000; | |
| } | |
| // Setup | |
| var relativeDateSlider = document.getElementById('slider-relative-date'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new class Accordions { | |
| constructor() { | |
| this.$wrapper; | |
| this.$trigger; | |
| this.$content; | |
| this.init(); | |
| } | |
| init() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new class Modals { | |
| constructor() { | |
| this.init(); | |
| this.addListenersOpen(); | |
| this.addListenersClose(); | |
| this.addListenerHash(); | |
| } | |
| init() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function formatDate(date) { | |
| let year, month, day; | |
| let yearIntl = IntlTime.formatToParts(date.getYear() - 70, 'year'); | |
| let monthIntl = IntlTime.formatToParts(date.getMonth(), 'month'); | |
| let dayIntl = IntlTime.formatToParts(date.getDate(), 'day'); | |
| year = date.getYear() - 70 ? (yearIntl[1] ? yearIntl[1].value + yearIntl[2].value + ',' : yearIntl[0].value + ',') : ''; | |
| month = +date.getMonth() ? (monthIntl[1] ? monthIntl[1].value + monthIntl[2].value + ',' : monthIntl[0].value + ',') : ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new class Tabs { | |
| constructor() { | |
| this.$wrapper; | |
| this.$triggers; | |
| this.$body; | |
| this.init(); | |
| } | |
| init() { |