File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var s3 = new AWS.S3({
25
25
viewAlbum ( 'bh6' ) ;
26
26
// viewAlbum('bh5');
27
27
28
- $ ( '.image' ) . lazy ( ) ;
28
+ $ ( '.image' ) . Lazy ( ) ;
29
29
30
30
// Used to create HTML for our images
31
31
function getHtml ( template ) {
@@ -49,7 +49,7 @@ function viewAlbum(albumName) {
49
49
return ;
50
50
}
51
51
return getHtml ( [
52
- '<div class="image" style="background-image: url(' + photoUrl + ');" data-url ="' + photoUrl + '"></div>' ,
52
+ '<div class="image" style="background-image: url(' + photoUrl + ');" data-src ="' + photoUrl + '"></div>' ,
53
53
] ) ;
54
54
} ) ;
55
55
document . getElementById ( albumName ) . innerHTML = getHtml ( photos ) ;
@@ -61,7 +61,7 @@ $(document).on('click', function(event) {
61
61
if ( $ ( event . target ) . attr ( 'class' ) == 'image' ) {
62
62
$ ( '#modal' ) . show ( ) ;
63
63
var top = 'calc(5% + ' + ( window . scrollY ) + 'px)' ;
64
- $ ( '#modal-img' ) . attr ( 'src' , $ ( event . target ) . attr ( 'data-url ' ) ) ;
64
+ $ ( '#modal-img' ) . attr ( 'src' , $ ( event . target ) . attr ( 'data-src ' ) ) ;
65
65
$ ( '#modal' ) . css ( 'top' , top ) ;
66
66
$ ( '#modal-background' ) . show ( ) ;
67
67
}
You can’t perform that action at this time.
0 commit comments