added dynamic footer cam image
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 18 Jan 2016 20:43:22 +0000 (15:43 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 18 Jan 2016 20:43:22 +0000 (15:43 -0500)
footer.php
js/app.js
js/custom/pageSetup.js

index 6a09c1c..b627334 100644 (file)
                                     <div class="small-11 small-centered medium-uncentered medium-4 columns item">
                                         <div id="webcam" class="block">
                                             <a href="<?php echo esc_url( get_permalink( 2743 ) ) ?>"><h5>Webcams</h5></a>
-                                            <a href="<?php echo esc_url( get_permalink( 2743 ) ) ?>"><img height="187" width="200" src="http://www.otsegocountymi.gov/images/resizedOtsegoCoNECam.jpg?i=0.2527406525644603"></a>
+                                            <a href="<?php echo esc_url( get_permalink( 2743 ) ) ?>"><img id="cam1" height="187" width="200" src=""></a>
                                         </div>
+                                    <script type="text/javascript">
+                                        function reloadImg()
+                                        {
+                                            document.getElementById('cam1').setAttribute('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoNWCam.jpg?i=' + Math.random());
+                                            setTimeout('reloadImg()', 10000);
+                                        }
+                                        reloadImg();
+                                        </script>
                                     </div>
                                     <div class="small-11 small-centered medium-uncentered medium-4 columns item">
                                         <div class="block">
index c7af6d9..4e9f003 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -125,6 +125,7 @@ $(document).ready(function () {
             $('.excerpt' + i).text(chars);
         }
     }
+   
    /* get number of elements in DOM console.log($("*").length);
     var pageBytes = $('html').html().length;
     var kbytes = pageBytes / 1024;
index 40ea86d..cdfc074 100644 (file)
@@ -116,6 +116,7 @@ $(document).ready(function () {
             $('.excerpt' + i).text(chars);
         }
     }
+   
    /* get number of elements in DOM console.log($("*").length);
     var pageBytes = $('html').html().length;
     var kbytes = pageBytes / 1024;