This commit is contained in:
Joseph Cheung 2023-02-28 00:58:37 +08:00
parent 4fc0a8535d
commit 9260685944
2 changed files with 6 additions and 6 deletions

View file

@ -892,6 +892,7 @@ def search():
function move(e) { function move(e) {
modal.style.left = e.targetTouches[0].pageX - x + 'px'; modal.style.left = e.targetTouches[0].pageX - x + 'px';
modal.style.top = e.targetTouches[0].pageY - y + 'px'; modal.style.top = e.targetTouches[0].pageY - y + 'px';
e.preventDefault();
} }
// (3) 鼠标弹起就让鼠标移动事件移除 // (3) 鼠标弹起就让鼠标移动事件移除
document.addEventListener('touchend', function () { document.addEventListener('touchend', function () {
@ -1159,10 +1160,9 @@ function proxify()
{ {
if(document.querySelector("#fnref\\:"+String(i+1))) if(document.querySelector("#fnref\\:"+String(i+1)))
{ {
modal.style.display = 'block'; modal_open(prompt.url_proxy[document.querySelector("#fnref\\:"+String(i+1)).href]) document.querySelector("#fnref\\:"+String(i+1)).addEventListener('click', function () {modal_open(prompt.url_proxy[document.querySelector("#fnref\\:"+String(i+1)).href]); modal.style.display = 'block'; });
});
document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('href') document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('href')
document.querySelector("#fnref\\:"+String(i+1)).addEventListener('click', function () {
document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('id') document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('id')
} }
} }

View file

@ -892,6 +892,7 @@ def search():
function move(e) { function move(e) {
modal.style.left = e.targetTouches[0].pageX - x + 'px'; modal.style.left = e.targetTouches[0].pageX - x + 'px';
modal.style.top = e.targetTouches[0].pageY - y + 'px'; modal.style.top = e.targetTouches[0].pageY - y + 'px';
e.preventDefault();
} }
// (3) 鼠标弹起就让鼠标移动事件移除 // (3) 鼠标弹起就让鼠标移动事件移除
document.addEventListener('touchend', function () { document.addEventListener('touchend', function () {
@ -1159,10 +1160,9 @@ function proxify()
{ {
if(document.querySelector("#fnref\\:"+String(i+1))) if(document.querySelector("#fnref\\:"+String(i+1)))
{ {
modal.style.display = 'block'; modal_open(prompt.url_proxy[document.querySelector("#fnref\\:"+String(i+1)).href]) document.querySelector("#fnref\\:"+String(i+1)).addEventListener('click', function () {modal_open(prompt.url_proxy[document.querySelector("#fnref\\:"+String(i+1)).href]); modal.style.display = 'block'; });
});
document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('href') document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('href')
document.querySelector("#fnref\\:"+String(i+1)).addEventListener('click', function () {
document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('id') document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('id')
} }
} }