Skip to content

Commit

Permalink
fixed a bug where an event did not get removed in the image gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
mtimofiiv committed Dec 10, 2013
1 parent 66e6991 commit ae16e77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
32 changes: 15 additions & 17 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,6 @@ input[type="text"] {
margin-bottom: 20px;
}

@media (max-width: 480px) {
.nav {
width: 15%;
}

.button {
font-size: 15px;
}

input[type="text"] {
font-size: 14px;
width: 80%;
}
}

.letter-container {
height: 100%;
width: 50%;
Expand Down Expand Up @@ -268,8 +253,6 @@ input[type="text"] {

.modal .gallery .photos li {
float: left;
width: 100%;
height: 100%;
position: absolute;
}

Expand Down Expand Up @@ -308,4 +291,19 @@ input[type="text"] {

.action {
cursor: pointer;
}

@media (max-width: 480px) {
.nav {
width: 15%;
}

.button {
font-size: 15px;
}

input[type="text"] {
font-size: 14px;
width: 80%;
}
}
3 changes: 2 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ $(function() {
}

app.prototype.photoGallery = function() {
$('.modal').off('click', '.photos li');
$('.modal').on('click', '.photos li', function() {
$(this).animate({ left: '-5000px' });
$(this).animate({ left: '-2000px' });
if (window.app.galleryCount >= $('.photos').children().length - 1) {
window.app.modalClose();
window.app.galleryCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion js/snowfall.min.jquery.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae16e77

Please sign in to comment.