El libre pensamiento para un internet libre
No estas registrado.
Paginas:: 1
os dejo el código fuente de la calculadora en html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>mW to db Conversion</title>
</head>
<body onload="type_text()" style="background-color: rgb(0, 0, 0); color: rgb(153, 0, 0); background-image: url(http://www.madtomatoe.com/wp-content/uploads/2010/11/matrix-animated-image.gif);" alink="#000000" link="#0000cc" vlink="#000066"><font color="yellow">
<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<TR>
<TD>
<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
<table width="100%" border="0" cellspacing="10" cellpadding="10">
<tr>
<td>
<table align="center" summary="" border="1" cellspacing="0" cellpadding="4" width="450" class="norm">
<tr>
<a name="db_calc"></a><h1><font color="orange">dBm to Watts Calculations</h1>
<ol>
</p><font color="yellow">1. mW to dBm = 10Log<sub>10</sub>(Watts) + 30</p>
</p><font color="yellow">2. dBm to mW = 10<sup>(dBm/10)</sup)</p>
<table summary="" border="1" cellspacing="0" cellpadding="4" width="450" align="center" class="norm">
<tr>
<td class="section"><a name="dbm"></a><font color="orange">milliWatts to dBm (and vice versa)
</td>
</tr>
<tr>
<td><p><font color="orange"><b>Power in milliWatts to dBm (<font color="+1 blue">and vice versa</font>) . <font color="orange">Enter the '<font color="+1 blue">Transmit Power</font>'<b><font color="orange"> in <font color="+1 blue">'milliWatts'</b><font color="orange"> OR the <font color="+1 blue">'Power Ratio'<font color="orange"> in <b><font color="+1 blue">dBm</b><font color="orange"> and click the appropriate button.<font color="+1 blue">'Calculate'<font color="orange"><font color="red"><br> 1 Watt = 1000 milliWatts.</font></p>
<form name="calcdbm" action"" method="get">
<table summary="" border="0" cellspacing="0" width="100%" cellpadding="4" class="norm">
<tr valign="top">
<td class="g-h-n" width="150">Transmit Power</td>
<td width="150"> </td>
<td width="140" align="center">Result</td>
</tr>
<tr valign="top">
<td><input id="dbmmw" type="text" size="10"><b><font color="green +2"></br>mW</font></b></td>
<td align="center"><input id="dbmcalc" type="button" value="Calculate" onclick='document.getElementById("rdbm").value = to_dbm(document.getElementById("dbmmw").value); return(0);'></td>
<td align="right"><input id="rdbm" type="text" size="10"><b><font color="green +2"> dBm</font></b></td>
</tr>
<tr valign="top">
<td class="g-h-n">Power Ratio</td>
<td> </td>
<td align="center">Result</td>
</tr>
<tr valign="top">
<td><input id="udbm" type="text" size="10"><b><font color="green +2"></br> dBm</font></b></td>
<td align="center"><input id="mwcalc" type="button" value="Calculate" onclick='document.getElementById("umw").value = from_dbm(document.getElementById("udbm").value); return(0);'></td>
<td align="right"><input id="umw" type="text" size="10"><b><font color="green +2"> mW</font></b></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Copyright CRASH, Inc. 2012 - 2014
// You are welcome to copy or use this script for non-commercial purposes
// We prefer you leave in this Copyright statement but don't insist on it
// if you make improvements send us a copy or make the code available on your
// own web site.
// NO WARRANTY OR FITNESS FOR PURPOSE UNDERTAKEN - USE AT YOUR OWN RISK
// global variables
var mw; // milliwatts
var w; // watts
var dbm; // dBm
var dbw; // dBW
var num; // intermediate results
var db; // work variable
function round(number,places) {
// rounding numbers default = 3
places = (!places ? 3 : places);
return Math.round(number*Math.pow(10,places))/Math.pow(10,places);
}
function log10(x) {
// Log 10 calculation
return(Math.log(x) / Math.log(10));
}
function from_dbm(u_dbm) {
// convert dbm to watts and milliwatts
dbm = parseFloat(u_dbm);
// validate dbm range
if ((isNaN(dbm)) || (dbm < -110) || (dbm > 100))
{
window.alert("dBm range from -110 to 100");
return("Error");
}
mw = Math.pow(10,dbm / 10);
return(round(mw,3));
}
function to_dbm(u_mw) {
w = parseFloat(u_mw);
// validate milliwatts range
if ((isNaN(w)) || (w < 0) || (w > 20000))
{
window.alert("millWatts range = 0 to 20,000");
return("Error");
}
w = log10(w) / log10(10);
dbm = round((10 * w),3);
return(dbm);
}
function check_dbm(u_dbm, u_mw)
{
// normalise power to dbm
if(u_dbm == "")
{
dbm = to_dbm(u_mw);
}
else
{
dbm = parseFloat(u_dbm);
}
//validate dbm range
if ((isNaN(dbm)) || (dbm < -110) || (dbm > 100))
{
window.alert("dBm range from -110 to 100");
return("Error");
}
return(dbm);
}
function power_budget()
{
if((dbm = check_dbm(document.getElementById("bdbm").value, document.getElementById("bmw").value)) == "Error")
{
return ("Error");
}
// result for gains
radan_tot = dbm + db;
document.getElementById("brr").value = round(dbm + db,3);
}
//-->
</script>
<script language="Javascript">document.oncontextmenu = function(){return false}</script>
<noframes><iframe><noscript><xmp><pre>
</body>
</html>
acabo de añadir a Result el centrado que salia a la izquierda, los que ya la hayáis copiado modificar esta linea
<td width="140">Result</td>
por esta otra. Es la linea 37
<td width="140" align="center">Result</td>
Ultima edición por crash (01-12-2017 01:29:02)
Desconectado
esta chulo xD
quien son los tomates malvados???
despues de darle a continuar y aceptar los certificados caducados sale tambien el rollo matrix
saludos
Desconectado
Me alegra que te guste, y que te sea útil. yo tambien la uso en el móvil, de manera offline asi puedo hacer siempre la conversión de dbm a mW y viceversa.
eso es de tu konkeror, a mi no me dice nada de permisos ni certificados, y no se quien son los tomates malvados, pero me gusto el gif. jajajajajaja
Ultima edición por crash (30-11-2017 15:46:38)
Desconectado
lo acabo de probar en firefox y no sale el rollo matrix el fondo solo es negro,
que da lo mismo pero te lo informo xD
si debe ser konqueror en firefox no me dice nada.
madtomatoe es la url o servidor de donde sale el gif de matrix moviendose,
lo deberias de saber si lo has hecho tu xD
por eso no me salia en firefox porque lo probe offline,
misterio resuelto xD
Ultima edición por d1k0w0ns (30-11-2017 15:52:50)
Desconectado
jajajaja pruebalo en chrome, veras que no te da fallos ningunos, konkeror esta basado en firefox.
Desconectado
konqueror esta basado en konqueror xD
Desconectado
konqueror esta basado en konqueror xD
La interfaz de usuario de Konqueror es en parte reminiscente de la del Microsoft Internet Explorer (a su vez diseñada a partir de la del Netscape Navigator y la del NSCA Mosaic), aunque es mucho más personalizable. konkeror
da igual en lo que este basado, cuando no hay conexión a internet se queda en negro el background, odio el fondo blanco. jajajajaja, y aqui porque no queda mas remedio sino tambien lo tendria negro.
Desconectado
en negro queda bien cuando llevas mucho con matrix debe cansar xD
si te gusta matix prueba esto , es una tonteria eh jeje
http://www.asty.org/cmatrix/
Desconectado
eso en la terminal me marea, ya lo probe hace un par de años atrás, jajajajaja la pagina que tenia antes tenia de fondo ese gif. asi si fallaba el servidor veía lo que pasaba al no salir las letras, jejejeje.
Desconectado
Es original me gusta tambien
Desconectado
merci, koala
Desconectado
lo acabo de probar en firefox y no sale el rollo matrix el fondo solo es negro,
que da lo mismo pero te lo informo xDsi debe ser konqueror en firefox no me dice nada.
madtomatoe es la url o servidor de donde sale el gif de matrix moviendose,
lo deberias de saber si lo has hecho tu xD
por eso no me salia en firefox porque lo probe offline,
misterio resuelto xD
jajajajaja tu traductor esta un poco borracho. mad es maduro, bad es malo,
osea que son tomates maduros, no tomates malvados. pero vamos que no los conozco a los tíos que llevan la pagina personalmente. ademas si te fijas en el código fuente veras que no es reciente es entre el 2012 y 2014.
te lo traduzco porque veo que esta de cachondeo tu traductor jejejejeje. espero que no te ofendas, es coñac (coña) o whisky
// Copyright CRASH, Inc. 2012 - 2014
// Le invitamos a copiar o usar este script para fines no comerciales
// Preferimos que se vaya en esta declaración de Copyright, pero no insista en ello
// si realiza mejoras envíenos una copia o haga que el código esté disponible en su
// propio sitio web.
// SIN NINGUNA GARANTÍA O IDONEIDAD PARA LA EMPRESA DE PROPÓSITO - UTILIZAR BAJO SU PROPIO RIESGO
// Copyright CRASH, Inc. 2012 - 2014
// You are welcome to copy or use this script for non-commercial purposes
// We prefer you leave in this Copyright statement but don't insist on it
// if you make improvements send us a copy or make the code available on your
// own web site.
// NO WARRANTY OR FITNESS FOR PURPOSE UNDERTAKEN - USE AT YOUR OWN RISK
en offline sale en negro.
en online sale matrix. jejejejejeje
Ultima edición por crash (30-11-2017 23:47:25)
Desconectado
Paginas:: 1
Tema | Respuestas | Vistas | Ultimo mensaje |
---|---|---|---|
¡Vienen grandes cambios! por Takomou
|
2 | 247 | 29-05-2023 15:25:52 por Patcher |
Pegado: |
521 | 340555 | 10-05-2023 18:24:28 por Betis-Jesus |
|
27 | 1264 | 09-05-2023 21:32:44 por kcdtv |
Hacktivismo por CHARGER22
|
1 | 214 | 08-05-2023 19:53:26 por kcdtv |
Pegado: |
447 | 66158 | 22-04-2023 15:31:13 por kcdtv |
Ultimo usuario registrado: klurosu
Usuarios registrados conectados: 0
Invitados conectados: 15
Número total de usuarios registrados: 2,446
Número total de temas: 1,637
Número total de mensajes: 15,586
Atom tema feed - Impulsado por FluxBB