@ -42,6 +42,8 @@ jQuery(document).ready(function($)
|
||||
/** MENU **/
|
||||
/**********/
|
||||
|
||||
fancyboxInit(data, true);
|
||||
|
||||
var availableOptions = [];
|
||||
var selectedOptions = [];
|
||||
|
||||
@ -556,10 +558,5 @@ jQuery(document).ready(function($)
|
||||
setTable();
|
||||
}
|
||||
}
|
||||
|
||||
// fancybox configuration
|
||||
$.getScript("scripts/fancybox.js", function() {
|
||||
fancyboxInit(data, true);
|
||||
});
|
||||
});
|
||||
});
|
@ -2,6 +2,8 @@ jQuery(document).ready(function($)
|
||||
{
|
||||
$.getJSON("data.json", function(data)
|
||||
{
|
||||
fancyboxInit(data, false);
|
||||
|
||||
window.pageSize = 14;
|
||||
var paintingList = [];
|
||||
|
||||
@ -18,12 +20,12 @@ jQuery(document).ready(function($)
|
||||
if (canDisplay)
|
||||
{
|
||||
paintingHtml += 'active"><a data-fancybox="exposition" href="photos/paintings/normal/' + i.number + '.jpg" data-fancybox-index="' + i.number + '">'
|
||||
paintingHtml += '<img src="photos/paintings/mini/" alt="Tableau ' + i.number + '"></a>';
|
||||
paintingHtml += '<img src="photos/paintings/mini/' + i.number + '.jpg" alt="Tableau ' + i.number + '"></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
paintingHtml += 'inactive"><a data-fancybox="exposition" href="photos/paintings/normal/' + i.number + '.jpg" data-fancybox-index="' + i.number + '">'
|
||||
paintingHtml += '<img src="photos/paintings/mini/" alt="Tableau ' + i.number + '"></a>';
|
||||
paintingHtml += '<img src="photos/paintings/mini/' + i.number + '.jpg" alt="Tableau ' + i.number + '"></a>';
|
||||
}
|
||||
paintingHtml += '<span class="item-title">' + i.title;
|
||||
if (i.year != '—')
|
||||
@ -46,11 +48,7 @@ jQuery(document).ready(function($)
|
||||
|
||||
if (targetPage > 0)
|
||||
$("#pagination").pagination('go', targetPage);
|
||||
});
|
||||
|
||||
// fancybox configuration
|
||||
$.getScript("scripts/fancybox.js", function() {
|
||||
fancyboxInit(data, false);
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user