/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/visual-tests/amp-selector.amp.html
53 строки
2 KB
Caroline Liu
Apply lang="en" to examples/ (#34759)
10 июн 2021, 17:30
Не верифицирован
10 июн 2021, 17:30
2ee75c4
Код
Авторство
О чём код?
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>AMP Selector</title> <link rel="canonical" href="amp-selector.amp.html" > <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <script async custom-element="amp-selector" src="https://cdn.ampproject.org/v0/amp-selector-0.1.js"></script> <style amp-custom> amp-selector [option] { box-sizing: border-box !important; display: inline-block; position: relative !important; } amp-selector [selected] { background-color: deeppink; } amp-selector[disabled], amp-selector [disabled] { opacity: .20; } </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>Single select</h2> <amp-selector layout="container" id="single_selector"> <span option="1">Option 1</span> <span option="2">Option 2</span> <span option="3">Option 3</span> <span option="4">Option 4</span> </amp-selector> <h2>Mutli select</h2> <amp-selector layout="container" id="multi_selector" multiple> <span option="1" selected>Option 1</span> <span option="2" disabled>Option 2</span> <span option="3" selected>Option 3</span> <span option="4">Option 4</span> </amp-selector> <h2>Disabled</h2> <amp-selector layout="container" id="disabled_selector" disabled> <span option="1" selected>Option 1</span> <span option="2" disabled>Option 2</span> <span option="3" selected>Option 3</span> <span option="4">Option 4</span> </amp-selector> </body> </html>