Maximum Bug of ClipboardJS

Problem description The copy function has been added to OJ's website today. At the beginning, we used the native functions of JavaScript. The corresponding JavaScript code is as follows: function copyDivToClipboard(containerid) { if (window.getSelection) { if (window.getSelection().empty) { // Chrome window.getSelectio ...

Added by vandutch on Thu, 10 Feb 2022 15:26:04 +0200