1 <meta name="apple-touch-fullscreen" content="YES" />2 <meta name="apple-mobile-web-app-capable" content="yes" />3 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />4 <h1>LOggER V1.1</h1>5 6 <script type="text/javascript">7 8 logger.log(9 {10 'my_string':'This is my example',11 'my_number':256,12 'my_list':[1,2,4,8,16,32,64,128],13 'my_object':{14 'a':'Letter A',15 'b':['a','e','i','o','u'],16 'my_null':null17 }18 }19 );20 21 var c = logger.log('Counter: ');22 c.counter = 0;23 logger.show();24 25 function example() {26 c.counter++;27 c.innerHTML = 'Counter: '+c.counter;28 setTimeout(example,10);29 }30 example();31 32 /*33 window.addEventListener('load', function(){34 // Sample of a counter:35 var c = logger.log('hello');36 for (i=0; i<10; i++) {37 c.innerHTML += ' world';38 alert(i);39 }40 }, true);*/41 42 </script>
Este ShareCode tiene versiones:
- LOggER V1.2 ... (12/11/2012)
- LOggER V1.1 logger.log( ... (24/04/2013)
- LOggER V1.1 logger.log( ... (24/04/2013)
- LOggER V1.1 logger.log( ... (24/04/2013)
- LOggER V1.1 logger.log( ... (24/04/2013)
- LOggER V1.1 logger.log( ... (24/04/2013)
Enlace
El enlace para compartir es: