08.10.2026 - changes Calc with isNan and title in Portfolio
This commit is contained in:
@@ -9,6 +9,12 @@ function calculate(){
|
||||
let operator = document.getElementById("calcOperator").value;
|
||||
let result = 0;
|
||||
|
||||
if(isNaN(numberOne) === true || isNaN(numberTwo) === true)
|
||||
{
|
||||
document.getElementById("calcResult").textContent = "Bitte zwei Zahlen eingeben.";
|
||||
return;
|
||||
}
|
||||
|
||||
if(operator === "+")
|
||||
{
|
||||
result = numberOne + numberTwo;
|
||||
|
||||
@@ -104,7 +104,7 @@ function showProjects(projects){
|
||||
tableRows += `<tr><td><a href="`+project.url+`" target="_blank" rel="noopener">`+project.name+`</a></td>`;
|
||||
tableRows += `<td>`+project.language+`</td>`;
|
||||
tableRows += `<td>`+project.created+`</td>`;
|
||||
tableRows += `<td>`+project.description+`</td></tr>`;
|
||||
tableRows += `<td title="`+project.description+`">`+project.description+`</td></tr>`;
|
||||
});
|
||||
|
||||
if(tableRows === "")
|
||||
|
||||
Reference in New Issue
Block a user