Code Examples
event observation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!-- This example shows you how to observe CameraTag events and react to them. (Here we observe the intialized event and fire an alert) --> <html> <head> <script src='//www.cameratag.com/v16/js/cameratag.min.js' type='text/javascript'></script> <link rel='stylesheet' href='//www.cameratag.com/v16/css/cameratag.css'></link> <script> CameraTagCamera.observe("DemoCamera", "initialized", function(){ alert("Camera Initialized!"); }) </script> </head> <body> <camera id='DemoCamera' data-app-id='63f9c870-72c4-0130-04c5-123139045d73'></camera> </body> </html> |
