Archive for the ‘jQuery’ Category

Vimeo Embeds on the iPhone

Vimeo does not (at the time of this writing) have an iPhone/Pad version of their embed code. After seeing this solution , I had a need to do something similar but with all Vimeo embeds sitewide.
jQuery to the rescue and must be included for this to work – best used in a dom ready event.

[...]

Simple JQuery to resize embeds

Sometimes Youtube or other embeds may not work in a given site layout.
Here is a bit of jQuery that loops over each object or embed tag and sizes them according to a maximum width, while respecting the aspect ratio.
Since this is a javascript solution, a visitor must have js enabled for the resizing to [...]