# HG changeset patch # User hamidouk # Date 1323855807 -3600 # Node ID f921c98a180bb0943c4f05742b8fe92ab921642e # Parent 8568e47379a24446db59a800272f72b70fbd46d3 removed site-dependent file and replaced it by a template. diff -r 8568e47379a2 -r f921c98a180b src/js/site.js --- a/src/js/site.js Tue Dec 13 17:31:39 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/ - -IriSP.lib = { - jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js", - jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js", - jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js", - swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", - cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css", - popcorn : "src/js/libs/popcorn.js", - jwplayer : "src/js/libs/jwplayer.js", - "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js", - "popcorn.code" : "src/js/libs/popcorn.code.js", - "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js", - "popcorn.youtube": "src/js/libs/popcorn.youtube.js", - raphael: "src/js/libs/raphael.js" -}; - -//Player Configuration -IriSP.config = undefined; - -IriSP.widgetsDefaults = { - "LayoutManager" : {spacer_div_height : "0px" }, - "PlayerWidget" : {}, - "AnnotationsWidget": {}, - "TweetsWidget" : { - default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", - tweet_display_period: 10000 // how long do we show a tweet ? - }, - "SliderWidget" : { - minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ? - } -}; - -IriSP.paths = { - "imgs": "./../../src/css/imgs" -}; -IriSP.default_templates_vars = { - "img_dir" : IriSP.paths.imgs -}; - diff -r 8568e47379a2 -r f921c98a180b src/js/site.js.templ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/js/site.js.templ Wed Dec 14 10:43:27 2011 +0100 @@ -0,0 +1,41 @@ +/* EDIT THIS FILE AND RENAME IT TO site.js to build the player */ +/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/ + +IriSP.lib = { + jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js", + jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js", + jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js", + swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", + cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css", + popcorn : "src/js/libs/popcorn.js", + jwplayer : "src/js/libs/jwplayer.js", + "popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js", + "popcorn.code" : "src/js/libs/popcorn.code.js", + "popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js", + "popcorn.youtube": "src/js/libs/popcorn.youtube.js", + raphael: "src/js/libs/raphael.js" +}; + +//Player Configuration +IriSP.config = undefined; + +IriSP.widgetsDefaults = { + "LayoutManager" : {spacer_div_height : "0px" }, + "PlayerWidget" : {}, + "AnnotationsWidget": {}, + "TweetsWidget" : { + default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", + tweet_display_period: 10000 // how long do we show a tweet ? + }, + "SliderWidget" : { + minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ? + } +}; + +IriSP.paths = { + "imgs": "/tweetlive/res/metadataplayer/src/css/imgs" +}; +IriSP.default_templates_vars = { + "img_dir" : IriSP.paths.imgs +}; +