22 lines
		
	
	
		
			458 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			458 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
function o(input) {
 | 
						|
    var o;
 | 
						|
    if (typeof input === "string")
 | 
						|
        o = document.getElementById(input);
 | 
						|
    else if (typeof input === "object")
 | 
						|
        o = input;
 | 
						|
    return o;
 | 
						|
}
 | 
						|
 | 
						|
// megjelenítés / eltüntetés
 | 
						|
function show(obj) {
 | 
						|
    o(obj).setAttribute("shown", "true");
 | 
						|
}
 | 
						|
 | 
						|
function hide(obj) {
 | 
						|
    o(obj).setAttribute("shown", "false");
 | 
						|
}
 | 
						|
 | 
						|
function toggle_show(obj) {
 | 
						|
    o(obj).setAttribute("shown", o(obj).getAttribute("shown") === "false");
 | 
						|
}
 |