Use link instead of button
This commit is contained in:
parent
e10e8f8897
commit
22f93c6018
14
index.php
14
index.php
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user