public/js/simple.js
/**
 * Created by Raphael Karanja on 02/08/2018.
 */
Created by Raphael Karanja on 02/08/2018.
Created by Raphael Karanja on 02 / 08 / 2018 .
function cyCloseAlert(e) {
    var type = e.type,
        button = e.target,
        alert_attribute = button.getAttribute('data-target'),
        alert = document.querySelector('[role=' + alert_attribute + ']');
    if (alert != null) {
        alert.setAttribute('aria-hidden', true);
        setTimeout(function () {
            alert.style.display = 'none';
        }, 500);
    }
}
function cyCloseAlert ( e ) { var type = e . type , button = e . target , alert_attribute = button . getAttribute ( 'data-target' ) , alert = document . querySelector ( '[role=' + alert_attribute + ']' ) ; if ( alert != null ) { alert . setAttribute ( 'aria-hidden' , true ) ; setTimeout ( function ( ) { alert . style . display = 'none' ; } , 500 ) ; } }
Created by Raphael Karanja on 02/08/2018.
Created by Raphael Karanja on 02 / 08 / 2018 .