Moving pages into sub-folders.

This commit is contained in:
2025-07-01 20:31:05 +10:00
parent 89a26f5362
commit 7607d807fe
17 changed files with 14 additions and 2 deletions

22
web/index.js Executable file
View 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 );
}
});
});