Up and running again, plus senstool source/portable

Hi again!
It has been a while since i wrote something.
Since I’v been away for the holidays visiting family, I did turn of the server for a while, but now I’m back.

When I was gone I didn’t think about people needing the senstool that I wrote.
iamdaniel from esreality.com ask me to make a portable version that can be used if my server is down again, so why not, I’m not gonna be sneaky with the source code. I was gonna release it anyways, but I just thought it looked so messy, and then I kinda forgot about it.

Just copy this code (same as below) into a .html file, save, and you should be good to go.
Then just open in your favorite web browser.

<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Sensitivity calculation for Quake Live </title>
		<script>
			function calc(){
		
				// get info from forms
				var old_dpi=document.getElementById('old_dpi').value;
				var new_dpi=document.getElementById('new_dpi').value;
				var sens=document.getElementById('sens').value;
				var accel=document.getElementById('accel').value;
				var yaw=document.getElementById('yaw').value;
				
			
				// calculate new accel and sens
				var bas = old_dpi/new_dpi;
				var exponent = 2;	
				var newint = Math.pow(bas, exponent);

				var new_sens=sens*(old_dpi/new_dpi);
				var new_accel=accel*newint;
				var new_cm = (360/ (yaw*new_dpi*1*new_sens )) * 2.54;
				


				document.getElementById('result').innerHTML="<b>New sens: </b>" + new_sens + "</br><b> New accel: </b>" + 	new_accel + "</br><b>CM/360: </b>" + new_cm ;
				return false;
			}
		</script>
	</head>
	<body>	
		<b>Quake Live sensitivity and acceleration calculation:</b>

<form>

<div title="Your old mouse dpi"><b>old dpi: </b><input type="text" onChange="calc()" id="old_dpi" value="400" onblur="if(this.value==''){ this.value='400'; this.style.color='#BBB';}" onfocus="if(this.value=='400'){ this.value=''; this.style.color='#000';}" style="color:#BBB;"/></div>


<div title="Your new mouse dpi."><b>new dpi: </b><input type="text" onChange="calc()" id="new_dpi" value="500" onblur="if(this.value==''){ this.value='500'; this.style.color='#BBB';}" onfocus="if(this.value=='500'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 4"><b>sensitivity:  </b><input type="text" onChange="calc()" id="sens" value="4" onblur="if(this.value==''){ this.value='4'; this.style.color='#BBB';}" onfocus="if(this.value=='4'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 0.0"><b>cl_mouseAccel:  </b><input type="text" onChange="calc()" id="accel" value="0.0" onblur="if(this.value==''){ this.value='0.0'; this.style.color='#BBB';}" onfocus="if(this.value=='0.0'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 0.0222"><b>m_yaw: </b><input type="text" onChange="calc()" id="yaw" value="0.022" onblur="if(this.value==''){ this.value='0.022'; this.style.color='#BBB';}" onfocus="if(this.value=='0.022'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>



<b>Windows multiplier: </b><input type="text" onChange="calc()" id="yaw" value="1" onblur="if(this.value==''){ this.value='1'; this.style.color='#BBB';}" onfocus="if(this.value=='1'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" />

 


			<input type="button" onClick="calc()" value="Calculate" />
		</form>


<div id="result"></div>

	</body>
</html>

¡MAYDAY! – Ten Thirty Three 

Men in grey suits selling lives, gettin’ paid / Making us all slaves for a little chump change / And all the signs on the wall read something blood red / But they can’t stop us all with one bullet to the head

Source: ¡MAYDAY! – Ten Thirty Three Lyrics | Genius

7 The Doors Lyrics That Were Before Their Time, Because They Knew People Are Strange 

If the doors of perception were cleansed every thing would appear to man as it is, infinite.

Source: 7 The Doors Lyrics That Were Before Their Time, Because They Knew People Are Strange When You’re A Stranger | Bustle