Move embedded scripts to script.js

This commit is contained in:
2015-06-28 14:11:25 +02:00
parent 38dac50836
commit 85de4516f4
4 changed files with 29 additions and 2 deletions

26
script.js Normal file
View File

@@ -0,0 +1,26 @@
function GetElement(element){
if(typeof element == "string"){
element=document.getElementById(element);
}
return element;
}
function Element_SetVisibility(element,visible){
element=GetElement(element);
if(visible){
element.style.display="none";
}else{
element.style.display=""
}
}
function Element_ToggleVisibility(element){
element=GetElement(element);
if(element.style.display=="none"){
element.style.display="";
}else{
element.style.display="none"
}
}