Created
December 13, 2011 16:53
-
-
Save gladson/1472907 to your computer and use it in GitHub Desktop.
uploads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> jQuery Youtube </title> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > | |
| <link rel="stylesheet" href="../../reset.css" type="text/css" media="screen" charset="utf-8"> | |
| <link rel="stylesheet" href="../../screen.css" type="text/css" media="screen" charset="utf-8"> | |
| <link rel="stylesheet" href="screen.css" type="text/css" media="screen" charset="utf-8"> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script> | |
| <script type="text/javascript" src="../../../jTube/jquery.jTube.js" charset="utf-8"></script> | |
| <script type="text/javascript"> | |
| $(function() { | |
| $.jTube({ | |
| request: 'user', | |
| requestValue: 'RhettandLink', | |
| requestOption: 'uploads', | |
| limit: 50, | |
| page: 1, | |
| success: function(videos) { | |
| $(videos).each(function() { | |
| html = '<li>\n'; | |
| html += '\t<a href="'+this.link+'"><img src="'+this.thumbnail+'">'+this.title+'</a> - '+this.length+'\n'; | |
| html += '<br><span class="label">Categoria:</span> '+this.category+'\n'; | |
| html += '<br><span class="label">Keywords:</span> '+this.keywords+'\n'; | |
| html += '<div><br><span class="label">Descrição:</span> '+this.description+'\n</div>'; | |
| html += '</li>\n'; | |
| $('#example').append(html); | |
| }); | |
| }, | |
| error: function(error) { | |
| $('#example').html(error); | |
| } | |
| }); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <div id="wrapper"> | |
| <h1>jTube Preview</h1> | |
| <div id="crumbs"> | |
| <a href="../../">Examples</a> > <a href="../">Users</a> > Uploads | |
| </div> | |
| <ul id="example"></ul> | |
| <div class="clear"> </div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment