mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -347,6 +347,24 @@ export class ViewPublicationsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
preventVideoPlay(event: Event): void {
|
||||
|
||||
|
||||
// Prevent the default behavior of the click event (which is to play the video)
|
||||
event.preventDefault();
|
||||
|
||||
// You may also want to stop the propagation of the event to prevent any parent click handlers
|
||||
// event.stopPropagation();
|
||||
|
||||
// Optionally, you can add additional logic here
|
||||
|
||||
const videoElement: HTMLVideoElement = event.target as HTMLVideoElement;
|
||||
|
||||
videoElement.pause()
|
||||
}
|
||||
|
||||
|
||||
stopVideo() {
|
||||
var videos = document.querySelectorAll('video');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user