You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jev8.js 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // dev_mv(retx[k].$container,".i"+vloc,animation_flag)
  2. // dev_mv("#localVideoContainer",`.vid_container[data-corner="c2"]`,3)
  3. function fs_grid_calc(){
  4. // $("span.videocontainer")
  5. // dev_mv("#localVideoContainer",`.vid_container[data-corner="c2"]`,3)
  6. // clog("filmstrip_style_calc:fs_grid_calc",$(".fs_container"))
  7. $(".fs_container").css({
  8. // "--v_gtc":5,
  9. // "--v_gtr":2,
  10. // "--v_gtr":,
  11. // "--v_gtr2":"??",
  12. })
  13. var fs = $(".fs_container")
  14. var fs_node = fs[0]
  15. if (!fs_node){
  16. return
  17. }
  18. var o = fs_node.children
  19. if (fs){
  20. // fs.dataset.c_len
  21. if (o.length == 1){
  22. fs_node.dataset.c_len = 1
  23. } else if (o.length == 2){
  24. fs_node.dataset.c_len = 2
  25. } else if (o.length == 3){
  26. fs_node.dataset.c_len = 3
  27. } else if (o.length > 3){
  28. fs_node.dataset.c_len = "3g"
  29. }
  30. }
  31. $(".local_corner_vcc_dev2").removeClass("local_corner_vcc_dev2")
  32. // $(".local_corner_vcc").addClass("local_corner_vcc_dev2")
  33. }
  34. function post_style_calc(o) {
  35. // clog("post_style_calc")
  36. // rs_cb($("span.videocontainer"))
  37. }
  38. function pre_style_calc_grid(o) {
  39. // dev_mv("#localVideoContainer",`.vid_container[data-corner="c2"]`,3)
  40. }
  41. // glob_u.cb.ord_v1.FS.reg_cb("pre:style_calc")
  42. // reg_fs_cb(pre_style_calc_grid,"pre:style_calc","pre_style_calc_grid")
  43. reg_fs_cb(fs_grid_calc,"style_calc","pre_style_calc_grid")
  44. reg_fs_cb(post_style_calc,"post:style_calc","mv_vids_cb")
  45. // reg_fs_cb(fs_grid_calc,"pre:style_calc","pre_style_calc_grid",101,"r")
  46. reg_fs_cb(fs_grid_calc,"pre:style_calc","pre_style_calc_grid",10)
  47. // glob_u.cb.ord_v1.reg_cb(fs_grid_calc,"filmstrip_style_calc","fs_grid_calc",101)
  48. glob_u.cb.ord_v1.reg_cb(fs_grid_calc,"filmstrip_style_calc","fs_grid_calc",99)
  49. glob_u.cb.ord_v1.reg_cb(fs_grid_calc,"filmstrip_style_calc","fs_grid_calc",101,"r")
  50. // glob_u.cb.ord_v1.reg_cb(fs_grid_calc,"filmstrip_style_calc","fs_grid_calc",101)