-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
28 lines (24 loc) · 845 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import './style.css';
import javascriptLogo from './javascript.svg';
import { setupCounter } from './counter.js';
import flow from 'lodash/flow';
import split from 'lodash/fp/split';
export const confNumbers = flow(split(/[;,\s]+/))('e');
document.querySelector('#app').innerHTML = `
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">
<img src="${javascriptLogo}" class="logo vanilla" alt="JavaScript logo" />
</a>
<h1>Hello Vite!</h1>
<div class="card">
<button id="counter" type="button"></button>
</div>
<p class="read-the-docs">
Click on the Vite logo to learn more
</p>
</div>
`;
setupCounter(document.querySelector('#counter'));