There is a button code that copies the url of the page on which it is located, but the code is so cleverly written that part of it is displayed within the frames on the page next to the button. <pre><code id="rawgit">&lt;script src="https://cdn.rawgit.com/zenorocha/clipboard.js/v1.6.1/dist/clipboard.min.js"&gt;&lt;/script&gt;</code></pre> <button class="btn btn-default pull-right" data-clipboard-target="#rawgit">КОПИРОВАТЬ</button> Help hide to keep one button.

  • On which page is the code located, and what exactly do you see in the clipboard after clicking on the Копировать button? Judging by the examples of the author clipboard.js, the contents of the element with id="rawgit" are copied here, nothing more. You can assign <pre> style <pre> element the style="display:none" - Sergey Nudnov
  • In the field that I need to remove, just a part of the code is displayed, that is, the code seems to be executed and displayed at the same time. And the code is in the usual php wordpressa widget. Is it possible to learn more about "assign"? where exactly to whom to attach style = "display: none" - gerurd
  • <pre style="display:none"> - Sergey Nudnov

0