parent
ff2e32d2d9
commit
c00d966fd7
@ -11,9 +11,9 @@
|
|||||||
<script src="plugins/jquery-3.5.1.min.js"></script>
|
<script src="plugins/jquery-3.5.1.min.js"></script>
|
||||||
<script src="scripts/menu.js"></script>
|
<script src="scripts/menu.js"></script>
|
||||||
<link rel="stylesheet" href="styles/fancybox.css" media="screen">
|
<link rel="stylesheet" href="styles/fancybox.css" media="screen">
|
||||||
<script src="plugins/jquery-3.5.1.min.js"></script>
|
|
||||||
<link href="plugins/jquery.fancybox.min.css" rel="stylesheet">
|
<link href="plugins/jquery.fancybox.min.css" rel="stylesheet">
|
||||||
<script src="plugins/jquery.fancybox.min.js"></script>
|
<script src="plugins/jquery.fancybox.min.js"></script>
|
||||||
|
<script src="scripts/fancybox.js"></script>
|
||||||
<script src="plugins/pagination.min.js"></script>
|
<script src="plugins/pagination.min.js"></script>
|
||||||
<link rel="stylesheet" href="plugins/pagination.css" media="screen">
|
<link rel="stylesheet" href="plugins/pagination.css" media="screen">
|
||||||
<link rel="stylesheet" href="styles/pagination.css" media="screen">
|
<link rel="stylesheet" href="styles/pagination.css" media="screen">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<script src="scripts/menu.js"></script>
|
<script src="scripts/menu.js"></script>
|
||||||
<link href="plugins/jquery.fancybox.min.css" rel="stylesheet">
|
<link href="plugins/jquery.fancybox.min.css" rel="stylesheet">
|
||||||
<script src="plugins/jquery.fancybox.min.js"></script>
|
<script src="plugins/jquery.fancybox.min.js"></script>
|
||||||
|
<script src="scripts/fancybox.js"></script>
|
||||||
<script src="plugins/pagination.min.js"></script>
|
<script src="plugins/pagination.min.js"></script>
|
||||||
<link rel="stylesheet" href="plugins/pagination.css" media="screen">
|
<link rel="stylesheet" href="plugins/pagination.css" media="screen">
|
||||||
<script src="scripts/exposition.js"></script>
|
<script src="scripts/exposition.js"></script>
|
||||||
|
@ -42,6 +42,8 @@ jQuery(document).ready(function($)
|
|||||||
/** MENU **/
|
/** MENU **/
|
||||||
/**********/
|
/**********/
|
||||||
|
|
||||||
|
fancyboxInit(data, true);
|
||||||
|
|
||||||
var availableOptions = [];
|
var availableOptions = [];
|
||||||
var selectedOptions = [];
|
var selectedOptions = [];
|
||||||
|
|
||||||
@ -556,10 +558,5 @@ jQuery(document).ready(function($)
|
|||||||
setTable();
|
setTable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// fancybox configuration
|
|
||||||
$.getScript("scripts/fancybox.js", function() {
|
|
||||||
fancyboxInit(data, true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
@ -2,6 +2,8 @@ jQuery(document).ready(function($)
|
|||||||
{
|
{
|
||||||
$.getJSON("data.json", function(data)
|
$.getJSON("data.json", function(data)
|
||||||
{
|
{
|
||||||
|
fancyboxInit(data, false);
|
||||||
|
|
||||||
window.pageSize = 14;
|
window.pageSize = 14;
|
||||||
var paintingList = [];
|
var paintingList = [];
|
||||||
|
|
||||||
@ -18,12 +20,12 @@ jQuery(document).ready(function($)
|
|||||||
if (canDisplay)
|
if (canDisplay)
|
||||||
{
|
{
|
||||||
paintingHtml += 'active"><a data-fancybox="exposition" href="photos/paintings/normal/' + i.number + '.jpg" data-fancybox-index="' + i.number + '">'
|
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
|
else
|
||||||
{
|
{
|
||||||
paintingHtml += 'inactive"><a data-fancybox="exposition" href="photos/paintings/normal/' + i.number + '.jpg" data-fancybox-index="' + i.number + '">'
|
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;
|
paintingHtml += '<span class="item-title">' + i.title;
|
||||||
if (i.year != '—')
|
if (i.year != '—')
|
||||||
@ -46,11 +48,7 @@ jQuery(document).ready(function($)
|
|||||||
|
|
||||||
if (targetPage > 0)
|
if (targetPage > 0)
|
||||||
$("#pagination").pagination('go', targetPage);
|
$("#pagination").pagination('go', targetPage);
|
||||||
});
|
|
||||||
|
|
||||||
// fancybox configuration
|
|
||||||
$.getScript("scripts/fancybox.js", function() {
|
|
||||||
fancyboxInit(data, false);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user