(() => {
	let btnCode = document.getElementById("btn-code");
	btnCode.addEventListener("change", () => {
		let lst_ele = ['p', 'img', 'ol.lst', 'ul.lst'];
		if (btnCode.checked) {
			lst_ele.forEach(selector => {
				document.querySelectorAll(selector).forEach(element => {
					element.style.display = 'none';
				});
			});
		} else {
			lst_ele.forEach(selector => {
				document.querySelectorAll(selector).forEach(element => {
					if (element.tagName == 'IMG'){
						element.style.display = 'inline'
					}else{
						element.style.display = 'block';
					}
					
				});
			});
		}
	});
})();
