-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (109 loc) · 4.33 KB
/
index.html
File metadata and controls
121 lines (109 loc) · 4.33 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Mouse Press Counter - Demo</title>
<link rel="stylesheet" href="dist/bootstrap-reboot.min.css">
<link rel="stylesheet" href="dist/bootstrap-grid.min.css">
<link rel="stylesheet" href="dist/style.min.css">
</head>
<body>
<div class="container">
<h1 class="text-center plugin__title">Mouse Press Counter - Demo</h1>
<div class="example-wrapper">
<div class="example wrap-count-1">
<p class="example__title">Set a custom classes and set min/max value:</p>
<div class="row">
<div class="col-md-6">
<pre class="border border-secondary rounded example__code">
$('.wrap-count-1').mousePressCounter({
inc: '.number-inc',
dec: '.number-dec',
counter: '.number-input',
min: 5,
max: 100
});</pre>
</div>
<div class="col-md-6 d-flex align-items-center justify-content-center">
<div class="inputs-wraper">
<button class="number-dec">–</button>
<input type="text" class="number-input">
<button class="number-inc">+</button>
</div>
</div>
</div>
</div>
<div class="example wrap-count-2">
<p class="example__title">Increment the number with a linear speed:</p>
<div class="row">
<div class="col-md-6">
<pre class="border border-secondary rounded example__code">
$('.wrap-count-2').mousePressCounter({
timeStep: 0
});</pre>
</div>
<div class="col-md-6 d-flex align-items-center justify-content-center">
<div class="inputs-wraper">
<button class="counter-dec">–</button>
<input type="text" class="counter-input">
<button class="counter-inc">+</button>
</div>
</div>
</div>
</div>
<div class="example wrap-count-3">
<p class="example__title">Increasing speed every 5 iteration on 10ms:</p>
<div class="row">
<div class="col-md-6">
<pre class="border border-secondary rounded example__code">
$('.wrap-count-3').mousePressCounter({
timeStep: 10
});</pre>
</div>
<div class="col-md-6 d-flex align-items-center justify-content-center">
<div class="inputs-wraper">
<button class="counter-dec">–</button>
<input type="text" class="counter-input">
<button class="counter-inc">+</button>
</div>
</div>
</div>
</div>
<div class="example wrap-count-4">
<div class="example__title">Default counter:</div>
<div class="row">
<div class="col-md-6">
<pre class="border border-secondary rounded example__code">
$('.wrap-count-4').mousePressCounter();</pre>
</div>
<div class="col-md-6 d-flex align-items-center justify-content-center">
<div class="inputs-wraper">
<button class="counter-dec">–</button>
<input type="text" class="counter-input">
<button class="counter-inc">+</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="dist/jquery.2.2.4.min.js"></script>
<script src="dist/mousePressCounter.min.js"></script>
<script>
$('.wrap-count-1').mousePressCounter({
inc: '.number-inc',
dec: '.number-dec',
counter: '.number-input',
min: 5,
max: 100
});
$('.wrap-count-2').mousePressCounter({
timeStep: 0
});
$('.wrap-count-3').mousePressCounter({
timeStep: 10
});
$('.wrap-count-4').mousePressCounter();
</script>
</body>
</html>