diff --git a/.DS_Store b/.DS_Store index 6f49f65..ee27955 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Lebenslauf.pdf b/Lebenslauf.pdf deleted file mode 100644 index 7a8cc31..0000000 Binary files a/Lebenslauf.pdf and /dev/null differ diff --git a/calculator.js b/calculator.js index cc7c63b..55422de 100644 --- a/calculator.js +++ b/calculator.js @@ -21,31 +21,19 @@ function appendToDisplay(input){ if(operator == '+'){ operatorPlus.style.backgroundColor = "#ff9f0a"; operatorPlus.style.color = "white"; - /*operatorPlus.addEventListener('mouseover', function(e) { - e.target.style.backgroundColor = "#feb84e";}); - operatorPlus.addEventListener('mouseleave', function(e) { - e.target.style.backgroundColor = "#ff9f0a";});*/ + }else if(operator == '-'){ operatorMinus.style.backgroundColor = "#ff9f0a"; operatorMinus.style.color = "white"; - /*operatorMinus.addEventListener('mouseover', function(e) { - e.target.style.backgroundColor = "#feb84e";}); - operatorMinus.addEventListener('mouseleave', function(e) { - e.target.style.backgroundColor = "#ff9f0a";});*/ + }else if(operator == '*'){ operatorMultiplication.style.backgroundColor = "#ff9f0a"; operatorMultiplication.style.color = "white"; - /*operatorMultiplication.addEventListener('mouseover', function(e) { - e.target.style.backgroundColor = "#feb84e";}); - operatorMultiplication.addEventListener('mouseleave', function(e) { - e.target.style.backgroundColor = "#ff9f0a";});*/ + }else if(operator == '/'){ operatorDivision.style.backgroundColor = "#ff9f0a"; operatorDivision.style.color = "white"; - /*operatorDivision.addEventListener('mouseover', function(e) { - e.target.style.backgroundColor = "#feb84e";}); - operatorDivision.addEventListener('mouseleave', function(e) { - e.target.style.backgroundColor = "#ff9f0a";});*/ + } displayMem = display.value; @@ -53,7 +41,7 @@ function appendToDisplay(input){ operatorSelected = false; } - + operatorSelected = false; display.value += input; equalsPerformed = false; fresh=false;