-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (42 loc) · 1.53 KB
/
index.html
File metadata and controls
47 lines (42 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Call progress animation test</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="animation.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="//duplii.com/images/favicon-32.png">
<link rel="apple-touch-icon" href="//duplii.com/images/favicon-152.png">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<header>
<a href="http://duplii.com" title="Duplii | We Make Duplication Happen"><img src="//duplii.com/images/duplii-logo.svg" alt="Duplii | We Make Duplication Happen" class="logo" /></a>
</header>
<div class="progress-indicator-wrapper">
<img src="caller-pictures.jpg" class="avatar mod-130 mod-call-progress" alt="" />
<div class="dial-container container1">
<div class="wedge"></div>
</div>
<div class="dial-container container2">
<div class="wedge"></div>
</div>
</div>
<small onclick="toggleCallProgress()">Click here to toggle the progress</small>
<script>
var progressElement = document.querySelector('.progress-indicator-wrapper');
function toggleCallProgress() {
progressElement.classList.toggle('is-running');
pulse();
}
function pulse() {
progressElement.addEventListener('webkitAnimationEnd', function () {
progressElement.classList.add('is-pulsing');
}, {once: true});
}
</script>
</body>
</html>