function create_HTML_fragment(fragment_data) {
  time_start = fragment_data["start"];
  time_end = fragment_data["end"];
  fragment_type = fragment_data["fragment-type"];
  background_video = fragment_data["background-video"];

  // create a fragment
  var elem = document.createElement("div");
  elem.classList = ["fragment fv-fragment"];
  elem.setAttribute("time_start", time_start);
  elem.setAttribute("time_end", time_end);
  elem.setAttribute("fragment_type", fragment_type);
  elem.setAttribute("background_video", background_video);

  return elem;
}
// create a single HTML fragment for a piece of video
create a single HTML fragment for a piece of video
create a single HTML fragment for a piece of video
function create_HTML_fragment(fragment_data) {
  time_start = fragment_data["start"];
  time_end = fragment_data["end"];
  fragment_type = fragment_data["fragment-type"];
  background_video = fragment_data["background-video"];
  var elem = document.createElement("div");
  elem.classList = ["fragment fv-fragment"];
  elem.setAttribute("time_start", time_start);
  elem.setAttribute("time_end", time_end);
  elem.setAttribute("fragment_type", fragment_type);
  elem.setAttribute("background_video", background_video);
  return elem;
}
function create_HTML_fragment ( fragment_data ) { time_start = fragment_data [ "start" ] ; time_end = fragment_data [ "end" ] ; fragment_type = fragment_data [ "fragment-type" ] ; background_video = fragment_data [ "background-video" ] ; var elem = document . createElement ( "div" ) ; elem . classList = [ "fragment fv-fragment" ] ; elem . setAttribute ( "time_start" , time_start ) ; elem . setAttribute ( "time_end" , time_end ) ; elem . setAttribute ( "fragment_type" , fragment_type ) ; elem . setAttribute ( "background_video" , background_video ) ; return elem ; }
create a single HTML fragment for a piece of video
create a single HTML fragment for a piece of video
// create a fragment