mirror of
https://github.com/hexahigh/cdn.git
synced 2025-12-11 20:15:22 +01:00
remove
This commit is contained in:
parent
e33c8b6fe1
commit
8c4d0f67ef
24
js/ajax.js
24
js/ajax.js
@ -33,26 +33,4 @@ if(resppage = true){
|
||||
for (var i = 0; i < responsiveElements.length; i++) {
|
||||
responsiveElements[i].style.width = (screenWidth / responsiveElements.length) + "px";
|
||||
}
|
||||
}
|
||||
window.onload = async function startdownV2(){
|
||||
const controller = new AbortController()
|
||||
|
||||
// 5 second timeout:
|
||||
|
||||
const timeoutId = setTimeout(() => controller.abort(), 5000)
|
||||
while(true){
|
||||
//await delay(10);
|
||||
await fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"}, { signal: controller.signal }).then(response => {
|
||||
// completed request before timeout fired
|
||||
|
||||
// If you only wanted to timeout the request, not the response, add:
|
||||
// clearTimeout(timeoutId)
|
||||
})
|
||||
}
|
||||
}
|
||||
/*window.onload = async function startdown(){
|
||||
while(true) {
|
||||
//await delay(10);
|
||||
await fetch('https://t0m0t0w.github.io/backuprr/history.dat', {cache: "no-store"})
|
||||
}
|
||||
}*/
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user