dikhla didar pyara
Sunday, 18 April 2021
v
ar observe;
if (window.attachEvent) {
observe = function (element, event, handler) {
element.attachEvent('on'+event, handler);
};
}
else {
observe = function (element, event, handler) {
element.addEventListener(event, handler, false);
};
}
function init () {
var text = document.getElementById("textArea");
function resize () {
text.style.height = 'auto';
text.style.height = text.scrollHeight+'px';
}
/* 0-timeout to get the already changed text */
function delayedResize () {
window.setTimeout(resize, 0);
}
observe(text, 'change', resize);
observe(text, 'cut', delayedResize);
observe(text, 'paste', delayedResize);
observe(text, 'drop', delayedResize);
observe(text, 'keydown', delayedResize);
text.focus();
text.select();
resize();
}
function copyhtml() {
const text = document.querySelector("#textArea");
const btnText = document.querySelector("#copy");
text.select();
document.execCommand("copy");
btnText.textContent = "Copied";
setTimeout(function(){
btnText.textContent = "Copy Lyrics";
}, 5000);
}
function escapeHtml(html){
var text = document.createTextNode(html);
var p = document.createElement('p');
p.appendChild(text);
return p.innerHTML;
}
function printTextArea() {
alert (" IF YOU ARE USING MOBILE VERSION ANDROID 10 THEN DOWNLOAD PDF BUTTON IS NOT WORK BUT WORKS ON COMPUTER PLEASE ALLOW POP-UP BLOCKER.");
let childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
childWindow.document.write('');
let styles = document.getElementsByTagName('print');
for(var i=0; i
textarea {
border: 8px groove #32cd32;
border-color: #719ECE;
height: auto; overflow: hidden;
resize: none; text-align: center;
font-size:1em;font-weight:bold;
width: 97%;
border: 5 radius white;
overflow: hidden;
padding: 0;
outline: none;
background-color: white;
}