From: Steve Sutton Date: Mon, 1 Feb 2016 21:06:31 +0000 (-0500) Subject: js function name updates X-Git-Tag: v1.0.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c73b7600981905d3aa28e7dd28e53160f7f01b0c;p=WP-Themes%2Fotsego.git js function name updates --- diff --git a/js/app.js b/js/app.js index 025432f..19d6e31 100644 --- a/js/app.js +++ b/js/app.js @@ -99,15 +99,15 @@ $(document).ready(function () { $(this).parent("li").addClass("current"); } }); - function reloadImg() { + function glmReloadImg() { $('#cam1').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoNWCam.jpg?b=' + Math.random()); $('#cam2').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoNECam.jpg?i=' + Math.random()); $('#cam3').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAirCam.jpg?b=' + Math.random()); $('#cam4').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random()); $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random()); - setTimeout("reloadImg()", 1000); + setTimeout("glmReloadImg()", 10000); } - reloadImg(); + glmReloadImg(); /* get number of elements in DOM console.log($("*").length); var pageBytes = $('html').html().length; diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index ca3de62..3004c8e 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -90,15 +90,15 @@ $(document).ready(function () { $(this).parent("li").addClass("current"); } }); - function reloadImg() { + function glmReloadImg() { $('#cam1').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoNWCam.jpg?b=' + Math.random()); $('#cam2').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoNECam.jpg?i=' + Math.random()); $('#cam3').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAirCam.jpg?b=' + Math.random()); $('#cam4').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random()); $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random()); - setTimeout("reloadImg()", 1000); + setTimeout("glmReloadImg()", 10000); } - reloadImg(); + glmReloadImg(); /* get number of elements in DOM console.log($("*").length); var pageBytes = $('html').html().length;