Created
September 20, 2016 12:54
-
-
Save Fobiya/d81f65026bbbdc35a730a3aaade1d140 to your computer and use it in GitHub Desktop.
vk api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="vk_api_transport"></div> | |
<script type="text/javascript"> | |
setTimeout(function() { | |
var el = document.createElement("script"); | |
el.type = "text/javascript"; | |
el.src = "//vk.com/js/api/openapi.js"; | |
el.async = true; | |
document.getElementById("vk_api_transport").appendChild(el); | |
}, 0); | |
window.vkAsyncInit = function() { | |
VK.init({ | |
apiId: 5622916 | |
}); | |
}; | |
</script> | |
// COMMON JS | |
$(document).ready(function() { | |
VK.Widgets.Comments("vk_comments", {limit: 5, attach: "photo,video,audio"}); | |
VK.Widgets.Like("vk_like", {type: "button"}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="vk_api_transport"></div> | |
<script type="text/javascript"> | |
setTimeout(function() { | |
var el = document.createElement("script"); | |
el.type = "text/javascript"; | |
el.src = "//vk.com/js/api/openapi.js"; | |
el.async = true; | |
document.getElementById("vk_api_transport").appendChild(el); | |
}, 0); | |
window.vkAsyncInit = function() { | |
VK.init({ | |
apiId: 5622916 | |
}); | |
}; | |
</script> | |
// COMMON JS | |
$(document).ready(function() { | |
VK.Widgets.Comments("vk_comments", {limit: 5, attach: "photo,video,audio"}); | |
VK.Widgets.Like("vk_like", {type: "button"}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment