Created
July 10, 2024 22:45
-
-
Save jarble/402964c5df8f74d76bf689246a63b5e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkImage(image1,suffix) { | |
var imageSrc = image1+"/favicon/favicon.ico"; | |
var img = new Image(); | |
img.onload = function(){window.location = image1+suffix}; | |
//img.onerror = bad; | |
img.src = imageSrc; | |
} | |
function load_balance(links, suffix){ | |
for(var l of links){ | |
checkImage(l,suffix); | |
} | |
} | |
load_balance(["https://desktop-eir2rj6.tailc58e3a.ts.net","https://andy-thinkcentre-m710q.tailc58e3a.ts.net"],"/Videos/20210821_144036.mp4") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment