Important: this documentation is not applicable to your currently selected format email!
Embeds a VK post or poll widget.
<script async custom-element="amp-vk" src="https://cdn.ampproject.org/v0/amp-vk-0.1.js"></script>
You can use the
amp-vk component to embed a VK post or poll widget.
Example of a post widget:
<amp-vk width="500" height="300" data-embedtype="post" layout="responsive" data-owner-id="1" data-post-id="45616" data-hash="Yc8_Z9pnpg8aKMZbVcD-jK45eAk" > </amp-vk>
Example of a poll widget:
<amp-vk width="400" height="300" layout="responsive" data-embedtype="poll" data-api-id="6183531" data-poll-id="274086843_1a2a465f60fff4699f" > </amp-vk>
|data-embedtype (required)||The type of embed, either |
|data-owner-id||Owner id of a vk.com post. Supported when |
|data-post-id||Post id of a post. Supported when |
|data-hash||Security hash for the widget connection. Supported when |
|data-api-id||API id of a poll. Supported when |
|data-poll-id||Id of a poll. Supported when |
|common attributes||This element includes common attributes extended to AMP components.|
See amp-vk rules in the AMP validator specification.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.Go to Stack Overflow Found a bug or missing a feature?
The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.Go to GitHub