Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 050bfaaf07
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (26 sloc) 1.033 kB
title
Tagthisperson

Tagthisperson

Purpose

Adds people's names to an element on the page.

Options

  • Start [Number]: is the time that you want this plug-in to execute
  • End [Number]: is the time that you want this plug-in to stop executing
  • Person [String]: is the name of the person who you want to tag
  • Image [String]: is the url to the image of the person - optional
  • href [String]: is the url to the webpage of the person - optional
  • Target [String]: is the id of the document element that the text needs to be attached to, this target element must exist on the DOM

Example

{% highlight js linenos %} var pop = Popcorn( "#video" );

pop.tagthisperson({
  start: 0,
  end: 10,
  person: "Anna Sob",
  image: "http://newshour.s3.amazonaws.com/photos%2Fspeeches%2Fguests%2FRichardNSmith_thumbnail.jpg",
  href: "http://annasob.wordpress.com",
  target: "tagdiv"
});

{% endhighlight %}

Jump to Line
Something went wrong with that request. Please try again.