initial
This commit is contained in:
58
index.php
Executable file
58
index.php
Executable file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Calculator</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php $text = "Max Müller"; ?>
|
||||
|
||||
<div id="resultArea">
|
||||
0
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td onclick="clearAll()" class="red">CE</td>
|
||||
<td colspan="2" class="highlight"><?php echo $text ?></td>
|
||||
<td onclick="deleteLast()" class="highlight">DEL</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td onclick="appendOperation(7)">7</td>
|
||||
<td onclick="appendOperation(8)">8</td>
|
||||
<td onclick="appendOperation(9)">9</td>
|
||||
<td onclick="appendOperation(' / ')" class="highlight">/</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td onclick="appendOperation(4)">4</td>
|
||||
<td onclick="appendOperation(5)">5</td>
|
||||
<td onclick="appendOperation(6)">6</td>
|
||||
<td onclick="appendOperation(' * ')" class="highlight">*</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td onclick="appendOperation(1)">1</td>
|
||||
<td onclick="appendOperation(2)">2</td>
|
||||
<td onclick="appendOperation(3)">3</td>
|
||||
<td onclick="appendOperation(' + ')" class="highlight">+</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td onclick="appendOperation(0)">0</td>
|
||||
<td onclick="appendOperation('.')">,</td>
|
||||
<td onclick="calculateResult()" id="result">=</td>
|
||||
<td onclick="appendOperation(' - ')" class="highlight">-</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script src="/app.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user