updating year and release info
This commit is contained in:
parent
167be49392
commit
1ebbbaa632
|
|
@ -13,8 +13,8 @@ $(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();
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,8 @@ iframe.videoGalleryFrame:hover {height: 190px; width:300px}
|
||||||
height:140px;
|
height:140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.video-inner:hover {height: 190px}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
width:97%;
|
width:97%;
|
||||||
min-width:1075px;
|
min-width:1075px;
|
||||||
|
|
@ -307,7 +309,7 @@ iframe.videoGalleryFrame:hover {height: 190px; width:300px}
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.score_icon, .audio_icon, .video_icon, .photo_icon, .download_icon {
|
.score_icon, .audio_icon, .video_icon, .photo_icon, .download_icon, .cart_icon, .info_icon {
|
||||||
margin-right:10px;
|
margin-right:10px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
@ -335,6 +337,14 @@ iframe.videoGalleryFrame:hover {height: 190px; width:300px}
|
||||||
background-image: url(../images/download_icon.png);
|
background-image: url(../images/download_icon.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cart_icon {
|
||||||
|
background-image: url(../images/cart_icon.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_icon {
|
||||||
|
background-image: url(../images/info_icon.png);
|
||||||
|
}
|
||||||
|
|
||||||
.lg-backdrop.in {
|
.lg-backdrop.in {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue