Line | |
---|
1 | function tubepress_colorbox_player(galleryId, videoId) {
|
---|
2 | return;
|
---|
3 | //colorbox({contentInline:"#tubepress_embedded_object_" + galleryId});
|
---|
4 | }
|
---|
5 |
|
---|
6 | function tubepress_colorbox_player_init(baseUrl) {
|
---|
7 | var base = baseUrl + '/ui/players/colorbox/lib/';
|
---|
8 | //jQuery.include([base + 'colorbox.css', base + 'colorbox-custom.css']);
|
---|
9 | _tubepress_get_wait_call(base + 'jquery.colorbox.js',
|
---|
10 | function() { return typeof jQuery.fn.colorbox != 'undefined'; },
|
---|
11 | function() { _tubepress_colorbox_add_listeners(); }
|
---|
12 | );
|
---|
13 | }
|
---|
14 |
|
---|
15 | function _tubepress_colorbox_add_listeners() {
|
---|
16 | jQuery("a[id^='tubepress_']").each(function () {
|
---|
17 | var rel_split = jQuery(this).attr("rel").split("_");
|
---|
18 | var playerName = rel_split[2];
|
---|
19 | if (playerName != 'colorbox') {
|
---|
20 | return;
|
---|
21 | }
|
---|
22 | var galleryId = rel_split[3];
|
---|
23 | var embeddedObject = jQuery('#tubepress_embedded_object_' + galleryId + ' > object');
|
---|
24 | var height = embeddedObject.css('height');
|
---|
25 | var width = embeddedObject.css('width');
|
---|
26 | jQuery(this).colorbox({
|
---|
27 | title : 'poo',
|
---|
28 | preloading : false,
|
---|
29 | inline :true,
|
---|
30 | href :"#tubepress_embedded_object_" + galleryId,
|
---|
31 | fixedWidth : width,
|
---|
32 | fixedHeight : height
|
---|
33 | });
|
---|
34 | });
|
---|
35 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.