/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/dailymotion.amp.html
70 строк
2 KB
rebeccanthomas
📖 [`amp-dailymotion`] Update examples to include autoplay example. (#35445)
06 авг 2021, 21:30
Не верифицирован
06 авг 2021, 21:30
7c30ed8
Код
Авторство
О чём код?
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>Dailymotion examples</title> <link rel="canonical" href="amps.html"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <script async custom-element="amp-dailymotion" src="https://cdn.ampproject.org/v0/amp-dailymotion-0.1.js"></script> <style amp-custom> .spacer { height: 100vh; } </style> <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> <script async src="https://cdn.ampproject.org/v0.js"></script> </head> <body> <h2>Dailymotion</h2> <h4>Default</h4> <amp-dailymotion data-videoid="x3rdtfy" width="500" height="281"> </amp-dailymotion> <h4>Default (responsive)</h4> <amp-dailymotion data-videoid="x3rdtfy" width="500" height="281" layout="responsive"> </amp-dailymotion> <h4>Custom</h4> <amp-dailymotion data-videoid="x3rdtfy" data-endscreen-enable="false" data-sharing-enable="false" data-ui-highlight="444444" data-ui-logo="false" data-info="false" id="myVideo" width="640" height="360"> </amp-dailymotion> <h3>Actions</h3> <button on="tap:myVideo.play">Play</button> <button on="tap:myVideo.pause">Pause</button> <button on="tap:myVideo.mute">Mute</button> <button on="tap:myVideo.unmute">Unmute</button> <button on="tap:myVideo.fullscreen">Fullscreen</button> <h4>Autoplay</h4> <amp-dailymotion autoplay data-videoid="x3rdtfy" width="500" height="281" layout="responsive"> </amp-dailymotion> <div class="spacer"></div> </body> </html>