Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
- <title>PhoneGap Console</title>
- <link rel="stylesheet" type="text/css" href="style.css" />
- <script type="text/javascript">
- function onLoad() {
- var counter = 0;
- var id = setInterval(function() {
- counter++;
- console.log("Hello from console.log " + counter);
- }, 350);
- setTimeout(function() {
- clearTimeout(id);
- }, 5000);
- }
- </script>
- </head>
- <body onload="onLoad();">
- <ul id="console"></ul>
- <script type="text/javascript" src="phonegap-console.js"></script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment