Browse Source

Вывожу кнопку с нужным текстом #28

pull/30/head
Artur Galyamov 2 years ago
parent
commit
a7461c0ad6
  1. 6
      cms/templates/articles/new.html

6
cms/templates/articles/new.html

@ -35,7 +35,11 @@
const gen = {
url: articleLink
}
document.getElementById('vkShare').innerHTML = VK.Share.button(gen)
const buttonType = {
type: "link",
text: 'Посмотреть'
}
document.getElementById('vkShare').innerHTML = VK.Share.button(gen, buttonType)
}
const linkInput = document.querySelector('[name="link"]');
linkInput.addEventListener('input', appendShare)

Loading…
Cancel
Save