Új hozzászólás Aktív témák
-
Orionhilles
senior tag
Sziasztok!
Megcsinálnám a saját oldalszválasztómat (ahol ki lehet választani, hogy transmission, zenelejátszót szeretnék indítani) szeretném ha az egyik a linuxdash-t indítaná. Próbáltam szerkeszteni a scriptet, de nem jött össze. A linuxdash az <málna_ip>/linuxdash címen található. Mit kellen a scripten ehhez igazítanom? Nézzétek el nekem, még nem programoztam
Itt van amit eddig csináltam:
<html>
<head>
<script type="text/javascript">
var ip = location.host;
function changePort(port)
{
window.location = "http://" + ip + ":" + port;
}
function changetolinuxdash
{
window.location = "http://" + ip + "/linuxdash" ;
}
</script>
</head>
<body bgcolor=#aaaaaa>
<h1 align=center>Choose your destiny!</h1>
<div align=center>
<button onclick="changePort(1337)">HiFi Music player</button>
<button onclick="changetolinuxdash">LinuxDash</button>
<button onclick="changePort(9091)">Torrent client</button>
</div>
</body>
</html>Válaszotokat előre is köszönöm!
[ Szerkesztve ]
– Yet, thou serves with thine eyes clouded in chaos. Thou, bound in the cage of madness. I am he who commands those chains – Fate/Zero Berserker Mad Enchantment
Új hozzászólás Aktív témák
lo A sokoldalú Raspberry Pi mint mindenes háziszerver linux alapokon: torrent, multimédia, backup és ami még kellhet.
- Azta! Csodaszép! DELL Vostro 5370 Ultrabook Laptop 13,3" -70% i5-8250U 4Mag 8Gb 256GB SSD FHD IPS
- LEÁRAZVA! HP EliteBook 850 G7 Fémházas Szuper Strapabíró Laptop 15,6" -65% i7-10610U 32/512 FHD HUN
- Logitech Z625 THX minősített 2.1-400Watt! Ritka Masszív!
- Xiaomi 13T fekete 8/256 kártyafüggetlen, garanciális
- PlayStation 4 Pro 1TB 7216B - The Last Of Us II Ed. + játék, 6 hó garanciával, Bp-i üzletből eladó!