VK

VK is a script that allows you to use several widgets from VK social network, such as community, poll, app, article, podcast & a subscribe button.
== ==
== ==
<div class="vk-widget" data-widget="type" options></div>
=== community ===
: data-id: an id of the community which is obtainable from the "Photo albums" link of the community sidebar: https://vk.com/albums-12345678
: data-mode: widget display mode: users, feed, basic (default)
: data-nocover: an option to turn off the cover image in widget: true, false (default)
: data-height: a height of the widget in pixels
: data-width: a width of the widget in pixel
: data-color-bg: a color of the background in HEX format
: data-color-text: a color of the text in HEX format
: data-color-button: a color of the buttons in HEX format
'''
: : <div class="vk-widget" data-widget="community" data-id="12345678" data-mode="feed" data-nocover="true" data-height="500" data-width="300" data-color-bg="000000" data-color-text="FFFFFF" data-color-button="FF0000"></div>
=== poll ===
: data-id: an id of the poll which is obtainable from the "Get poll code" item of a poll dropdown menu in the lineVK.Widgets.Poll("vk_poll", {}, "123456789_1abc2345d6ef78ghi9");
'''
: : <div class="vk-widget" data-widget="poll" data-id="123456789_1abc2345d6ef78ghi9"></div>
=== subscribe ===
: data-id: an id of the user from https://vk.com/id123456789
: data-mode: widget display mode: button (default), button-soft, link, link-soft
: : <div class="vk-widget" data-widget="subscribe" data-id="123456789" data-mode="link-soft"></div>
=== app ===
: data-id: an id of the application from https://vk.com/app1234567
: data-mode: widget display mode: card (default), users, button
: : <div class="vk-widget" data-widget="app" data-id="1234567" data-mode="users"></div>
=== article ===
: data-link: a link to article from https://vk.com/@communityname-title-of-the-article
: : <div class="vk-widget" data-widget="article" data-link="@communityname-title-of-the-article"></div>
=== podcast ===
: data-link: a link to podcast from https://vk.com/podcast-12345678_987654321
: : <div class="vk-widget" data-widget="podcast" data-link="-12345678_987654321"></div>
== Changelog ==
; March 11, 2020
: Initial release.