Вывожу кнопку с нужным текстом #28
This commit is contained in:
parent
ac9c382c47
commit
a7461c0ad6
@ -35,7 +35,11 @@
|
|||||||
const gen = {
|
const gen = {
|
||||||
url: articleLink
|
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"]');
|
const linkInput = document.querySelector('[name="link"]');
|
||||||
linkInput.addEventListener('input', appendShare)
|
linkInput.addEventListener('input', appendShare)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user