{:uriI"file:///Users/nz/Projects/virgo/app/assets/javascripts/virgo/posts/show.coffee?type=application/javascript&pipeline=self&id=9fe3c972b576875848589bd460b2a2df0ce05f3ca247c3d99f56f88a18902cb2:ET:load_pathI"4/Users/nz/Projects/virgo/app/assets/javascripts;F: filenameI"L/Users/nz/Projects/virgo/app/assets/javascripts/virgo/posts/show.coffee;T: nameI"virgo/posts/show;T:logical_pathI"virgo/posts/show.self.js;T:content_typeI"application/javascript;T:sourceI"(function() { var PostShow, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; PostShow = (function() { function PostShow() { this.track = bind(this.track, this); this.is_video_embed_url = bind(this.is_video_embed_url, this); this.convert_videos_to_responsive = bind(this.convert_videos_to_responsive, this); this.convert_videos_to_responsive(); this.track(); } PostShow.prototype.convert_videos_to_responsive = function() { var self; self = this; return $(".post-body iframe").each(function() { var $iframe, $wrapper; $iframe = $(this); if (self.is_video_embed_url($iframe.attr('src'))) { $wrapper = $("
"); $iframe.removeAttr("width").removeAttr("height").addClass("embed-responsive-item video-embed"); return $iframe.wrap($wrapper); } }); }; PostShow.prototype.is_video_embed_url = function(url) { var provider; provider = url.match(/https?:\/\/(:?www.)?(\w*)/)[2]; if (provider === 'youtube' || provider === 'vimeo' || provider === 'player' || provider === 'youtu.be') { return true; } return false; }; PostShow.prototype.track = function() { return setTimeout(function() { return $.get($(".post").attr("data-tracking-uri")); }, 500); }; return PostShow; })(); window.PostShow = PostShow; }).call(this); ;T: metadata{:dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Zfile-digest:///Users/nz/Projects/virgo/app/assets/javascripts/virgo/posts/show.coffee;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"% y@gz7nt9%:lengthi:dependencies_digest"%x8֗x5& uCʥw:idI"E9fe3c972b576875848589bd460b2a2df0ce05f3ca247c3d99f56f88a18902cb2;F: mtimel+jU