From c1987a2cd645f46011224d64482b2e995ed0c315 Mon Sep 17 00:00:00 2001 From: sanj Date: Tue, 23 Nov 2010 16:21:01 +0100 Subject: [PATCH] config options, tracks html --- padma.layers.js | 14 +++++++++++++- padma.links.js | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/padma.layers.js b/padma.layers.js index ae7b03f..9abe328 100644 --- a/padma.layers.js +++ b/padma.layers.js @@ -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($) { -var BASE_URL = "http://pad.ma/"; +var BASE_URL = padmaConfig.data_url; var padmaVideo = function(videoId) { this.id = videoId; @@ -156,4 +166,6 @@ window.padmaVideo = padmaVideo; window.filterLayersByTracks = filterLayersByTracks; window.filterLayersByContributors = filterLayersByContributors; + + })(jQuery); diff --git a/padma.links.js b/padma.links.js index e6805e9..de725ee 100644 --- a/padma.links.js +++ b/padma.links.js @@ -1,7 +1,7 @@ (function($) { - var PADMA_URL = "http://pad.ma/"; + var PADMA_URL = padmaConfig.links_url; $(function() { $("a").each(function() { var that = this;