-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjquery-picture-swapper.html
More file actions
67 lines (66 loc) · 1.81 KB
/
jquery-picture-swapper.html
File metadata and controls
67 lines (66 loc) · 1.81 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery Picture Swapper</title>
<style>
h1{
text-align: center;
}
.container {
margin: 40px;
display: flex;
flex-direction: row;
justify-content: space-around;
}
.sm-container{
text-align: center;
}
.frame{
height: 500px;
width: 400px;
border: 10px solid grey;
}
.centerBtn{
margin: 10px auto;
}
.picture1{
background-image: url(img/painting1.jpeg);
background-repeat: no-repeat;
background-size: cover;
}
.picture2{
background-image: url(img/paintin2.jpeg);
background-repeat: no-repeat;
background-size: cover;
}
.picture3{
background-image: url(img/painting3.jpeg);
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<h1>jQuery Picture Swapper</h1>
<div class="container">
<div class ="sm-container">
<div class="frame picture1">
</div>
<button class="centerBtn" id="btn1"> Swap > </button>
</div>
<div class ="sm-container">
<div class="frame picture2">
</div>
<button class="centerBtn" id="btn2"> < Swap > </button>
</div>
<div class ="sm-container">
<div class="frame picture3">
</div>
<button class="centerBtn" id="btn3"> < Swap </button>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src ="js/jquery-picture-swapper.js"></script>
</body>
</html>