~rick-rickspencer3/+junk/rest-cam

« back to all changes in this revision

Viewing changes to templates/index.html

  • Committer: Rick Spencer
  • Date: 2016-01-11 23:25:06 UTC
  • Revision ID: rick.spencer@canonical.com-20160111232506-1yp2febsnsnwm01a
use localhost for api call

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    timer = setInterval(update_img, refreshRate);
10
10
 }
11
11
 function update_img() {
12
 
    document.getElementById("cam_img").src = "http://192.168.1.100:8082/api/photo?" + i
 
12
    document.getElementById("cam_img").src = "http://localhost:8082/api/photo?" + i
13
13
    i++
14
14
 }
15
15
 function update_refresh() {