-
Notifications
You must be signed in to change notification settings - Fork 3
/
jquery-mouse-lec.html
190 lines (177 loc) · 4.67 KB
/
jquery-mouse-lec.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mouse Events in jQuery</title>
<link href="https://fonts.googleapis.com/css?family=Lekton" rel="stylesheet">
<style>
body {
background-color: darkslategrey;
color: burlywood;
font-family: 'Lekton', sans-serif;
}
.grandpa {
background-color: brown;
height: 8.85em;
width: 68.73em;
box-shadow: 4px 4px 9px black;
}
.dad {
background-color: chocolate;
display: inline-block;
height: 7.25em;
}
.son {
background-color: peru;
display: inline-block;
height: 7.25em;
position: relative;
top: .75em;
left: .75em;
}
h1 {
position: relative;
display: inline-block;
background-color: burlywood;
margin: 0;
font-size: 6em;
top: .125em;
left: .125em;
padding: 10px 10px 12px 10px;
color: darkslategrey;
}
.circle {
border-radius: 50%;
box-shadow: 4px 4px 9px black;
}
.grandma {
height: 400px;
width: 400px;
background: url("img/jupiter.webp");
background-size: cover;
position: absolute;
bottom: 12px;
right: 20px;
}
.daughter {
height: 120px;
width: 120px;
background: chocolate;
position: absolute;
bottom: 90px;
right: 420px;
}
.grand-daughter {
height: 70px;
width: 70px;
background: brown;
position: absolute;
bottom:-80px;
right: -50px;
}
.push {
position: relative;
top: 30px;
}
button {
color: burlywood;
background-color: brown;
border: 4px solid chocolate;
font-size: 1.25em;
font-family: 'Lekton', sans-serif;
padding: 10px;
box-shadow: 5px 5px 10px #1b2b2b;
transition: 1s;
left: 0;
}
button:hover {
color: darkcyan;
background: darkslategrey;
border: 4px solid cadetblue;
box-shadow: 0 0 5px #1b2b2b;
top: 35px;
left: 5px;
}
input {
box-sizing: border-box;
display: block;
padding: 8px;
font-size: 1.25em;
font-family: 'Lekton', sans-serif;
border: chocolate 4px solid;
background: darkslategrey;
color: burlywood;
margin-bottom: .5em;
width: 208px;
box-shadow: 5px 5px 10px #1b2b2b;
}
::placeholder {
color: chocolate;
}
#picture-example {
height: 125px;
}
.over {
right: 25px;
}
.over2 {
right: 40px;
}
.over3 {
right: 50px;
}
.syl {
top: 35px;
right: 75px;
}
.slash {
top: 42px;
right: 120px;
}
.greymon {
position: relative;
top: 10px;
height: 100px;
}
.dark-magician {
position: relative;
top: 20px;
height: 112px;
}
.kazuya {
position: relative;
top: 20px;
height: 112px;
}
.pull {
position: relative;
bottom: 18px;
}
</style>
</head>
<body>
<div class="grandpa">
<div class="dad">
<div class="son">
<h1>Mouse Events in jQuery</h1>
</div>
</div>
<p class="push">Don't get distracted by the dots.</p>
<div id="picture-example">
</div>
<form action="">
<input class="push" id="imgName" name="imgName" type="text" placeholder="Pokémon Name">
<button id="submit" class="push">Click for picture!</button>
</form>
<div class="circle grandma">
<div class="circle mom">
<div id="importanter-circle" class="circle daughter">
<div id="important-circle" class="circle grand-daughter"></div>
</div>
</div>
</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-mouse-lec.js"></script>
</body>
</html>