瀏覽代碼

Let customize target attribute for URL HotSpots

Sometimes it is needed to open HotSpot link right in the same frame ("_self") or in a named one.
pull/639/head
Hrumpa 6 年之前
committed by GitHub
父節點
當前提交
a50f7dc739
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js 查看文件

@@ -1707,7 +1707,7 @@ function createHotSpot(hs) {
} else if (hs.URL) {
a = document.createElement('a');
a.href = sanitizeURL(hs.URL);
a.target = '_blank';
a.target = hs.target ? hs.target : '_blank';
renderContainer.appendChild(a);
div.className += ' pnlm-pointer';
span.className += ' pnlm-pointer';


Loading…
取消
儲存