analyzer/webui/ferret.js
//load "canned" demos into the dropdown list
load "canned" demos into the dropdown list
load " canned " demos into the dropdown list
function loadDemoDropDown(demoList) {
  console.log(demoList);
  $("#demo-list")
    .find('option')
    .remove();
  if (typeof demoList !== 'undefined') {
    var i;
    for (i = 0; i < demoList.length; i++) {
      console.log("demo " + i + ", " + "length: " + demoList[i].events.length);
      console.log(demoList[i]);
      var demo = demoList[i];
      var value = "demo" + i + "(" + demo.events.length + ")";
      $("#demo-list")
        .append($("<option></option>")
        .attr("value",value)
        .text(value)); 
      demoMap[value] = demo;
    }
  }
}
function loadDemoDropDown ( demoList ) { console . log ( demoList ) ; $ ( "#demo-list" ) . find ( 'option' ) . remove ( ) ; if ( typeof demoList !== 'undefined' ) { var i ; for ( i = 0 ; i < demoList . length ; i ++ ) { console . log ( "demo " + i + ", " + "length: " + demoList [ i ] . events . length ) ; console . log ( demoList [ i ] ) ; var demo = demoList [ i ] ; var value = "demo" + i + "(" + demo . events . length + ")" ; $ ( "#demo-list" ) . append ( $ ( "<option></option>" ) . attr ( "value" , value ) . text ( value ) ) ; demoMap [ value ] = demo ; } } }
load "canned" demos into the dropdown list
load " canned " demos into the dropdown list