forked from cybrespace/pinafore
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import VideoDialog from './VideoDialog.html'
 | 
						|
 | 
						|
export function showVideoDialog (poster, src, width, height, description) {
 | 
						|
  let videoDialog = new VideoDialog({
 | 
						|
    target: document.getElementById('modal-dialog'),
 | 
						|
    data: {
 | 
						|
      label: 'Video dialog',
 | 
						|
      poster,
 | 
						|
      src,
 | 
						|
      width,
 | 
						|
      height,
 | 
						|
      description
 | 
						|
    }
 | 
						|
  })
 | 
						|
  videoDialog.show()
 | 
						|
}
 |