Moving pages into sub-folders.
This commit is contained in:
22
web/index.js
Executable file
22
web/index.js
Executable file
@@ -0,0 +1,22 @@
|
||||
$(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 );
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user