-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (82 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
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<title>Awesome First Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main">
<nav>
<div class="logo">
<img src ="images/logo.png">
</div>
<div class="nav-links">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Browse</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Checkout</a></li>
</ul>
</div>
</nav>
<div class="information">
<div class= "overlay"></div>
<img src="images/corgi.png" class="corgi">
<div id="circle">
<div class = "feature one">
<img src="images/book.png">
<div>
<h1>History</h1>
<p>Small, Welsh herding dog</p>
</div>
</div>
<div class = "feature two">
<img src="images/balloons.png">
<div>
<h1>Lifespan</h1>
<p>12-15 years</p>
</div>
</div>
<div class = "feature three">
<img src="images/brush.png">
<div>
<h1>Coat</h1>
<p>Thick double coat.</p>
</div>
</div>
<div class = "feature four">
<img src="images/house.png">
<div>
<h1>Livingspace</h1>
<p>Good apartment dogs, but need walks.</p>
</div>
</div>
</div>
</div>
<div>
<div class="controls">
<img src="images/arrow.png" id ="UpBtn">
<h3>Learn!</h3>
<img src="images/arrow.png"id ="DwnBtn">
</div>
</div>
</div>
<script>
var circle = document.getElementById("circle");
var UpBtn = document.getElementById("UpBtn");
var DwnBtn = document.getElementById("DwnBtn");
var rotateValue = circle.style.transform;
var rotateSum;
UpBtn.onclick = function(){
rotateSum = rotateValue + "rotate(-90deg)";
circle.style.transform = rotateSum;
rotateValue=rotateSum;
}
DwnBtn.onclick = function(){
rotateSum = rotateValue + "rotate(90deg)";
circle.style.transform = rotateSum;
rotateValue=rotateSum;
}
</script>
</body>
</html>