config options, tracks html

This commit is contained in:
sanj 2010-11-23 16:21:01 +01:00
parent 449895f5b2
commit c1987a2cd6
2 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,16 @@
var padmaConfig = {
'background': 'rgba(0,0,0,0.85)',
'color': '#fff',
'links_url': 'http://padma.okno.be/',
'data_url': 'http://padma.okno.be/',
// 'links_url': 'http://pad.ma/',
// 'data_url': 'http://pad.ma/',
'default_layers': ['transcript', 'description'],
};
(function($) { (function($) {
var BASE_URL = "http://pad.ma/"; var BASE_URL = padmaConfig.data_url;
var padmaVideo = function(videoId) { var padmaVideo = function(videoId) {
this.id = videoId; this.id = videoId;
@ -156,4 +166,6 @@ window.padmaVideo = padmaVideo;
window.filterLayersByTracks = filterLayersByTracks; window.filterLayersByTracks = filterLayersByTracks;
window.filterLayersByContributors = filterLayersByContributors; window.filterLayersByContributors = filterLayersByContributors;
})(jQuery); })(jQuery);

View File

@ -1,7 +1,7 @@
(function($) { (function($) {
var PADMA_URL = "http://pad.ma/"; var PADMA_URL = padmaConfig.links_url;
$(function() { $(function() {
$("a").each(function() { $("a").each(function() {
var that = this; var that = this;