-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
54 lines (44 loc) · 988 Bytes
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200italic,400,600,600italic,700">
<style>
* {
font-family: 'Source Sans Pro', sans-serif;
}
body {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
button {
background: blue;
border: 0;
padding: 10px;
border-radius: 5px;
color: white;
font-size: 18px;
cursor: pointer;
}
</style>
</head>
<body>
<div>
<button>Button #1</button>
<button>Button #2</button>
<button>Button #3</button>
</div>
<script src="dist/probaclick.umd.js"></script>
<script>
const instance = ProbaClick(document.querySelectorAll('button'), {
delay: 1000,
max: 1,
callback: function (element) {
element.style.background = 'red';
}
});
</script>
</body>
</html>