<!DOCTYPE html>
<html>
  <head>
    <title>demo</title>

    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
	<script type="text/javascript" charset="utf-8" src="http://192.168.1.102/apk/on.js"></script>
  </head>
  <body>
  <font size=7 color=blue>
  ver0111: <p>
  <p id="log"></p>
  </font>
  </body>

  
<script type="text/javascript" charset="utf-8">
young_log("init00--");
document.addEventListener('deviceready', onDeviceReady, false);
young_log("init01--");
var ready = false;

young_log("before while.");
/*while(true)
{
	if(ready == true)
	{
		break;
	}
}
young_log("ready detected.");
*/
young_log("ready:" + ready);
//sleep(5000);
young_log("ready:" + ready);


//---------------------------
function sleep(d){
  for(var t = Date.now();Date.now() - t <= d;);
}
 


function young_log(message)
{
	document.getElementById("log").innerHTML += (message + "<p>");
}

    </script>
 
</html>
