{:uriI"file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js?type=application/javascript&pipeline=self&id=bd3bcb5d81d3b294e8ad9c64a03e9e2fe8ef30bdf80069f86324e3ba0ce3ddc5:ET:load_pathI"F/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts;T: filenameI"e/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js;T: nameI" forever_style_guide/popover;T:logical_pathI"(forever_style_guide/popover.self.js;T:content_typeI"application/javascript;T: sourceI"$(function () { $('[data-toggle="popover"]').popover(); }); $.fn.popover.Constructor.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : placement == 'bottomleft' ? { top: pos.top + pos.height, left: (pos.left - actualWidth+ pos.width) } : placement == 'bottomright' ? { top: pos.top + pos.height, left: pos.left } : /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width } }; $.fn.popover.Constructor.prototype.replaceArrow = function (delta, dimension, isHorizontal) { var $arrow = this.arrow(); var arrowWidth = $arrow[0].offsetWidth; var arrowHeight = $arrow[0].offsetHeight; var $tip = this.tip(); var tipWidth = $tip[0].offsetWidth; var tipHeight = $tip[0].offsetHeight; var $button = this.$element; var buttonWidth = $button[0].offsetWidth; var buttonHeight = $button[0].offsetHeight; switch(this.options.placement) { case "bottomleft": var centerOfButton = tipWidth - buttonWidth / 2; this.arrow().css('left', centerOfButton + "px"); break; case "bottomright": var centerOfButton = buttonWidth / 2; this.arrow().css('left', centerOfButton + "px"); break; default: this.arrow() .css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') .css(isHorizontal ? 'top' : 'left', '') } }; ;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"sfile-digest:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%T((l08B. X9G͢;: lengthi:dependencies_digest"% BɃES8piR'r.S7M:idI"Ebd3bcb5d81d3b294e8ad9c64a03e9e2fe8ef30bdf80069f86324e3ba0ce3ddc5;F: mtimel+-9V