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.
26 lines
859 B
26 lines
859 B
function changeScolor() {
|
|
let colorList = document.getElementById("scolor");
|
|
let selectColorIndex = colorList.selectedIndex;
|
|
let futureColor =colorList.options[selectColorIndex].value;
|
|
|
|
document.getElementById("ltext").style.color = futureColor;
|
|
}
|
|
|
|
function changeSfont() {
|
|
let fontList = document.getElementById("sfont");
|
|
let selectfontIndex = fontList.selectedIndex;
|
|
let futurefont =fontList.options[selectfontIndex].value;
|
|
document.getElementById("ltext").style.fontFamily = futurefont;
|
|
}
|
|
|
|
function dynColor() {
|
|
let color = document.getElementById("tcolor").value;
|
|
console.log(color);
|
|
document.getElementById("ltext").style.color = color;
|
|
}
|
|
|
|
function bColor() {
|
|
let color = document.getElementById("bcolor").value;
|
|
console.log(color);
|
|
document.getElementById("ltext").style.backgroundColor = color;
|
|
}
|