-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
99 lines (84 loc) · 2.01 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo Particle System</title>
<link rel="stylesheet" type="text/css" href="styles/style.css">
</head>
<body>
<div>
<canvas id="canvas"></canvas>
</div>
<div>
<button id="start">One</button>
</div>
<div>
<button id="stream">Stream</button>
</div>
<div class="space">
</div>
<div>
<strong>Monthly Spend:</strong>
</div>
<div>
<input type="range" min="0" max="1000" step="1" onchange="particleSystem.start.monthlySpend(this.value)">
</div>
<div>
$<input id="monthlySpendBox" type="text" disabled>
</div>
<div class="space">
</div>
<div>
<strong>Average CPM:</strong>
</div>
<div>
<input type="range" min="0" max="100" step="1" onchange="particleSystem.start.cpm(this.value)">
</div>
<div>
$<input id="cpmBox" type="text" disabled>
</div>
<div class="space">
</div>
<div>
Total web visits: <input id="webVisitsBox" type="text" disabled>
</div>
<div class="space">
</div>
<div>
<strong>Conversion Rate:</strong>
</div>
<div>
<input type="range" min="0" max="100" step="1" onchange="particleSystem.start.conversion(this.value)">
</div>
<div>
<input id="conversionBox" type="text" disabled>%
</div>
<div class="space">
</div>
<div>
Monthly active users: <input id="monthlyActiveBox" type="text" disabled>
</div>
<div class="space">
</div>
<div>
<strong>Churn:</strong>
</div>
<div>
<input type="range" min="0" max="100" step="1" onchange="particleSystem.start.churn(this.value)">
</div>
<div>
<input id="churnbox" type="text" disabled>%
</div>
<div class="space">
</div>
<div>
User loss: <input id="userLossBox" type="text" disabled>
</div>
<script type="text/javascript" src="scripts/Particle.js"></script>
<script type="text/javascript" src="scripts/canvas.js"></script>
<script type="text/javascript">
particleSystem.start.init();
particleSystem.start.go();
</script>
</body>
</html>