-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnugget.js
42 lines (34 loc) · 869 Bytes
/
nugget.js
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
$(document).ready(function() {
$('.nugget_img').hover(function() {
var newWidth = $(this).width() * 3;
var newHeight = $(this).height() * 3;
$(this).css({
position: "relative",
zIndex: 1000,
width: newWidth,
height: newHeight,
maxWidth: "none",
maxHeight: "none"
});
},
function() {
$(this).css({
width: "initial",
height: "initial",
maxWidth: "100px",
maxHeight: "100px",
zIndex: 0
});
});
$('.nugget_img').click(function() {
var newWidth = $(this).width() * 3;
var newHeight = $(this).height() * 3;
$(this).css({
width: "initial",
height: "initial",
maxWidth: "100px",
maxHeight: "100px",
zIndex: 0
});
});
});