1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
-
-
-
-
- function resize_filmstrips(that,fn_name,args=[]){
-
- }
- function resize_filmstrips2(that,fn_name,args=[]){
-
- }
-
-
- glob_mx.filmstrip_handlers = glob_mx.filmstrip_handlers || {}
- glob_mx.filmstrip_tile_handlers = glob_mx.filmstrip_tile_handlers || {}
-
-
- // window.mvyt_helper ? mvyt_helper():0
- // run callbacks for all filmstrips on resize
- function resizeThumbnailsForCustomView(that,fn_name,args=[]){
-
- const thumbs = glob_react.Filmstrip._getThumbs()
- const all_thumbs = $(".small_vid")
- const custom_thumbs = all_thumbs.not(thumbs.remlocThumbs)
- const vid_containers = $(".vid_container")
- const loose_thumbs = custom_thumbs.not(vid_containers.children())
- var k,v
- let fs_handler_key
- let fs_handler
- let fs_tile_handler
- let fs_handlers = new Map()
- let i
- // console.trace("rtscv...")
-
- let fs_tile_handlers = []
- for (v of vid_containers){
- // clog(":",v,v.dataset.fs_type)
- fs_handler_key = v.dataset.fs_handler
- // clog("~",v,v.dataset,fs_handler)
- fs_tile_handler = glob_mx.filmstrip_tile_handlers[fs_handler_key] || nop
- fs_handler = glob_mx.filmstrip_handlers[fs_handler_key] || nop
- // glob_mx.filmstrip_tile_handlers[fs_handler_key] ? glob_mx.filmstrip_tile_handlers[fs_handler_key](v) : 1
- // fs_tile_handlers.push([glob_mx.filmstrip_tile_handlers[fs_handler_key] || nop,v])
- // fs_handlers.setD(glob_mx.filmstrip_handlers[fs_handler_key] || nop,)
- fs_tile_handlers.push([fs_tile_handler,v])
- fs_handlers.setD(fs_handler,[])
- i = fs_handlers.get(fs_handler)
- i.push(v)
-
- // glob_mx.filmstrip_handlers
- }
- // clog("fs_tile_handlers",fs_tile_handlers)
- for ([k,v] of fs_handlers){
- // clog("ft0",k,v)
- k(v)
- }
- for ([k,v] of fs_tile_handlers){
- // clog("ft",k,v)
- k(v)
-
- }
-
-
- // return
- // const custom_thumbs = all_thumbs
-
- var aspect = 16/18
- var width = 135
- var height = Math.round(width/aspect)
- loose_thumbs.css({
- 'padding-top': '',
- "min-height": `${height}px`,
- "min-width": `${width}px`,
- width: `${width}px`,
- height: `${height}px`,
- })
-
- window.mvyt_helper ? mvyt_helper():0
- // clog("rtscv",fn_name,[that,...args])
-
-
- }
-
-
-
-
-
- function onover(){
- clog(this,[...arguments])
- }
|