Skip to content

Commit

Permalink
Add button to meetup details on explore page to link directly to subj…
Browse files Browse the repository at this point in the history
…ect biography.
  • Loading branch information
JaseMK committed May 26, 2023
1 parent a844c28 commit 7ebfd7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/explore.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,17 @@ function populateDetailsPanel(index) {
//$('#modalTitle').text('Meetup Details');
buttonHtml = '<button type="button" class="btn btn-sm btn-primary" onclick="zoomToPoint('+meetupDetails.lat+','+meetupDetails.long+');"><i class="fas fa-map-marked-alt"></i> View on map</button> ';

subjectButtonHtml = '<a class="btn btn-primary btn-sm" href="biography.php?id='+meetupDetails.subject+'" role="button"><i class="fas fa-address-card"></i> View biography</a> ';


html = '';
html += '<p><strong>When</strong>: ...</p>';
html += '<p><strong>Where</strong>: ' + meetupDetails.location;
html += '<p><strong>Subject</strong>: ' + meetupDetails.subject_label;
html += '<p><strong>Participants</strong>: ' + meetupDetails.participants + '</p>';
html += '<p><strong>Purpose</strong>: ' + meetupDetails.purpose + '</p>';
html += '<p><strong>Evidence</strong>: ' + meetupDetails.evidence_text + '</p>';
html += '<p>' + buttonHtml + '</p>'
html += '<p>' + subjectButtonHtml + ' ' + buttonHtml + '</p>'
$('#meetupDetails').html(html);
$('html, body').animate({
scrollTop: $("#detailView").offset().top
Expand Down

0 comments on commit 7ebfd7e

Please sign in to comment.