/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/fixtures/e2e/amp-bind/bind-video.html
30 строк
2 KB
Caroline Liu
♿ Apply `lang="en"` to relevant snippets in `test/` (#34768)
11 июн 2021, 16:59
Не верифицирован
11 июн 2021, 16:59
c3608d2
Код
Авторство
О чём код?
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>amp-bind : amp-video</title> <link rel="canonical" href="amps.html" > <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <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> <script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> <script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script> </head> <body> <!-- amp-video --> <button on="tap:AMP.setState({videoSrc: 'https://www.google.com/bound.webm'})" id="changeVidSrcButton"></button> <button on="tap:AMP.setState({videoSrc: 'http://www.google.com/justhttp.ogg'})" id="httpVidSrcButton"></button> <button on="tap:AMP.setState({videoSrc: '?__amp_source_origin'})" id="disallowedVidUrlButton"></button> <button on="tap:AMP.setState({videoAlt: 'hello world'})" id="changeVidAltButton"></button> <button on="tap:AMP.setState({videoWidth: 300, videoHeight: 300})" id="changeVidDimensButton"></button> <button on="tap:AMP.setState({videoControls: true})" id="showVidControlsButton"></button> <button on="tap:AMP.setState({videoControls: false})" id="hideVidControlsButton"></button> <amp-video layout="responsive" id="video" src="https://www.google.com/unbound.webm" [src]="videoSrc" alt="unbound" [alt]="videoAlt" width="200" [width]="videoWidth" height="200" [height]="videoHeight" [controls]="videoControls"> </amp-video> </body> </html>