test/integration/allocine_dossier_independant/polemic-allocine.htm
branchpopcorn-port
changeset 830 18ca612e9ff0
parent 826 c7ae4f126e51
child 831 0dd21c298380
equal deleted inserted replaced
829:ae16691d183d 830:18ca612e9ff0
    23   <script  type="text/javascript">
    23   <script  type="text/javascript">
    24     var json_url = 'allocine_test/exemple_cinecast.json';
    24     var json_url = 'allocine_test/exemple_cinecast.json';
    25     
    25     
    26     IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
    26     IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
    27     IriSP.libdir = "js/libs/";
    27     IriSP.libdir = "js/libs/";
    28     IriSP.widgetsDefaults["createAnnotationWidget"] = {};
       
    29     IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
       
    30     IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false;
       
    31     IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
       
    32     IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
       
    33     IriSP.defaults.user = function(){ return IriSP.user; };
    28     IriSP.defaults.user = function(){ return IriSP.user; };
    34     
    29     
    35     var config = {            
    30     var config = {            
    36         gui:{
    31         gui:{
    37             width:650,
    32             width:650,
    55                 }
    50                 }
    56                }],
    51                }],
    57             },            
    52             },            
    58             {type: "AnnotationsListWidget",
    53             {type: "AnnotationsListWidget",
    59              container: "AnnotationsListContainer"},
    54              container: "AnnotationsListContainer"},
    60             {type: "SliderWidget"},        
    55             {type: "SliderWidget"},
    61             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    56             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    62              mode: "radio"},                     
    57              mode: "radio"},                     
    63             {type: "ArrowWidget"},
    58             {type: "ArrowWidget"},
    64             {type: "TweetsWidget"},
    59             {type: "TweetsWidget"},
    65             {type: "createAnnotationWidget"},
    60             {type: "createAnnotationWidget",
    66             {type: "TraceWidget"}
    61             polemic_mode: false,
       
    62             cinecast_version: true,
       
    63             keywords: ['#vodkaster', '#allocine', '#universcine'],
       
    64             api_endpoint_template : "coucou/{{id}}.json",
       
    65             api_method: 'POST'}
    67             ]
    66             ]
    68         },
    67         },
    69       player:{
    68       player:{
    70       type:'allocine', // player type 
    69       type:'allocine', // player type 
    71               height: 300, 
    70               height: 300,