setTimeout(function(){ // Slight delay to avoid a jumpy transition
$('#sticky-footer').css({'position' : get_footer_position});
}, 200);
- }
+ }
});
// Set footer position on load
else if (bottom <= top_of_footer) {
return 'fixed';
}
-};
-$(function(){
+}
+
+
+;$(function(){
if ($('.weather-widget').length && $('.weather-widget-popup').length) {
$('.weather-widget').appendTo($('.weather-widget-popup'));
$('.weather-widget-popup > a').on('click', function(){
- if ($('.weather-widget').is(':visible')) {
+ if ('.weather-widget').is(':visible') {
$('.weather-widget').css({'display': 'none'});
}
else {
if ($('.weather-widget').length && $('.weather-widget-popup').length) {
$('.weather-widget').appendTo($('.weather-widget-popup'));
$('.weather-widget-popup > a').on('click', function(){
- if ($('.weather-widget').is(':visible')) {
+ if ('.weather-widget').is(':visible') {
$('.weather-widget').css({'display': 'none'});
}
else {