repl.it
@profhall/

Vanilla JS

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
		<script src="https://unpkg.com/[email protected]/dist/redux.min.js"></script>
		<script defer src="script.js"></script>
  </head>
  <body>
    
		<div>
			<h2>Hello <span id="greeting"> </span></h2>
			<p>
				Clicked: <span id="value"></span> times
			</p>
			<div>
				<button id="increment">+1</button>
				<button id="decrement">-1</button>
				<button id="incrementIfOdd">Increment if odd</button>
				<button id="increaseRandom">Raise by random</button>
				<button id="square">Square Count</button>
				<button id="clear">Clear Count</button>
			</div>

			<input id="numberInput" type="text">
			<button id="increase">Increase</button>
		</div>

  </body>
</html>
result
console
?