Use link instead of button

This commit is contained in:
toto 2023-03-02 08:57:25 +01:00
parent e10e8f8897
commit 22f93c6018

View File

@ -28,7 +28,7 @@ $domaines = array(
'name' => 'Orion',
'url' => 'https://orion.netdldata.net/',
'real' => 'orion.lan',
'port' => 80,
'port' => 443,
'img' => 'favicon_omv.png'
),
array(
@ -150,13 +150,16 @@ for (var key in servers) {
var div = $('<div />', {
class: 'button ' + orientation(orientation_etat)
});
var link = $('<a />', {
href: server.url,
});
div.append(link);
var button = $('<button />', {
class: 'server',
type: 'button',
onclick: 'site("' + server.url + '")',
html: '<img class="favicon" src="images/' + server.img + '"><div class="description">' + server.name + '</div>'
});
div.append(button);
link.append(button);
$("#buttons").append(div);
if (server.hasOwnProperty('running')){
if (server.running) {
@ -178,11 +181,6 @@ function cookies() {
}
function site(url) {
console.log(url);
document.location.href=url;
}
function orientation (status) {
if (status == false)
return "left";