client/annotviz/app/js/annotstimeline.js
changeset 144 1762372184ae
parent 137 750d9076a4a8
equal deleted inserted replaced
143:95104e98d78d 144:1762372184ae
    86         //query -> need channel + eventCode
    86         //query -> need channel + eventCode
    87         //iterate over data fill cells
    87         //iterate over data fill cells
    88         var startTs = _this.timeBegin;
    88         var startTs = _this.timeBegin;
    89         var endTs = Math.min(_this.timeEnd,_this.startTs);
    89         var endTs = Math.min(_this.timeEnd,_this.startTs);
    90 
    90 
    91         console.log("START TS",new Date(startTs).toISOString());
       
    92         console.log("END TS",new Date(endTs).toISOString());
       
    93 
       
    94         var url = serverUrl + '/p/api/v1/annotation';
    91         var url = serverUrl + '/p/api/v1/annotation';
    95         var filters = [
    92         var filters = [
    96             { name: 'ts', op: '>', val: new Date(startTs).toISOString()}, //start
    93             { name: 'ts', op: '>', val: new Date(startTs).toISOString()}, //start
    97             { name: 'ts', op: '<=', val: new Date(endTs).toISOString()}, //end
    94             { name: 'ts', op: '<=', val: new Date(endTs).toISOString()}, //end
    98             { name: 'channel', op: '==', val: channel}, //channel
    95             { name: 'channel', op: '==', val: channel}, //channel