mirror of https://github.com/Facinorous-420/dick
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
428 B
18 lines
428 B
// DOM Ready Function
|
|
function ready(fn) {
|
|
if (document.readyState != 'loading') {
|
|
fn();
|
|
} else {
|
|
document.addEventListener('DOMContentLoaded', fn);
|
|
}
|
|
}
|
|
|
|
// DOM Ready Called
|
|
ready(function () {
|
|
const colorPicker = document.querySelector('.custom-color-picker-border');
|
|
|
|
colorPicker.addEventListener('input',()=>{
|
|
colorPicker.style.setProperty('--color', colorPicker.value)
|
|
})
|
|
|
|
}); |