mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
4fc0a8535d
commit
9260685944
2 changed files with 6 additions and 6 deletions
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue