|
|
@ -34,7 +34,7 @@ $(document).ready(function() {
|
|
|
|
$('html, body').animate({
|
|
|
|
$('html, body').animate({
|
|
|
|
scrollTop: $(target).offset().top - 210
|
|
|
|
scrollTop: $(target).offset().top - 210
|
|
|
|
}, 500);
|
|
|
|
}, 500);
|
|
|
|
|
|
|
|
window.history.pushState("object or string", "Title", this.getAttribute('data-target'));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(window).scroll(function(event) {
|
|
|
|
$(window).scroll(function(event) {
|
|
|
@ -353,9 +353,26 @@ function populatePieces(type) {
|
|
|
|
documentButton.lightGallery({
|
|
|
|
documentButton.lightGallery({
|
|
|
|
selector: 'this',
|
|
|
|
selector: 'this',
|
|
|
|
width: '90%',
|
|
|
|
width: '90%',
|
|
|
|
|
|
|
|
//hash: false,
|
|
|
|
galleryId: 'score_viewer_'+index
|
|
|
|
galleryId: 'score_viewer_'+index
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(typeof doc != 'undefined'){
|
|
|
|
|
|
|
|
} else{
|
|
|
|
|
|
|
|
documentButton.on('onSlideItemLoad.lg', function(event, index){
|
|
|
|
|
|
|
|
window.history.pushState(null, null, "/scores/" + score_data.filename);
|
|
|
|
|
|
|
|
//location.replace("/scores/" + score_data.filename);
|
|
|
|
|
|
|
|
//window.location.hash = "test";
|
|
|
|
|
|
|
|
//console.log(window.location.hash);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
documentButton.on('onCloseAfter.lg', function(event, prevIndex, index){
|
|
|
|
|
|
|
|
window.history.pushState("object or string", "Title", "/");
|
|
|
|
|
|
|
|
//console.log("test");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
documentButton = $('<button id=piece_document_button_'+index+">").attr({title: "score"}).addClass('score_icon');
|
|
|
|
documentButton = $('<button id=piece_document_button_'+index+">").attr({title: "score"}).addClass('score_icon');
|
|
|
|
documentButton.css('visibility', 'hidden');
|
|
|
|
documentButton.css('visibility', 'hidden');
|
|
|
|