Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/calculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Calculator</h1>
function solve() {
const num1 = parseFloat(document.getElementById('num1').value);
const num2 = parseFloat(document.getElementById('num2').value);
const result = num1 * num2;
const result = num1 + num2;
document.getElementById('result').textContent = 'Result: ' + result;
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Welcome</title>
</head>
<body>
<h1>Welcome to COMP3900</h1>
<h1>Welcome to COMP3900/COMP9900</h1>
<button onclick="window.location.href='/calculator'">Go to Calculator</button>
</body>
</html>