Hi,
first of all, I'm pretty new to krpano.
Second of all, I'm not a professional programmer.
That said, I wanted to build a plugin which copies the hlookat and vlookat coordinates to my clipboard for easier positioning.
Heres the .js code I have so far:
function clipboard(h, v) {
/* Get the text field */
var copyText = h + ", " + v;
/* Select the text field */
copyText.select();
/* Copy the text inside the text field */
document.execCommand("copy");
}Now how do i call on clipboard(view.hlookat, view.vlookat); in krpano?
Kind regards,
Jonathan