Посмотрите видео ниже, чтобы узнать, как установить наш сайт в виде веб-приложения на главном экране.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
/** Should be looking similar to the below override **/
@Override
public String[] getBypassCommands()
{
return new String[]
{
"_bbshome", "_bbsabout", "_bbspage", "_bbslink" // <- example
};
}
/** again, you should be looking at a something similar (might need adjustments as per your sources) but the general idea is the same **/
else if (command.startsWith("_bbslink"))
{
final var st = new StringTokenizer(command...
import java.awt.Desktop;
...
if (Desktop.isDesktopSupported())
{
Desktop desktop = Desktop.getDesktop();
if (desktop.isSupported(Desktop.Action.BROWSE))
}
desktop.browse(new URI("https://google.com"));
}
}
и нафига ему пример того как это можно сделать в AWT?Java:import java.awt.Desktop; ... if (Desktop.isDesktopSupported()) { Desktop desktop = Desktop.getDesktop(); if (desktop.isSupported(Desktop.Action.BROWSE)) } desktop.browse(new URI("https://google.com")); } }
possible - at least you can call the link specified in the client's sysstring - url !str_idHello, it is possible to put in Community Board link and when i press on it, to open browser ?
Thank you !
AWT method is universal for any Chronicle or server files (as some do not support it natively and others that do actually do not have the server side support for it - when it's HTML based rather direct .u action)My project it is based on L2jSunrise ( High Five ).
/** Should be looking similar to the below override **/
@Override
public String[] getBypassCommands()
{
return new String[]
{
"_bbshome", "_bbsabout", "_bbspage", "_bbslink" // <- example
};
}
/** again, you should be looking at a something similar (might need adjustments as per your sources) but the general idea is the same **/
else if (command.startsWith("_bbslink"))
{
final var st = new StringTokenizer(command, ":");
st.nextToken();
final var url_link = st.nextToken();
if (Desktop.isDesktopSupported())
{
Desktop desktop = Desktop.getDesktop();
if (desktop.isSupported(Desktop.Action.BROWSE))
}
desktop.browse(new URI("https://" + url_link));
}
}
}
<a action="bypass _bbslink:yoursite.com">Your Link Name</a>