Making pass word for page


amar nam rayhan

https://sayemtutorial.blogspot.com/2020/05/click-to-copy-to-clipboard-with-custom.html

to add just copy

</body>
bodyr age dite hobe

tarpor nicer code ti copy kore

&lt;style&gt;code, pre, mark{-webkit-user-select:all !important;-khtml-user-select:all !important;-moz-user-select:all !important;-ms-user-select:all !important;user-select:all !important}
&lt;/style&gt;&lt;script&gt;//&lt;![CDATA[
jQuery.fn.selectText=function(){this.find(&#039;input&#039;).each(function(){if($(this).prev().length==0||!$(this).prev().hasClass(&#039;p_copy&#039;)){$(&#039;&lt;p class=&quot;p_copy&quot; style=&quot;position: absolute; z-index: -1;&quot;&gt;&lt;/p&gt;&#039;).insertBefore($(this))}
$(this).prev().html($(this).val())});var doc=document;var element=this[0];console.log(this,element);if(doc.body.createTextRange){var range=document.body.createTextRange();range.moveToElementText(element);range.select();document.execCommand(&#039;copy&#039;)}else if(window.getSelection){var selection=window.getSelection();var range=document.createRange();range.selectNodeContents(element);selection.removeAllRanges();selection.addRange(range);document.execCommand(&#039;copy&#039;)}}
$(&#039;pre, code, mark&#039;).on(&#039;click&#039;, function(e) {
var selector = $(this);
$(selector).selectText();
e.preventDefault();
alert(&quot;Your Text is asuccessfully copied to clipboard&quot;);
});//]]&gt;&lt;/script&gt;

ekhon jekono post e dite
<mark>ekhane apnar lekha likben</mark>
<pre>ekhane apnar lekha likben</Pre>
<code>ekhane apnar lekha likben</code>
<pre><code>ekhane apnar lekha likben</code></pre>


No comments:

Post a Comment

 
Night Mode