equal
deleted
inserted
replaced
285 ready: function() { |
285 ready: function() { |
286 var handler = this, |
286 var handler = this, |
287 video = document.createElement( 'video' ); |
287 video = document.createElement( 'video' ); |
288 |
288 |
289 video.id = 'wp-custom-header-video'; |
289 video.id = 'wp-custom-header-video'; |
290 video.autoplay = 'autoplay'; |
290 video.autoplay = true; |
291 video.loop = 'loop'; |
291 video.loop = true; |
292 video.muted = 'muted'; |
292 video.muted = true; |
|
293 video.playsInline = true; |
293 video.width = this.settings.width; |
294 video.width = this.settings.width; |
294 video.height = this.settings.height; |
295 video.height = this.settings.height; |
295 |
296 |
296 video.addEventListener( 'play', function() { |
297 video.addEventListener( 'play', function() { |
297 handler.trigger( 'play' ); |
298 handler.trigger( 'play' ); |