From 82812c6e679d890c0e887e56027293a15e3bc003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20In=C3=A1cio?= Date: Wed, 12 Feb 2020 15:09:40 -0300 Subject: [PATCH] Update script file Include reset camera event --- static/script.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/static/script.js b/static/script.js index 3606b48..0c5a7ca 100644 --- a/static/script.js +++ b/static/script.js @@ -64,3 +64,14 @@ $(function() { return false; }); }); + +$(function() { + // reset camera + $('a#reset-cam').bind('click', function() { + $.getJSON('/reset_camera', + function(data) { + // do nothing + }); + return false; + }); +});