|
@@ -1,6 +1,7 @@
|
|
import './styles/counter.css'
|
|
import './styles/counter.css'
|
|
import { Countdown } from './counter.js'
|
|
import { Countdown } from './counter.js'
|
|
import { fetchObject } from './fetch.js';
|
|
import { fetchObject } from './fetch.js';
|
|
|
|
+import { entrypoint } from './entrypoint.local.js';
|
|
|
|
|
|
// select elements
|
|
// select elements
|
|
const main = document.querySelector('#app');
|
|
const main = document.querySelector('#app');
|
|
@@ -13,7 +14,7 @@ main.appendChild(heading);
|
|
main.appendChild(app);
|
|
main.appendChild(app);
|
|
main.appendChild(message);
|
|
main.appendChild(message);
|
|
|
|
|
|
-const api = new fetchObject("http://localhost:8000/counter", main.dataset.id);
|
|
|
|
|
|
+const api = new fetchObject(entrypoint, main.dataset.id);
|
|
constcheckCounter();
|
|
constcheckCounter();
|
|
|
|
|
|
// Get the new year
|
|
// Get the new year
|