Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * NinjaVideo JQUERY Call Script (which should be one of the frameworks available, but there should be more)
  3.  *
  4.  * Author:              Third3ye
  5.  * Version:             0.1
  6.  * Timestamp:               12/11 2010 3:30
  7.  */
  8.  
  9. // The NV TV plugin, which has tools to import videos and related information,
  10. // is also pretty handy at locating necessary video playback plugins, as well
  11. // as additional parameters (to be continued...)
  12. $.getScript("jquery.nvtv.js");
  13. // The NV ART plugin, which is designed to automagically set up an easy to use
  14. // gallery on a page and call (using ajax) the content locally or via third party
  15. // providers (i.e "ninjavideo").
  16. $.getScript("jquery.nvart.js");
  17.  
  18. $(document).ready(function() {
  19.     $(".videopost").ninjaTV({
  20.                 showID: "683",          // showID can be offered to retrieve show title, show description, date of origin, and original creator(s) (if the client asks for it)  
  21.                 showDesc: true,         // This variable is sent to the server, as a part of the initial request
  22.                 showCreators: true,     // This one to! It will contain extra information and URLs
  23.                 showContributors: true; // also, this one
  24.                 showOriginDate: true    // and this one as well. The reason being if it is set to false the server will not send the information
  25.                 showHost: "Wayne",      // The author can provide a show host (in case the show is created with a host and writers, i.e "creators")
  26.                 episode: "34",          // Do not be fooled, this isn't the longest season EVER! It's episode 4 season 3 :P
  27.     });
  28.     $(".gallery").ninjaART({
  29.                 galleryID "298",        // This ID can be used to retrieve gallery name, description, date of origin, creator(s), and contributors
  30.                 showDesc: true,
  31.                 showCreators: true,
  32.                 showContributors: true;
  33.                 showOriginDate: true,
  34.                 perPage: "20",          // How many items to show per page
  35.                 dynamicPages: true,     // "Dynamic pages" mean dynamically reloaded pages, using ajax.
  36.                 cache: true,            // This can only be used if the client has dynamic scripting that caches the pics from NV to the local server (this would be optimal for achiving pictures and saving bandwidth)
  37.     });
  38.     // Note that all the small differences in bits and bytes make a huge difference
  39.     // in enterprise size web apps. The idea of these little examples is to provide
  40.     // an easy way to integrate and optimize NV resources with NV tools without
  41.     // having to rely on a third party service entirely. This relieves NV of some
  42.     // bandwidth burdens and also allows more possibilities for costumizing the content
  43.     // to the clients web-site ("client" being the people who are "served").
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement