I have managed to ad sharing Facebook/Twitter icons using the code Sudarchikov Andrey published.
https://krpano.com/forum/wbb/index.php?p…media#post52211
However I can not not get it working as opening in an iframe like the examples in this
https://krpano.com/releases/1.20.6/viewe…tml5=only+webgl
I made a special socialmedia.xml which includes the codes for the iframe popup but how do I write the code to make the
sharing page popup the same way.
<krpano tourlink="http://www.360-foto.dk/nationalhistorisk-museum/english.html">
<social share="txtadd(urltext,get(social.%1),%2);openurl(get(urltext),_blank);"
facebook="http://facebook.com/share.php?u="
twitter="http://twitter.com/intent/tweet?status="
/>
<layer name="facebook_btn" url="facebook.png" keep="true"
align="righttop" x="20" y="30" scale="0.15"
onclick="social.share(facebook,get(tourlink));"
/>
<layer name="twitter_btn" url="twitter.png" keep="true"
align="righttop" x="60" y="30" scale="0.15"
onclick="social.share(twitter,get(tourlink));"
/>
<layer name="popup2" url="redlink.png" scale="0.3" visible="true" keep="true" align="lefttop" x="100" y="100"
html="Web"
onclick="popup('iframe','http://www.dnm.dk', 1000, 600, true);"
/>