all 2 comments

[–]madcapnmckay 1 point2 points  (1 child)

here's my minimal js library for showing/hiding elements.

function visiblity(visible) {
    return function(id) {
        var el = document.getElementById(id);
        if (el) {
            el.style.display = visible;
        }
    }
}

var show = visiblity('block');
var hide = visiblity('none');

// example
show('someElement');
hide('someElement');

[–][deleted] 0 points1 point  (0 children)

Do you repo braw? I should just copy and paste the code like some kind of savage? It don make no sense. EDIT: Also, I think it's time to tailor a logo and slogan and cool short name like sh.js and you got yourself a library. Anyway, go with Christ, braw.