best way atm would be making 2 textfields, one with devices="flash" in which you put the event:action() stuff and other with the ipad links in it js(action());
other way would be using conditions to create a string of text.
|
Quellcode
|
1
2
3
4
5
6
|
if(isflash,
set(_html, '<a href="events:action()" >link</a>');
,
set(_html, '<a href="js(openlink(thelinkoraction, url))" >link</a>');
);
copy(plugin[tf].html, _html);
|
javascript
:
|
Quellcode
|
1
2
3
4
5
6
7
|
function openlink(url,type){
if(type == "url"){
window.open(url);
} else {
krpano.call(url);
}
}
|
Ipad doesnt have fullscreen, and the viewer is based on javascript, so there is no problem using javascript for links.
you can use txtadd to chain multiple links and dashes/arrows -> That way the html stays in 1 textfield, so you dont have issues with placing text next to eachother