Skip to content

Instantly share code, notes, and snippets.

@harrygreen
harrygreen / clip-clop-clippity-clop.markdown
Created August 15, 2019 12:32
Clip Clop Clippity Clop
@harrygreen
harrygreen / gist:1087a7497dbc364ee356
Last active February 11, 2024 22:24
Example AMD module for VideoTrailer instances
/**
* VideoTrailer Module Factory
*
* This module creates instances of the VideoTrailer module.
* A splash screen image is shown by default. When the user clicks on that, the video HTML is loaded into the wrapper element.
*
* Expects params object in this structure:
{
html: "<iframe src="http://video.ldn.timeout.com/video/THE-GRAND-BUDAPEST-HOTEL-Offici/player?layout=&read_more=1" width="668" height="400" frameborder="0" scrolling="no"></iframe>"
}