Static map on small screens, ability to change background image/color of top-section, finalised hackathon page

This commit is contained in:
Oleh Zasadnyy 2014-08-31 21:52:35 +03:00
parent 05b66f6e7c
commit fbaeb935bb
63 changed files with 224 additions and 362 deletions

View file

@ -81,16 +81,16 @@
});
var scrollStatus = 1;
$(document).on('touchmove', function(e) {
if (scrollStatus == 0) {
e.preventDefault();
} else {
return true;
}
});
$('body').on('touchmove', '.scrollable', function(e) {
e.stopPropagation();
});
// $(document).on('touchmove', function(e) {
// if (scrollStatus == 0) {
// e.preventDefault();
// } else {
// return true;
// }
// });
// $('body').on('touchmove', '.scrollable', function(e) {
// e.stopPropagation();
// });
function toogleScrolling() {
if (scrollStatus == 0) {
@ -235,14 +235,14 @@
}
});
$('.slider-next-item').click(function() {
var speakerItem = $(this).closest('.speaker-item');
var elem = speakerItem.find('.slider-current-item').next();
var slider = $(this).closest('div');
var elem = slider.find('.slider-current-item').next();
if (elem.length) {
elem.addClass('slider-current-item').removeClass('hidden');
speakerItem.find('.slider-current-item').first().removeClass('slider-current-item').addClass('hidden');
slider.find('.slider-current-item').first().removeClass('slider-current-item').addClass('hidden');
} else {
speakerItem.find('.slider-item').first().addClass('slider-current-item').removeClass('hidden');
speakerItem.find('.slider-current-item').last().removeClass('slider-current-item').addClass('hidden');
slider.find('.slider-item').first().addClass('slider-current-item').removeClass('hidden');
slider.find('.slider-current-item').last().removeClass('slider-current-item').addClass('hidden');
}
});