src/js/main.js
branchpopcorn-port
changeset 835 a8af9da7c622
parent 834 573c7ca752e0
child 842 4ae2247a59f4
equal deleted inserted replaced
834:573c7ca752e0 835:a8af9da7c622
    23     // Localize jQuery variable
    23     // Localize jQuery variable
    24 		IriSP.jQuery = null;
    24 		IriSP.jQuery = null;
    25     var $L = $LAB.script(libs.jQuery).script(libs.swfObject).wait()
    25     var $L = $LAB.script(libs.jQuery).script(libs.swfObject).wait()
    26                 .script(libs.jQueryUI);
    26                 .script(libs.jQueryUI);
    27                                    
    27                                    
    28     if (config.player.type === "jwplayer") {
    28     if (config.player.type === "jwplayer" || config.player.type === "allocine") {
    29       // load our popcorn.js lookalike
    29       // load our popcorn.js lookalike
    30       $L = $L.script(libs.jwplayer);
    30       $L.script(libs.jwplayer);
    31     } else {
    31     } else {
    32       // load the real popcorn
    32       // load the real popcorn
    33       $L = $L.script(libs.popcorn).script(libs["popcorn.code"]);
    33       $L.script(libs.popcorn).script(libs["popcorn.code"]);
    34       if (config.player.type === "youtube") {
    34       if (config.player.type === "youtube") {
    35         $L = $L.script(libs["popcorn.youtube"]);
    35         $L.script(libs["popcorn.youtube"]);
    36       } 
    36       } 
    37       if (config.player.type === "vimeo")
    37       if (config.player.type === "vimeo")
    38         $L = $L.script(libs["popcorn.vimeo"]);
    38         $L.script(libs["popcorn.vimeo"]);
    39       
    39       
    40       /* do nothing for html5 */
    40       /* do nothing for html5 */
    41     }       
    41     }       
    42     
    42     
    43     /* widget specific requirements */
    43     /* widget specific requirements */
    44     for (var idx in config.gui.widgets) {
    44     for (var idx in config.gui.widgets) {
    45       if (config.gui.widgets[idx].type === "PolemicWidget" ||
    45       if (config.gui.widgets[idx].type === "PolemicWidget" ||
    46           config.gui.widgets[idx].type === "StackGraphWidget" ||
    46           config.gui.widgets[idx].type === "StackGraphWidget" ||
    47           config.gui.widgets[idx].type === "SparklineWidget") {        
    47           config.gui.widgets[idx].type === "SparklineWidget") {        
    48         $L.script(libs.raphael);
    48         $L.script(libs.raphael);
       
    49       }
       
    50       if (config.gui.widgets[idx].type === "TraceWidget") {
       
    51           $L.script(libs.tracemanager)
    49       }
    52       }
    50     }
    53     }
    51     
    54     
    52     // same for modules
    55     // same for modules
    53     /*
    56     /*