refactor(javascript,assets): rename js directory to javascript

This commit is contained in:
Guz
2024-10-22 16:55:11 -03:00
parent 390774600f
commit 1034cc4906
4 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
import * as hello from './hello.js';
hello.hello();

View File

@@ -0,0 +1,6 @@
/**
* Says hello!
*/
export function hello() {
console.log('hello world');
}

View File

@@ -0,0 +1,7 @@
document.querySelector('#accent-color-hue').addEventListener('change', (e) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const hue = /** @type {number} */ (e.target?.value);
document.querySelector('body')
.setAttribute('style', `--user-theme-accent-hue:${String(hue)};`);
});