| author | hamidouk |
| Wed, 07 Dec 2011 12:07:12 +0100 | |
| branch | popcorn-port |
| changeset 418 | 06d2aa32c5f4 |
| parent 415 | ffadfe55f9f7 |
| permissions | -rw-r--r-- |
| 31 | 1 |
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/ |
2 |
||
3 |
IriSP.lib = { |
|
|
236
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
4 |
jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
5 |
jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
6 |
jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
7 |
swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
8 |
cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
9 |
popcorn : "src/js/libs/popcorn.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
10 |
jwplayer : "src/js/libs/jwplayer.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
11 |
"popcorn.mediafragment" : "src/js/libs/popcorn.mediafragment.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
12 |
"popcorn.code" : "src/js/libs/popcorn.code.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
13 |
"popcorn.jwplayer": "src/js/libs/popcorn.jwplayer.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
14 |
"popcorn.youtube": "src/js/libs/popcorn.youtube.js", |
|
6770c85c9e56
put in a single place the sources from where we load our js scripts.
hamidouk
parents:
55
diff
changeset
|
15 |
raphael: "src/js/libs/raphael.js" |
|
55
a5440e1a18a8
A bunch of changes to make the code use popcorn. Bumped the version of jwplayer
hamidouk
parents:
38
diff
changeset
|
16 |
}; |
| 31 | 17 |
|
18 |
//Player Configuration |
|
19 |
IriSP.config = undefined; |
|
|
272
5284f337bd53
added an object to configure the default values of the widgets.
hamidouk
parents:
236
diff
changeset
|
20 |
|
|
5284f337bd53
added an object to configure the default values of the widgets.
hamidouk
parents:
236
diff
changeset
|
21 |
IriSP.widgetsDefaults = { |
|
288
25fe0c8831de
made the spacer height configurable. set to 0 by default.
hamidouk
parents:
282
diff
changeset
|
22 |
"LayoutManager" : {spacer_div_height : "0px" }, |
|
272
5284f337bd53
added an object to configure the default values of the widgets.
hamidouk
parents:
236
diff
changeset
|
23 |
"PlayerWidget" : {}, |
|
274
fe02d003c6c4
added support for a default profile picture in case it's not defined.
hamidouk
parents:
272
diff
changeset
|
24 |
"AnnotationsWidget": {}, |
|
fe02d003c6c4
added support for a default profile picture in case it's not defined.
hamidouk
parents:
272
diff
changeset
|
25 |
"TweetsWidget" : { |
|
292
31773b5deb26
changed the size of default_profile_picture for a twitter account.
hamidouk
parents:
288
diff
changeset
|
26 |
default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", |
|
282
1001234e5e6e
added a var to configure the num of seconds to display the tweet.
hamidouk
parents:
274
diff
changeset
|
27 |
tweet_display_period: 10000 // how long do we show a tweet ? |
|
372
33a435f35597
added an option to tweak the speed with which a sliderWidget minimizes itself.
hamidouk
parents:
364
diff
changeset
|
28 |
}, |
|
33a435f35597
added an option to tweak the speed with which a sliderWidget minimizes itself.
hamidouk
parents:
364
diff
changeset
|
29 |
"SliderWidget" : { |
|
33a435f35597
added an option to tweak the speed with which a sliderWidget minimizes itself.
hamidouk
parents:
364
diff
changeset
|
30 |
minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ? |
|
274
fe02d003c6c4
added support for a default profile picture in case it's not defined.
hamidouk
parents:
272
diff
changeset
|
31 |
} |
| 31 | 32 |
}; |
33 |
||
|
415
ffadfe55f9f7
added an IriSP.paths dir for code which references paths.
hamidouk
parents:
372
diff
changeset
|
34 |
IriSP.paths = { |
|
ffadfe55f9f7
added an IriSP.paths dir for code which references paths.
hamidouk
parents:
372
diff
changeset
|
35 |
"imgs": "./../../src/css/imgs" |
|
ffadfe55f9f7
added an IriSP.paths dir for code which references paths.
hamidouk
parents:
372
diff
changeset
|
36 |
}; |
| 364 | 37 |
IriSP.default_templates_vars = { |
|
415
ffadfe55f9f7
added an IriSP.paths dir for code which references paths.
hamidouk
parents:
372
diff
changeset
|
38 |
"img_dir" : IriSP.paths.imgs |
| 364 | 39 |
}; |
40 |