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
| const loadData = () => { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => { | |
| let productArr = []; | |
| for (let index = 0; index < 50; index++) { | |
| productArr.push({ | |
| name: faker.commerce.productName(), | |
| category: faker.commerce.department(), | |
| price: faker.commerce.price(0.1, 5.0, 2, '€'), | |
| }); |
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
| const toggleMachine = Machine({ | |
| id: 'toggle', | |
| initial: 'inactive', | |
| states: { | |
| inactive: { | |
| on: { TOGGLE: 'active' }, | |
| }, | |
| active: { | |
| on: { TOGGLE: 'inactive' }, | |
| }, |
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
| {"lastUpload":"2018-11-09T22:47:32.421Z","extensionVersion":"v3.2.0"} |
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
| @import "initial-variables" | |
| =arrow($color) | |
| border: 1px solid $color | |
| border-right: 0 | |
| border-top: 0 | |
| content: " " | |
| display: block | |
| height: 0.5em | |
| pointer-events: none |
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
| 'use strict'; | |
| document.addEventListener('DOMContentLoaded', function () { | |
| // Modals | |
| var rootEl = document.documentElement; | |
| var $modals = getAll('.modal'); | |
| var $modalButtons = getAll('.modal-button'); | |
| var $modalCloses = getAll('.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button'); |