This repository was archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcashmachine.html
46 lines (46 loc) · 2.11 KB
/
cashmachine.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Duncan’s Cash Machine</title>
<link rel="stylesheet" type="text/css" href="../main.css" />
<link rel="icon" href="https://www.duncanritchie.co.uk/favicon.ico" type="image/x-icon" />
<link rel="icon" href="https://www.duncanritchie.co.uk/favicon-96x96.png" type="image/png" />
</head>
<body>
<main>
<h1>Duncan’s Cash Machine</h1>
<p class="explanation">This is a simple simulation of a cash machine, demonstrating browser alerts, if/else statements, and simple manipulation of JavaScript variables and HTML text.<br />
Your starting PIN is 1234 and your starting balance is £1000.<br />
This is a very generous cash machine because you can add to your balance by completing a quiz about JavaScript and Git.
Answers are case-insensitive, but otherwise yours have to match mine exactly.<br />
Click a button to withdraw cash, view your balance, play the quiz, or change your PIN.</p>
<div id="cashMachine">
<button class="cash-machine-button" onclick="launchPrompt()">Withdraw cash / View balance / Play quiz</button><button class="cash-machine-button" onclick="changePinPrompt()">Change PIN</button>
<p id="Message"></p>
</div>
</main>
<footer>
<ul>
<li>
<a href="https://www.duncanritchie.co.uk" title="Duncan Ritchie’s website">
Made by Duncan Ritchie
</a>
</li>
<li>
<a href="../" title="Duncan Ritchie’s game page">
Games homepage
</a>
</li>
<li>
<a href="https://github.com/DuncanRitchie/jsChallenges/tree/main/cashmachine" title="Code on GitHub">
See the code
</a>
</li>
</ul>
</footer>
<script src="cashmachine.js"></script>
</body>
</html>