mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
39147ca396
commit
5074aa5a7b
2 changed files with 51 additions and 23 deletions
File diff suppressed because one or more lines are too long
|
@ -1151,6 +1151,31 @@ const search_queryquery = "''' + search_query.query.replace('"',"") + r'''"
|
||||||
const search_type = "''' + search_type + r'''"
|
const search_type = "''' + search_type + r'''"
|
||||||
const net_search = ''' + net_search_str + r'''
|
const net_search = ''' + net_search_str + r'''
|
||||||
</script><script>
|
</script><script>
|
||||||
|
|
||||||
|
function proxify()
|
||||||
|
{
|
||||||
|
try{
|
||||||
|
for(let i=prompt.url_proxy.length;i>=0;--i)
|
||||||
|
{
|
||||||
|
if(document.querySelector("#fnref\\:"+String(i+1)))
|
||||||
|
link_tmp = document.querySelector("#fnref\\:"+String(i+1))
|
||||||
|
link_tmp.removeAttribute('href')
|
||||||
|
link_tmp.removeAttribute('id')
|
||||||
|
link_tmp.addEventListener('click', function () {
|
||||||
|
modal.style.display = 'block'; modal_open(prompt.url_proxy[i+2])
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}catch(e){}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function modal_open(url)
|
||||||
|
{
|
||||||
|
modal.style.display = 'block';
|
||||||
|
document.querySelector("#iframe-wrapper > iframe").src = url;
|
||||||
|
}
|
||||||
|
|
||||||
//rsa
|
//rsa
|
||||||
function stringToArrayBuffer(str){
|
function stringToArrayBuffer(str){
|
||||||
if(!str) return;
|
if(!str) return;
|
||||||
|
@ -1511,29 +1536,7 @@ for(let i=prompt.url_pair.length;i>=0;--i)
|
||||||
return new_text;
|
return new_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
function proxify()
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
for(let i=prompt.url_proxy.length;i>=0;--i)
|
|
||||||
{
|
|
||||||
if(document.querySelector("#fnref\\:"+String(i+1)))
|
|
||||||
link_tmp = document.querySelector("#fnref\\:"+String(i+1))
|
|
||||||
link_tmp.removeAttribute('href')
|
|
||||||
link_tmp.removeAttribute('id')
|
|
||||||
link_tmp.addEventListener('click', function () {
|
|
||||||
modal.style.display = 'block'; modal_open(prompt.url_proxy[i+2])
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
}catch(e){}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function modal_open(url)
|
|
||||||
{
|
|
||||||
modal.style.display = 'block';
|
|
||||||
document.querySelector("#iframe-wrapper > iframe").src = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function chatmore()
|
function chatmore()
|
||||||
|
|
Loading…
Add table
Reference in a new issue