23 lines
677 B
JavaScript
Executable File
23 lines
677 B
JavaScript
Executable File
$(document).ready(function () {
|
|
var nextCtl = $('#vars').attr('nextCtl');
|
|
var c = $('button.accordion-button[data-bs-target="#ctl' + nextCtl + '"]');
|
|
$(c).click();
|
|
$('button[action]').click(function() {
|
|
var action = $(this).attr('action');
|
|
var url = null;
|
|
var target = action;
|
|
if ( action == 'jitsi' ) {
|
|
url = 'https://meet.homelabbrisbane.com.au/hlb';
|
|
}
|
|
if ( action == 'map' ) {
|
|
url = 'https://www.google.com/maps/place/' + $(this).attr('coordinates');
|
|
}
|
|
if ( action == 'copy' ) {
|
|
navigator.clipboard.writeText( $(this).attr('value') );
|
|
}
|
|
if ( url != null ) {
|
|
window.open( url, target );
|
|
}
|
|
});
|
|
});
|