src/js/site.js.templ
author hamidouk
Tue, 27 Dec 2011 10:36:37 +0100
branchpopcorn-port
changeset 533 7cc5988bb9a1
parent 491 095f4c76664d
child 547 5b58a108086a
permissions -rw-r--r--
updated site.js.templ.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
     1
/* EDIT THIS FILE AND RENAME IT TO site.js TO BUILD THE METADATAPLAYER
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
     2
   site.js - all our site-dependent config : player chrome, cdn locations, etc...*/
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     3
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     4
IriSP.lib = { 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     5
		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     6
		jQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     7
		jQueryToolTip : "http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     8
		swfObject : "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
     9
		cssjQueryUI : "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css",
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    10
    popcorn : "/mdp/src/js/libs/popcorn.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    11
    jwplayer : "/mdp/src/js/libs/jwplayer.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    12
    popcornReplacement: "/mdp/src/js/libs/pop.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    13
    raphael: "/mdp/src/js/libs/raphael.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    14
    jquery_sparkline: "/mdp/src/js/libs/jquery.sparkline.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    15
    "popcorn.mediafragment" : "/mdp/src/js/libs/popcorn.mediafragment.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    16
    "popcorn.code" : "/mdp/src/js/libs/popcorn.code.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    17
    "popcorn.jwplayer": "/mdp/src/js/libs/popcorn.jwplayer.js",
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    18
    "popcorn.youtube": "/mdp/src/js/libs/popcorn.youtube.js"
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    19
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    20
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    21
//Player Configuration 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    22
IriSP.config = undefined;
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    23
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    24
IriSP.widgetsDefaults = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    25
  "LayoutManager" : {spacer_div_height : "0px" },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    26
  "PlayerWidget" : {},
470
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    27
  "AnnotationsWidget": {
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    28
    "share_text" : "I'm watching ",     
470
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    29
    "fb_link" : "http://www.facebook.com/share.php?u=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    30
    "tw_link" : "http://twitter.com/home?status=",
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    31
    "gplus_link" : ""
19389e221722 the annotationWidget "share" buttons now work correctly.
hamidouk
parents: 454
diff changeset
    32
    },
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    33
  "TweetsWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    34
      default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    35
      tweet_display_period: 10000 // how long do we show a tweet ?
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    36
  },
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    37
  "SliderWidget" : {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    38
      minimize_period: 850 // how long does the slider stays maximized after the user leaves the zone ?
491
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    39
  },
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    40
  "Main" : {
095f4c76664d beginning to work on an autoplay function.
hamidouk
parents: 470
diff changeset
    41
      autoplay: true
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    42
  }
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    43
  
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    44
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    45
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    46
IriSP.paths = {
533
7cc5988bb9a1 updated site.js.templ.
hamidouk
parents: 491
diff changeset
    47
  "imgs": "/mdp/src/css/imgs"
454
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    48
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    49
IriSP.default_templates_vars = {
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    50
  "img_dir" : IriSP.paths.imgs 
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    51
};
f921c98a180b removed site-dependent file and replaced it by a template.
hamidouk
parents:
diff changeset
    52