summaryrefslogtreecommitdiff
path: root/static/webcam/webcam.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/webcam/webcam.js')
-rw-r--r--static/webcam/webcam.js19
1 files changed, 6 insertions, 13 deletions
diff --git a/static/webcam/webcam.js b/static/webcam/webcam.js
index 9829fd7..3e3b4fd 100644
--- a/static/webcam/webcam.js
+++ b/static/webcam/webcam.js
@@ -1,21 +1,11 @@
/* JPEGCam v1.0.8 */
/* Webcam library for capturing JPEG images and submitting to a server */
-/* Copyright (c) 2008 - 2009 Joseph Huckaby <jhuckaby@goldcartridge.com> */
+/* Copyright (c) 2008 - 2009
+ Joseph Huckaby <jhuckaby@goldcartridge.com>
+ AND TIMB, ESQ. <http://bon.gs> */
/* Licensed under the GNU Lesser Public License */
/* http://www.gnu.org/licenses/lgpl.html */
-/* Usage:
- <script language="JavaScript">
- document.write( webcam.get_html(320, 240) );
- webcam.set_api_url( 'test.php' );
- webcam.set_hook( 'onComplete', 'my_callback_function' );
- function my_callback_function(response) {
- alert("Success! PHP returned: " + response);
- }
- </script>
- <a href="javascript:void(webcam.snap())">Take Snapshot</a>
-*/
-
// Everything is under a 'webcam' Namespace
window.webcam = {
version: '1.0.8',
@@ -47,6 +37,9 @@ window.webcam = {
},
uploadCompleted: function(){
+ if (typeof pageTracker !== 'undefined') {
+ pageTracker._trackEvent('Message', 'Webcam', typeof Room !== 'undefined' ? Room : 'UnknownRoom');
+ }
$("#webcam-button-snap").attr("value", "Send Pic")
webcam.reset();
},