src/js/site.js
author hamidouk
Thu, 01 Dec 2011 12:21:45 +0100
branchpopcorn-port
changeset 372 33a435f35597
parent 364 eb9977188c7d
child 415 ffadfe55f9f7
permissions -rw-r--r--
added an option to tweak the speed with which a sliderWidget minimizes itself.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     1
/* site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     2
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
     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
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    17
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    18
//Player Configuration 
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    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
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    32
};
cbb1425bc769 begun breaking the code across multiple files.
hamidouk
parents:
diff changeset
    33
364
eb9977188c7d added global variables directory for templates.
hamidouk
parents: 292
diff changeset
    34
IriSP.default_templates_vars = {
eb9977188c7d added global variables directory for templates.
hamidouk
parents: 292
diff changeset
    35
  "img_dir" : "./../../src/css/imgs"
eb9977188c7d added global variables directory for templates.
hamidouk
parents: 292
diff changeset
    36
};
eb9977188c7d added global variables directory for templates.
hamidouk
parents: 292
diff changeset
    37