{:uriI"file:///Users/admin/projects/rails_db/app/assets/javascripts/rails_db/sticky.js?type=application/javascript&pipeline=self&id=a578b3fca19bcc2b3315a7189970eac265c922573c76ea7c384e23ef549508eb:ET:load_pathI":/Users/admin/projects/rails_db/app/assets/javascripts;T: filenameI"M/Users/admin/projects/rails_db/app/assets/javascripts/rails_db/sticky.js;T: nameI"rails_db/sticky;T:logical_pathI"rails_db/sticky.self.js;T:content_typeI"application/javascript;T: sourceI"window.onload = function() { stickyFooter(); }; function checkForDOMChange() { stickyFooter(); }; window.onresize = function() { stickyFooter(); }; function getCSS(element, property) { var elem = document.getElementsByTagName(element)[0]; var css = null; if (elem.currentStyle) { css = elem.currentStyle[property]; } else if (window.getComputedStyle) { css = document.defaultView.getComputedStyle(elem, null). getPropertyValue(property); } return css; }; function stickyFooter() { if (document.getElementsByTagName("footer")[0].getAttribute("style") != null) { document.getElementsByTagName("footer")[0].removeAttribute("style"); } if (window.innerHeight != document.body.offsetHeight) { var offset = window.innerHeight - document.body.offsetHeight; var current = getCSS("footer", "margin-top"); if (isNaN(current) == true) { document.getElementsByTagName("footer")[0].setAttribute("style","margin-top:0px;"); current = 0; } else { current = parseInt(current); } if (current+offset > parseInt(getCSS("footer", "margin-top"))) { document.getElementsByTagName("footer")[0].setAttribute("style","margin-top:"+(current+offset)+"px;"); } } }; ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"[file-digest:///Users/admin/projects/rails_db/app/assets/javascripts/rails_db/sticky.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI"rails_db/sticky.js;TI" mappings;TI"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"sticky.source.js;TI" names;T[I"x_sprockets_linecount;Ti1: charsetI" utf-8;F: digest"%\@^e%q '2u: lengthi:environment_versionI"1.0;T:dependencies_digest"%k~x @BX"B`*~5CdA:idI"Ea578b3fca19bcc2b3315a7189970eac265c922573c76ea7c384e23ef549508eb;F