client/app/create-course.js
/**
 *
 * Change the placeholder color of the input to show the user where should create the new course
 *
 */
Change the placeholder color of the input to show the user where should create the new course
Change the placeholder color of the input to show the user where should create the new course
function changePlaceholderColor() {
	let isRed = false;
	function setClass() {
		isRed = !isRed;
		if (isRed) {
			inputText.classList.remove("green");
			inputText.classList.add("label");
		} else {
			inputText.classList.remove("label");
			inputText.classList.add("green");
		}
	}
	setInterval(setClass, 700);
}
function changePlaceholderColor ( ) { let isRed = false ; function setClass ( ) { isRed = ! isRed ; if ( isRed ) { inputText . classList . remove ( "green" ) ; inputText . classList . add ( "label" ) ; } else { inputText . classList . remove ( "label" ) ; inputText . classList . add ( "green" ) ; } } setInterval ( setClass , 700 ) ; }
Change the placeholder color of the input to show the user where should create the new course
Change the placeholder color of the input to show the user where should create the new course