You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I'm loading galleries onClick using jQuery like so:
var albumData = "albums/"+ albumID + ".json";
$.getJSON(albumData, function(data, status) {
loadBook(albumID, data);
});
function loadBook(bookID, data) {
// Initialise PhotoSwipe here
}
... it works, but in order to hide the JSON source from the client, I'm thinking of moving it inside Node's app.js but I'm not sure how it would work. Do I need to destroy/empty the gallery DOM on each click?
The text was updated successfully, but these errors were encountered:
Currently I'm loading galleries onClick using jQuery like so:
... it works, but in order to hide the JSON source from the client, I'm thinking of moving it inside Node's app.js but I'm not sure how it would work. Do I need to destroy/empty the gallery DOM on each click?
The text was updated successfully, but these errors were encountered: