-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (37 loc) · 1.45 KB
/
index.html
File metadata and controls
42 lines (37 loc) · 1.45 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
<html>
<head>
<meta charset="utf-8">
<title>X_X</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('.l').click(function(response){
if($(this).attr('fill') == "red")
$(this).attr('fill',"green");
else
$(this).attr('fill',"red");
});
});
setInterval(function(){console.log("ad")},1000);
</script>
<style>
.circle{
border-radius: 50%;
width:500px;
height:500px;
background: #30cc23;
}
</style>
</head>
<body>
<div>
<svg width="100%" height="100%">
<circle class="l" cx="12.5%" cy="50%" r = "10%" fill="red" >
</circle><circle class="l" cx="37.5%" cy="50%" r = "10%" fill="red" >
</circle><circle class="l" cx="62.5%" cy="50%" r = "10%" fill="red" >
</circle><circle class="l" cx="87.5%" cy="50%" r = "10%" fill="red" >
</circle>
</svg>
</div>
</body>
</html>