diff --git a/application/endpoints.py b/application/endpoints.py index 2b442ba..7459b2b 100644 --- a/application/endpoints.py +++ b/application/endpoints.py @@ -114,7 +114,7 @@ class Camera(Resource): # provides th function used for the live streams class VideoCamera(object): """Video stream object""" - url = "http://131.95.3.162/mjpg/video.mjpg" + url = "https://webcam1.lpl.org/axis-cgi/mjpg/video.cgi" def __init__(self): self.video = cv2.VideoCapture(self.url) diff --git a/application/static/render.js b/application/static/render.js index d84bc59..c75f940 100644 --- a/application/static/render.js +++ b/application/static/render.js @@ -8,7 +8,7 @@ function renderValidate(){ string = ` - + ` ml.innerHTML = string; @@ -17,7 +17,9 @@ function renderValidate(){ function renderChange(){ clearMiddle() + $("#middle-right").removeClass("border-danger").removeClass("border-success") console.log("change") + } function renderEnrole(){ clearMiddle() @@ -44,6 +46,7 @@ function renderEnrole(){ ` mr.innerHTML = string2; + $("#middle-right").removeClass("border-danger").removeClass("border-success") } function renderIdentify(){ clearMiddle() @@ -54,4 +57,5 @@ function renderIdentify(){ ` ml.innerHTML = string; + $("#middle-right").removeClass("border-danger").removeClass("border-success") } \ No newline at end of file diff --git a/application/templates/index.html b/application/templates/index.html index 211dcd7..ad19eac 100644 --- a/application/templates/index.html +++ b/application/templates/index.html @@ -32,7 +32,7 @@