Showtext plugin question

  • Hello all!
    Have a small question.
    I use showtext plugin for showing hotspot cards like text cards on yandex or google maps. Right now i want to use it by clicking on hotspot.

    Code
    krpano.set("hotspot[" + response.data[i].id + "].ondown", "showtext(" +					"[div style='padding: 5px 10px']" +						"[h2 style='width: 100%; margin: 0;']" +  response.data[i].name + "[/h2][br]" +						"[img style='width: 100%' src='" + response.data[i].pic + "'  alt='' /][br]" +					"[/div]  ,CARDSTYLE)");

    It works with "onhover" but when i click on it with "onclick" it shows and immideatly dissapears. How can i get it work? How can i use onclick with showtext work on it, and how can i close showtext plugin when i tap on it?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!