| 1 | // Preload images |
| 2 | const preloadFonts = id => { |
| 3 | return new Promise((resolve) => { |
| 4 | WebFont.load({ |
| 5 | typekit: { |
| 6 | id: id |
| 7 | }, |
| 8 | active: resolve |
| 9 | }); |
| 10 | }); |
| 11 | }; |
| 12 | |
| 13 | const randomNumber = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; |
| 14 |