basti1012.bplaced.net

Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
    Download Time Calculator ermöglicht das Berechnen der für einen bestimmten Download benötigten Zeit mit vielen verschiedenen Verbindungsgeschwindigkeiten.

    Code

                                        
                                     <div class="page">
    <div class="page_content">
    <h1>Download Time Calculator</h1>
    <div class="box_form">
    <form name="grid" action="#" method="get">
    <table class="form_table" style="white-space:nowrap;">
    <tr>
    <th>Dateigröße:</th>
      <td colspan="6">
    		<input name="size" size="10"> &nbsp;
    		<input onclick="calc(1)" type="button" class="form_button" value=" KB ">
    		<input onclick="calc(1000)" type="button" class="form_button" value=" MB ">
    		<input onclick="calc(1000000)" type="button" class="form_button" value=" GB ">
    		<input onclick="calc(1000000000)" type="button" class="form_button" value=" TB ">
    	</td>
    </tr>
    <tr>
      <th>Leistungseffizienz:</th>
      <td colspan="6"><input name="efficiency" size="10" maxlength="3" value="100" onblur="javascript:checkefficiency();">&nbsp;% (1 - 100)</td>
    </tr>
    <tr><td colspan="7">&nbsp;</td></tr>
    <tr><td colspan="7" class="form_title">Benutzerdefiniert:</td></tr>
    <tr>
    <td><input name="speedk" size="16" value="64"> (Kbps)&nbsp;&nbsp;&nbsp;</td>
    <td><input name="33h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="33m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="33s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <td><input name="speedm" size="16" value="1.536"> (Mbps)&nbsp;&nbsp;&nbsp;</td>
    <td><input name="34h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="34m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="34s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <td><input name="speedg" size="16" value="10240"> (Gbps)&nbsp;&nbsp;&nbsp;</td>
    <td><input name="35h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="35m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="35s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    
    <tr><td colspan="7">&nbsp;</td></tr>
    <tr><td colspan="7" class="form_title">Modem / Netzwerk:</td></tr>
    
    <tr>
    <th>Wireless CDPD (9.6 Kbps)</th>
    <td><input name="1h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="1m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="1s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Modem (14.4 Kbps)</th>
    <td><input name="2h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="2m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="2s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Wireless GSM (19.2 Kbps)</th>
    <td><input name="3h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="3m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="3s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Modem (28.8 Kbps)</th>
    <td><input name="4h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="4m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="4s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Modem (33.6 Kbps)</th>
    <td><input name="5h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="5m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="5s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Modem (56 Kbps)</th>
    <td><input name="6h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="6m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="6s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>ISDN (64 Kbps)</th>
    <td><input name="7h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="7m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="7s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Dual-ISDN (128 Kbps)</th>
    <td><input name="8h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="8m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="8s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Wireless 144 Kbps</th>
    <td><input name="9h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="9m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="9s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>DSL (384 Kbps)</th>
    <td><input name="36h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="36m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="36s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>ADSL (512 Kbps)</th>
    <td><input name="37h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="37m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="37s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>DSL (640 Kbps)</th>
    <td><input name="10h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="10m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="10s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Bluetooth (728 Kbps)</th>
    <td><input name="11h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="11m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="11s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Digital Powerline (1 Mbps)</th>
    <td><input name="12h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="12m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="12s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>T1/DS1, 1.5-DSL (1.5 Mbps)</th>
    <td><input name="13h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="13m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="13s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Wireless 2.4 Mbps</th>
    <td><input name="14h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="14m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="14s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>T2/DS2 (6.1 Mbps)</th>
    <td><input name="15h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="15m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="15s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Satellite (24 Mbps)</th>
    <td><input name="16h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="16m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="16s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Trans-European (34 Mbps)</th>
    <td><input name="17h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="17m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="17s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>Ultraband Cable (40 Mbps)</th>
    <td><input name="18h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="18m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="18s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>T3/DS3 (44.7 Mbps)</th>
    <td><input name="19h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="19m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="19s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>T4/DS4 (274 Mbps)</th>
    <td><input name="20h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="20m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="20s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    
    <tr><td colspan="7">&nbsp;</td></tr>
    <tr><td colspan="7" class="form_title">Fiber Optics:</td></tr>
    
    <tr>
    <th>OC-1 (51.8 Mbps)</th>
    <td><input name="21h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="21m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="21s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-3 (155.5 Mbps)</th>
    <td><input name="22h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="22m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="22s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-9 (466.7 Mbps)</th>
    <td><input name="23h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="23m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="23s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-12 (622 Mbps)</th>
    <td><input name="24h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="24m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="24s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-18 (933.1 Mbps)</th>
    <td><input name="25h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="25m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="25s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-24 (1.2 Gbps)</th>
    <td><input name="26h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="26m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="26s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-36 (1.7 Gbps)</th>
    <td><input name="27h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="27m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="27s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    
    <tr><td colspan="7">&nbsp;</td></tr>
    <tr><td colspan="7" class="form_title">Fiber Optics und Fiberless Optics/Laser:</td></tr>
    
    <tr>
    <th>OC-48 (2.5 Gbps)</th>
    <td><input name="28h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="28m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="28s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-192 (10 Gbps)</th>
    <td><input name="29h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="29m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="29s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-768 (40 Gbps)</th>
    <td><input name="30h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="30m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="30s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>OC-3072 (160 Gbps)</th>
    <td><input name="31h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="31m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="31s" size="3"></td>
    <td>Sek&nbsp;&nbsp;</td>
    </tr>
    <tr>
    <th>DWDM (10 Tbps)</th>
    <td><input name="32h" size="8"></td>
    <td>Std&nbsp;&nbsp;</td>
    <td><input name="32m" size="3"></td>
    <td>Min&nbsp;&nbsp;</td>
    <td><input name="32s" size="3"></td>
    <td>Sek</td>
    </tr>
    
    </table>
    </form>
    </div>
    <script>
    var sizenum = 37;
    var kps = new Array(sizenum);
    kps[1] = "1.2";
    kps[2] = "1.8";
    kps[3] = "2.4";
    kps[4] = "3.6";
    kps[5] = "4.2";
    kps[6] = "7";
    kps[7] = "8";
    kps[8] = "16";
    kps[9] = "18";
    kps[10] = "80";
    kps[11] = "91";
    kps[12] = "136.31488";
    kps[13] = "197.12";
    kps[14] = "307.2";
    kps[15] = "786.432";
    kps[16] = "3072.32768";
    kps[17] = "4362.24";
    kps[18] = "5120";
    kps[19] = "5726.208";
    kps[20] = "35094.528";
    kps[21] = "6635.52";
    kps[22] = "19906.56";
    kps[23] = "59719.68";
    kps[24] = "79626.24";
    kps[25] = "119439.36";
    kps[26] = "163053.568";
    kps[27] = "221249.536";
    kps[28] = "326107.136";
    kps[29] = "1304559.616";
    kps[30] = "5242880";
    kps[31] = "20971520";
    kps[32] = "1342177280";
    
    kps[33] = ""; // benutzerdefiniert
    kps[34] = ""; // benutzerdefiniert
    kps[35] = ""; // benutzerdefiniert
    kps[36] = "48"; // DSL (384 Kbps)
    kps[37] = "64"; // ADSL (512 Kbps)
    
    function calc(factor) {
    	kps[33] = document.grid.speedk.value / 8;
    	kps[34] = document.grid.speedm.value / 8 * 1024;
    	kps[35] = document.grid.speedg.value / 8 * 1024 * 1024;
    
    	if (document.grid.size.value < 1) {
    		document.grid.size.value = "";
    		alert("Es muss eine Dateigröße angegeben werden.");
    	}
    	var filesize = parseFloat(document.grid.size.value);
    	for (x = 1; x <= sizenum; x++) {
    		var filetime = (factor * filesize) / ((kps[x] / 100) * document.grid.efficiency.value);
    		hourmod = filetime % 3600;
    		hour = Math.floor(filetime / 3600);
    		minute = Math.floor(hourmod / 60);
    		second = Math.floor(filetime % 60);
    		document.grid[x + "h"].value = hour;
    		document.grid[x + "m"].value = minute;
    		document.grid[x + "s"].value = second;
    	}
    }
    
    function stat(x) {
    	window.status = x;
    	setTimeout(window.status="", 1500);
    }
    
    function go(x) {
    	location = x;
    }
    
    function checkefficiency() {
    	var ef = document.grid.efficiency.value;
    	if (ef<1) document.grid.efficiency.value="1";
    	if (ef>100) document.grid.efficiency.value="100";
    }
    </script>
    </body>
    </html>