My site is upgraded, however, when I try to insert my Javascript snippet via the custom tracking tools, nothing happens. Granted, it’s not a tracking tool, we’re trying to embed a webcam feed. I’ve set up a hidden page to test this, and when I check the page, it’s absolutely blank. I’ve tried it in all three available locations: head, body start, and body ed. Any advice from anyone? This is one of three webcam feeds we’re trying to insert.
<script>
TIMEOUT = 750;
errorcounter = 0;
var refreshInterval;
$(document).ready(function() {
// Active camera will refresh every 2 seconds
refreshInterval = setInterval(function() {
var random = Math.floor(Math.random() * Math.pow(2, 31));
$(‘img#camera’).attr(‘src’, ‘http://107.170.210.163:3000/camera?i=’ + Math.random());
}, TIMEOUT);
});
function imgError(image) {
image.src = “http://www.fourpawsdaycare.com/wp-content/uploads/2015/12/404camera.gif”;
return true;
}