Go awat
Fola Adewale | 127 Reads
Home / Posts / Go awat
Fola Adewale
Chief Radiology Officer, LUTH
Level 3 User
var unset = 0; function toggle() { var x = document.getElementById('mobile-nav'); var y = document.getElementById('togg'); if (x.className === 'mobile-nav') { x.className += ' responsive'; y.className = 'fa fa-bars'; } else { x.className = 'mobile-nav'; y.className = 'fa fa-close'; } } function like () { if (unset == 0) { var x = document.getElementById('like'); var y = document.getElementById('likes'); var z = y.innerHTML; z ++; x.className = 'fa fa-heart'; y.innerHTML = z; unset = 1; } else { } } function postBlog() { var x = document.getElementById('ctype').innerHTML; var y = document.getElementById('creal'); y.value = x; validateForm(); // alert(y.value); }Post Content