K
K
Kairbai Muldash2016-03-29 23:02:22
Classmates
Kairbai Muldash, 2016-03-29 23:02:22

Share button Odnoklassniki, no access to the resource, what should I do?

I placed the classmates button widget on the site, I click a window opens, it says there is no access to the resource, try again later, what should I do? what does this have to do with it? how to fix?
1. I do it locally 2. I uploaded it to the
hosting, also shnyaga 3. I also uploaded it
to the hosting from https, the same shnyaga
I don’t know what to do, I don’t even know where to dig

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kairbai Muldash, 2016-03-30
@kair2493

<div id="ok_shareWidget"></div>
<script>
!function (d, id, did, st) {
  var js = d.createElement("script");
  js.src = "//connect.ok.ru/connect.js";
  js.onload = js.onreadystatechange = function () {
  if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
    if (!this.executed) {
      this.executed = true;
      setTimeout(function () {
        OK.CONNECT.insertShareWidget(id,did,st);
      }, 0);
    }
  }};
  d.documentElement.appendChild(js);
}(document,"ok_shareWidget","http://gift.local/temp/vk/index.php","{width:190,height:30,st:'rounded',sz:20,ck:2}");

</script>

M
Michael_friends, 2018-02-09
@Michael_friends

Help! the same trouble, but the button I have has a different look

<a rel="nofollow" onClick="window.open('//connect.ok.ru/offer?url=[(site_url)][~[*id*]~]&title=[*pagetitle*]&description=[*desc*]&imageUrl=[*images*]','sharer','toolbar=0,status=0,width=700,height=400');" href="javascript: void(0)" class="btn btn-primary btn-link" title="Поделитесь с друзьями в Одноклассниках">
    <i class="fa fa-odnoklassniki">&nbsp;</i>
  </a>

5a7d8f02177ee950386882.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question