|
|
@ -13,15 +13,15 @@ $(document).ready(function() {
|
|
|
|
populatePieces('secondary');
|
|
|
|
populatePieces('secondary');
|
|
|
|
populatePublications();
|
|
|
|
populatePublications();
|
|
|
|
populateReleases();
|
|
|
|
populateReleases();
|
|
|
|
populatePerformances(2020, 'composer', true);
|
|
|
|
populatePerformances(2021, 'composer', true);
|
|
|
|
populateTalks(2020, true);
|
|
|
|
populateTalks(2021, true);
|
|
|
|
populateAbout();
|
|
|
|
populateAbout();
|
|
|
|
|
|
|
|
|
|
|
|
populateGallerySelector();
|
|
|
|
populateGallerySelector();
|
|
|
|
if (window.location.href.split('/').pop().substring(0,3) != "#lg") {
|
|
|
|
if (window.location.href.split('/').pop().substring(0,3) != "#lg") {
|
|
|
|
window.history.replaceState("object or string", "Title", "/");
|
|
|
|
window.history.replaceState("object or string", "Title", "/");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$( window ).resize(function() {
|
|
|
|
$( window ).resize(function() {
|
|
|
|
resetDivHeights();
|
|
|
|
resetDivHeights();
|
|
|
@ -78,13 +78,13 @@ $(document).ready(function() {
|
|
|
|
$('#eventtypepicker').on('change', function() {
|
|
|
|
$('#eventtypepicker').on('change', function() {
|
|
|
|
$("#performanceeventslist").empty();
|
|
|
|
$("#performanceeventslist").empty();
|
|
|
|
populatePerformances(parseInt($('#yearpicker').val()), this.value, false);
|
|
|
|
populatePerformances(parseInt($('#yearpicker').val()), this.value, false);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
$("img").load(function() {
|
|
|
|
$("img").load(function() {
|
|
|
|
alert($(this).height());
|
|
|
|
alert($(this).height());
|
|
|
|
alert($(this).width());
|
|
|
|
alert($(this).width());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -99,7 +99,7 @@ function resetDivHeights(){
|
|
|
|
//$('#pieces').height($('#releases').height());
|
|
|
|
//$('#pieces').height($('#releases').height());
|
|
|
|
//$('#releases').height($('#writings').height());
|
|
|
|
//$('#releases').height($('#writings').height());
|
|
|
|
|
|
|
|
|
|
|
|
$('#pieces').css('height', '1850px');
|
|
|
|
$('#pieces').css('height', '2400px');
|
|
|
|
//if($('#writings').height() >= $('#releases').height()){
|
|
|
|
//if($('#writings').height() >= $('#releases').height()){
|
|
|
|
// $('#pieces').height($('#writings').height());
|
|
|
|
// $('#pieces').height($('#writings').height());
|
|
|
|
//} else {
|
|
|
|
//} else {
|
|
|
@ -445,7 +445,7 @@ function populateReleases() {
|
|
|
|
releaseli = $('<li id=release_li_item'+index+'>');
|
|
|
|
releaseli = $('<li id=release_li_item'+index+'>');
|
|
|
|
$('ul#releaseslist').addClass('content-list').prepend(releaseli);
|
|
|
|
$('ul#releaseslist').addClass('content-list').prepend(releaseli);
|
|
|
|
|
|
|
|
|
|
|
|
var img, thumb, head;
|
|
|
|
var img, thumb, head, title, caption, cartButton, infoButton, cartRef, infoRef;
|
|
|
|
img = data.img;
|
|
|
|
img = data.img;
|
|
|
|
thumb = data.thumb;
|
|
|
|
thumb = data.thumb;
|
|
|
|
if (typeof thumb === 'undefined' ) {
|
|
|
|
if (typeof thumb === 'undefined' ) {
|
|
|
@ -457,9 +457,37 @@ function populateReleases() {
|
|
|
|
var imgsrc = BASE_URL + "/unboundedpress/album_art.files/" + img._id['$oid'] +"/binary";
|
|
|
|
var imgsrc = BASE_URL + "/unboundedpress/album_art.files/" + img._id['$oid'] +"/binary";
|
|
|
|
var thumbsrc = BASE_URL + "/unboundedpress/album_art.files/" + thumb._id['$oid'] +"/binary";
|
|
|
|
var thumbsrc = BASE_URL + "/unboundedpress/album_art.files/" + thumb._id['$oid'] +"/binary";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title = $('<div>').addClass('caption').append(data.title);
|
|
|
|
|
|
|
|
title.css('text-align', 'center');
|
|
|
|
|
|
|
|
caption = $('<div>').addClass('caption')
|
|
|
|
|
|
|
|
caption.css('text-align', 'center');
|
|
|
|
|
|
|
|
caption.css('padding-bottom', '25px');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.discogs_id) {
|
|
|
|
|
|
|
|
infoRef = 'https://www.discogs.com/release/' + data.discogs_id;
|
|
|
|
|
|
|
|
infoButton = $('<button id=release_info_button_'+index+" data-iframe='true' data-src='"+ infoRef +"'>")
|
|
|
|
|
|
|
|
.attr({title: "discogs info"}).addClass('info_icon');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
infoButton.click(function() {
|
|
|
|
|
|
|
|
window.open(infoRef);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.buy_link) {
|
|
|
|
|
|
|
|
cartRef = data.buy_link;
|
|
|
|
|
|
|
|
cartButton = $('<button id=release_cart_button_'+index+" data-iframe='true' data-src='"+ cartRef +"'>")
|
|
|
|
|
|
|
|
.attr({title: "buy"}).addClass('cart_icon');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cartButton.click(function() {
|
|
|
|
|
|
|
|
window.open(cartRef);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
caption.append([infoButton, cartButton]);
|
|
|
|
head = $('<h4>').append($("<a href='"+imgsrc+"' data-download-url='/album_art/"+data.album_art+"'>")
|
|
|
|
head = $('<h4>').append($("<a href='"+imgsrc+"' data-download-url='/album_art/"+data.album_art+"'>")
|
|
|
|
.append($('<img>').attr({src: thumbsrc}).css('width','100%')));
|
|
|
|
.append($('<img>').attr({src: thumbsrc}).css('width','100%')));
|
|
|
|
releaseli.append(head);
|
|
|
|
releaseli.append(title).append(head).append(caption);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
objCount++;
|
|
|
|
objCount++;
|
|
|
@ -606,7 +634,7 @@ function populatePerformances(year, eventType, loadUpcoming) {
|
|
|
|
//console.log(upcomingCount);
|
|
|
|
//console.log(upcomingCount);
|
|
|
|
if (upcomingLoadedCount==2) {
|
|
|
|
if (upcomingLoadedCount==2) {
|
|
|
|
|
|
|
|
|
|
|
|
if(upcomingCount == 0 && year == 2020){
|
|
|
|
if(upcomingCount == 0 && year == 2021){
|
|
|
|
|
|
|
|
|
|
|
|
$('#upcoming').css('visibility', 'hidden')
|
|
|
|
$('#upcoming').css('visibility', 'hidden')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -729,7 +757,7 @@ function populatePublications() {
|
|
|
|
href = data.entryTags.howpublished;
|
|
|
|
href = data.entryTags.howpublished;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (false /*href.substring(0, 4) == "http"*/){
|
|
|
|
if (false /*href.substring(0, 4) == "http"*/){
|
|
|
|
console.log(href);
|
|
|
|
console.log(href);
|
|
|
|
documentButton = $('<button id=piece_document_button_'+index+" onclick=' window.open('" + href.replace(/\//g, '\/') + "','_blank')>")
|
|
|
|
documentButton = $('<button id=piece_document_button_'+index+" onclick=' window.open('" + href.replace(/\//g, '\/') + "','_blank')>")
|
|
|
|
.attr({title: "view"}).addClass('score_icon');
|
|
|
|
.attr({title: "view"}).addClass('score_icon');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -794,9 +822,9 @@ console.log(href);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function populateGallerySelector() {
|
|
|
|
function populateGallerySelector() {
|
|
|
|
|
|
|
|
|
|
|
|
audioButton = $('<button id=gallery_audio_button>').attr({title: "audio"}).addClass('audio_icon');
|
|
|
|
audioButton = $('<button id=gallery_audio_button>').attr({title: "audio"}).addClass('audio_icon');
|
|
|
|
audioButton.click(function() {
|
|
|
|
audioButton.click(function() {
|
|
|
@ -815,9 +843,9 @@ function populateGallerySelector() {
|
|
|
|
|
|
|
|
|
|
|
|
$('#gallerySelector').append([audioButton, videoButton, imageButton]);
|
|
|
|
$('#gallerySelector').append([audioButton, videoButton, imageButton]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function populateAbout() {
|
|
|
|
function populateAbout() {
|
|
|
|
|
|
|
|
|
|
|
|
var head = $('<h4>').append($('<div>').css('width', '50px').css('min-width', '50px').append('CV'));
|
|
|
|
var head = $('<h4>').append($('<div>').css('width', '50px').css('min-width', '50px').append('CV'));
|
|
|
|
var documentButton = $("<button id=cv_button data-iframe='true' data-src='/cv'>").attr({title: "CV"}).addClass('score_icon');
|
|
|
|
var documentButton = $("<button id=cv_button data-iframe='true' data-src='/cv'>").attr({title: "CV"}).addClass('score_icon');
|
|
|
@ -885,4 +913,4 @@ function populateAbout() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|