Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

kilhage/jquery-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

/****************************************************************

  • jQuery Youtube plugin


  • Usage examples: *---------------------------------------------------------------
  • Html:
  • @param href: youtube id
  • @param alt: json encoded string with the width and height
  • Javascript:
  • @param type: The type of element you want to get
  • $.fn.youtube(type);
  • To load the image:
  • $('.youtube').youtube('image');
  • To load the video:
  • $('.youtube').youtube('video', config); *---------------------------------------------------------------
  • The global object:
  • $.youtube.config();
  • Will return the current config
  • $.youtube.config({
  • autohide: true
  • });
  • Will replace the default value of the autohide parameter
  • $.youtube.config({
  • autohide: true
  • }, true);
  • Will replace the current config with the config object that you pass

www.glooby.com www.glooby.se