Sie sind nicht angemeldet.

1

Montag, 9. November 2020, 16:52

Copy view coordinates to clipboard

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

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Montag, 9. November 2020, 17:55

Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Dienstag, 10. November 2020, 09:02

Thank you!

Ähnliche Themen