$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
-// $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){
-// var menuImg = $(this).parent('li').prop('id');
-// var menuNum = menuImg.match(/\d+/)[0];
-// var menuImgSrc = 'img_for_menu_' + menuNum;
-// if (window['img_for_menu_' + menuNum]) {
-// $(this).find('li.image-placeholder').html('<img src="' + eval(menuImgSrc) + '">');
-// } else {
-// $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul');
-// $(this).find('li.image-placeholder').remove();
-// }
-// });
$("#blog-posts-over").find(".ai1ec-event-footer").remove();
// Vendor Registration DOB input3_3
$( "#input_3_3" ).datepicker({
buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
buttonImageOnly: true
});
-
- // caching menu elements
+
+ // caching menu elements
var $menu1 = $(".top-bar-section > ul")
.children("li")
.eq(0)
.children("li")
.eq(5)
.children("ul.sub-menu.dropdown");
-
+
// adjusting nav menu columns and li width
$menu1
.css("max-height", "290px")
$(".side-links").find("h1").replaceWith(function(){
return $("<h2 />", {html: $(this).html()});
});
-
+
// current page active link highlighting
$('.side-links ul li a').each(function() {
if ($(this).prop('href') == window.location.href) {
$(this).parent("li").addClass("current");
}
});
-
-
+ function reloadImg() {
+ $('#cam1').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoNECam.jpg?i=' + Math.random());
+ $('#cam2').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoNWCam.jpg?b=' + Math.random());
+ $('#cam3').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoAirCam.jpg?b=' + Math.random());
+ $('#cam4').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoAnimalCam.jpg?b=' + Math.random());
+ $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random());
+ setTimeout("reloadImg()", 10000);
+ }
+ reloadImg();
+
/* get number of elements in DOM console.log($("*").length);
var pageBytes = $('html').html().length;
var kbytes = pageBytes / 1024;
console.log(kbytes); */
-
+
//console.log('ul = ' + menuImg);
//console.log('menu-id = ' + menuNum);
});
$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
-// $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){
-// var menuImg = $(this).parent('li').prop('id');
-// var menuNum = menuImg.match(/\d+/)[0];
-// var menuImgSrc = 'img_for_menu_' + menuNum;
-// if (window['img_for_menu_' + menuNum]) {
-// $(this).find('li.image-placeholder').html('<img src="' + eval(menuImgSrc) + '">');
-// } else {
-// $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul');
-// $(this).find('li.image-placeholder').remove();
-// }
-// });
$("#blog-posts-over").find(".ai1ec-event-footer").remove();
// Vendor Registration DOB input3_3
$( "#input_3_3" ).datepicker({
buttonImage: "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
buttonImageOnly: true
});
-
- // caching menu elements
+
+ // caching menu elements
var $menu1 = $(".top-bar-section > ul")
.children("li")
.eq(0)
.children("li")
.eq(5)
.children("ul.sub-menu.dropdown");
-
+
// adjusting nav menu columns and li width
$menu1
.css("max-height", "290px")
$(".side-links").find("h1").replaceWith(function(){
return $("<h2 />", {html: $(this).html()});
});
-
+
// current page active link highlighting
$('.side-links ul li a').each(function() {
if ($(this).prop('href') == window.location.href) {
$(this).parent("li").addClass("current");
}
});
-
-
+ function reloadImg() {
+ $('#cam1').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoNECam.jpg?i=' + Math.random());
+ $('#cam2').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoNWCam.jpg?b=' + Math.random());
+ $('#cam3').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoAirCam.jpg?b=' + Math.random());
+ $('#cam4').attr('src','http://www.otsegocountymi.gov/images/resizedOtsegoCoAnimalCam.jpg?b=' + Math.random());
+ $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random());
+ setTimeout("reloadImg()", 10000);
+ }
+ reloadImg();
+
/* get number of elements in DOM console.log($("*").length);
var pageBytes = $('html').html().length;
var kbytes = pageBytes / 1024;
console.log(kbytes); */
-
+
//console.log('ul = ' + menuImg);
//console.log('menu-id = ' + menuNum);
});