diff --git a/app/components/page-speed/component.js b/app/components/page-speed/component.js index e3b5df3..a5c494a 100644 --- a/app/components/page-speed/component.js +++ b/app/components/page-speed/component.js @@ -1,5 +1,18 @@ import PageComponent from '../page-base/component'; export default PageComponent.extend({ - elementId: 'page-speed' + elementId: 'page-speed', + + didInsertElement() { + this._super(...arguments); + document.querySelectorAll('video').forEach(video => { + video.play(); + }); + }, + + click() { + document.querySelectorAll('video').forEach(video => { + video.play(); + }); + } }); diff --git a/app/components/page-speed/template.hbs b/app/components/page-speed/template.hbs index 973c6d3..426218b 100644 --- a/app/components/page-speed/template.hbs +++ b/app/components/page-speed/template.hbs @@ -7,7 +7,7 @@

Sn(Ag)Cu alloys are typically limited to speeds of 5mm/s to avoid defects

-