-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
79 lines (79 loc) · 2.82 KB
/
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
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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>jQuery Particules Burst</title>
<link rel="stylesheet" href="lib/jquery-particles-burst.css">
<link rel="stylesheet" href="vendors/bootstrap.min.css"/>
<style>
body {
color: #bbb;
background-color: #444;
font-family: "Century Gothic", Arial, sans-serif;
}
.container {
margin-top: 160px;
}
h1 {
margin-bottom: 40px;
}
</style>
</head>
<body>
<div class="container">
<h1>jQuery Particules Burst</h1>
<div class="row">
<form class="form-horizontal col-sm-offset-4 col-sm-4">
<div class="form-group">
<label class="control-label col-xs-6" for="part_nb">Particules</label>
<div class="col-xs-6">
<input class="form-control" id="part_nb" type="number" value="60" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-6" for="partoffset">Offset</label>
<div class="col-xs-6">
<input class="form-control" id="partoffset" type="number" value="150" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-6" for="duration">Duration</label>
<div class="col-xs-6">
<input class="form-control" id="duration" type="number" value="1000" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-6" for="frequency">Frequency</label>
<div class="col-xs-6">
<input class="form-control" id="frequency" type="number" value="100" />
</div>
</div>
<div class="form-group">
<div class="col-xs-6 text-right">
</div>
<div class="col-xs-6">
<button type="button" class="btn btn-primary" id="burst_part">Burst</button>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-offset-6 col-sm-6 jquery-particule-emitter" ></div>
</div>
</div>
<script src="vendors/jquery.min.js"></script>
<script src="vendors/jquery.animate-enhanced.min.js"></script>
<script src="lib/jquery-particles-burst.js"></script>
<script>
$(function () {
$('#burst_part').click(function () {
$('.jquery-particule-emitter').pburst({
partoffset: parseInt($('#partoffset').val()),
duration: parseInt($('#duration').val()),
frequency: parseInt($('#frequency').val())
}).pburst('burst_part', parseInt($('#part_nb').val()));
});
});
</script>
</body>
</html>