/* Just a little sumtin' to add vimeo videos while preserving accessibility content for screen readers. Author: Daniel Angel Date: 18/X/2010 */ (function($){ $.fn.addVimeo = function(options) { var defaults = { id: 3111841, //This default video *really* ties the website together width: 400, height: 267, replace: true }; var options = $.extend(defaults, options); $(this).each(function(i){ var o = options; var the_code = ''; if(o.replace === true) { $(this).html(the_code); } else { $(this).prepend(the_code); } }); }; })(jQuery);