js/mips.js
/*
 * browsermips js. handles various ui tasks, and does the work
 * of submitting the users result to the server
 */
browsermips js. handles various ui tasks, and does the work
of submitting the users result to the server
browsermips js . handles various ui tasks and does the work of submitting the users result to the server
function mip_init()
{
	$('bm-b-data-b').innerHTML = BrowserDetect.browser + ' ' + BrowserDetect.version;
	$('bm-b-data-os').innerHTML = BrowserDetect.OS;
	setTimeout("MipsUi.setMips(BrowserMips.calcuate());", 500);
	setInterval("MipsUi.setMips(BrowserMips.calcuate());", 5000);
	setTimeout("MipsUi.submitScoreAuto();", 10000);
}
function mip_init ( ) { $ ( 'bm-b-data-b' ) . innerHTML = BrowserDetect . browser + ' ' + BrowserDetect . version ; $ ( 'bm-b-data-os' ) . innerHTML = BrowserDetect . OS ; setTimeout ( "MipsUi.setMips(BrowserMips.calcuate());" , 500 ) ; setInterval ( "MipsUi.setMips(BrowserMips.calcuate());" , 5000 ) ; setTimeout ( "MipsUi.submitScoreAuto();" , 10000 ) ; }
browsermips js.
browsermips js .
// set the browser information // calcuate the mip rating, and show it to the user. We wait 500ms for the intial rating // to make it more accurate. Then update every 5 seconds after that. // submit the score automatically after 10 seconds.