Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
/** 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"));
}
}
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>