buttonsDiv.show();
if (windowWidth < 1000) {
+ mediaListDiv.width(parseInt(windowWidth * 0.8));
+ mediaListDiv.height(parseInt(windowHeight * 0.7));
+ groupsDiv.width(parseInt(windowWidth * 0.8));
groupsDiv.height('');
groupsDiv.addClass('small-screen');
- mediaListDiv.height(parseInt(windowHeight * 0.7));
}
else {
mediaListDiv.width(parseInt(windowWidth * 0.7));
}
var title;
- if (mediaType === 'picture') {
+ if ($(window).width() < 1000) {
+ title = data.cameraName;
+ }
+ else if (mediaType === 'picture') {
title = 'Pictures taken by ' + data.cameraName;
}
else {
/* repeat the operation multiple times, the size might change */
for (i = 0; i < 3; i++) {
- modalWidth = container.outerWidth() + 10 /* the margins */;
- modalHeight = container.outerHeight() + 10 /* the margins */;
+ modalWidth = container.outerWidth();
+ modalHeight = container.outerHeight();
container.css('left', Math.floor((windowWidth - modalWidth) / 2));
container.css('top', Math.floor((windowHeight - modalHeight) / 2));