MCPcopy Index your code
hub / github.com/openspeedtest/Speed-Test / runTasks

Function runTasks

assets/js/app-2.5.4.js:818–860  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

816 Show.ip();
817 }
818 function runTasks() {
819 if (addEvent) {
820 removeEvts();
821 addEvent = false;
822 }
823 if (OpenSpeedTestStart >= 0) {
824 launch = false;
825 Show.userInterface();
826 init = false;
827 var AutoTme = Math.ceil(Math.abs(OpenSpeedTestStart));
828 Show.showStatus("Automatic Test Starts in ...");
829 var autoTest = setInterval(countDownF, 1000);
830 }
831 function countDownF() {
832 if (AutoTme >= 1) {
833 AutoTme = AutoTme - 1;
834 Show.LiveSpeed(AutoTme, "countDown");
835 } else {
836 if (AutoTme <= 0) {
837 clearInterval(autoTest);
838 launch = true;
839 OpenSpeedTestStart = undefined;
840 runTasks();
841 }
842 }
843 }
844 if (openSpeedTestServerList === "fetch" && launch === true) {
845 launch = false;
846 Show.showStatus("Fetching Server Info..");
847 ServerConnect(6);
848 }
849 if (launch === true) {
850 if (SelectTest === "Ping") {
851 testRun();
852 } else if (SelectTest === "Download") {
853 testRun();
854 } else if (SelectTest === "Upload") {
855 testRun();
856 } else if (SelectTest === false) {
857 testRun();
858 }
859 }
860 }
861 var osttm = "\u2122";
862 var myname = "OpenSpeedTest";
863 var com = ".com";

Callers 4

openSpeedtestEngineFunction · 0.85
countDownFFunction · 0.85
hiEnterFunction · 0.85
ServerConnectFunction · 0.85

Calls 3

removeEvtsFunction · 0.85
ServerConnectFunction · 0.85
testRunFunction · 0.85

Tested by

no test coverage detected