web/polemicaltimeline.php
changeset 583 f655dafb741e
parent 581 7607516bd9f1
child 597 07ab28bca482
equal deleted inserted replaced
582:79b222c29887 583:f655dafb741e
    95                 src: json_url,
    95                 src: json_url,
    96                 type:'json'},
    96                 type:'json'},
    97                 width: 650
    97                 width: 650
    98             },
    98             },
    99             widgets: [
    99             widgets: [
   100             {type: "PolemicWidget",
   100             {
   101                requires: [{
   101                 type: "PolemicWidget",
   102                 type: "TooltipWidget",
   102                 requires: [{
   103                 width: 180,
   103                     type: "TooltipWidget",
   104                 height: 160,
   104                     width: 180,
   105                 metadata : {type:'empty'
   105                     height: 160,
   106                 }
   106                     metadata : {
   107                }],
   107                         type:'empty'
   108               height: 5
   108                     }
       
   109                 }],
       
   110                 height: 5
   109             },
   111             },
   110             {type: "SliderWidget"},        
   112             {type: "SliderWidget"},        
   111             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
   113             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
   112              mode: "radio",
   114              mode: "radio",
   113              disable_annotate_btn: true},
   115              disable_annotate_btn: true},
   128             {type: "TagCloudWidget",
   130             {type: "TagCloudWidget",
   129              container: "TagcloudContainer",
   131              container: "TagcloudContainer",
   130         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
   132         <?php if (isset($config['hashtag'])) echo "excludeWords: ".json_encode(array($config['hashtag'])).","; ?>
   131             excludePattern: /^@/
   133             excludePattern: /^@/
   132         },{
   134         },{
   133                         type: "TraceWidget",
   135             type: "TraceWidget",
   134                      //   js_console : true,
   136          //   js_console : true,
   135                         url: "http://traces.advene.org:5000/",
   137             url: "http://traces.advene.org:5000/",
   136                         requestmode: 'GET',
   138             requestmode: 'GET',
   137                         syncmode: "sync"
   139             syncmode: "sync"
   138                     }
   140         }
   139             ]
   141         ]
   140         },
   142         },
   141       player:{
   143       player:{
   142           type:'jwplayer',
   144           type:'jwplayer',
   143           live: true, 
   145           live: true, 
   144           height: 400, 
   146           height: 400,