ისწავლე / მეტი / რაც / არიცი
/

მიმდინარეობს გვერდის ჩატვირთვა...

Person 1 Person 2 Person 3 Person 4 Person 5

კოდის კოპირება
დაყენება ჩასვით სრულიადში
Code
<style>
  .cat_name_o3 {
  float: right;
  /* background: #252525; */
  color: #f00;
  border: 2px solid #f00;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
  text-shadow: 0px 1px 0px #000;
  padding: 1px 1px;
  display: inline-block;
  *display: inline;
}
</style>

<script>
  function gbc(a){var b=new Array();var c=document.getElementsByTagName('*');var d=c.length;var e=new RegExp("(^|\\b)"+a+"(\\b|$)");var j=0;for(i=0;i<d;i++){if(e.test(c[i].className)){b[j]=c[i];j++}}return b};function goc(e){var i,e,code,wnd,hidsource,source;e='code_'+e;code=document.getElementById(e).innerHTML;wnd=window.open('','_blank','width=750,height=400,location=0,resizable=1,menubar=0,scrollbars=0');wnd.document.write('<div id="source_div" style="display:none;"></div><textarea id="source_area" style="width:730px;height:380px"></textarea>');hidsource=wnd.document.getElementById('source_div');hidsource.innerHTML=code.replace(/<br>/gi,'\n');source=wnd.document.getElementById('source_area');if(hidsource.innerText){i=hidsource.innerText}else{i=hidsource.textContent}source.value=i;source.focus();source.select()};function setdots(g){return g.replace(/([^:]+):([^;]*)(;)?/g,function(a,b,c,d){return'<span class=stylesdivs><span class=dblueCol>'+b+'</span><span class=pinkCol>:</span><span class=blueCol>'+c+'</span>'+(d==null?'':'<span class=pinkCol>'+d+'</span>')+'</span>'})};ulight();function ulight(){var e,code2,code3,code4,code5;var f,a_2,b_1,b_2,c_1,c_2,d_1,d_2,e_1,g;f=gbc('codeMessage');for(a_2=0;f.length>a_2;a_2++){e=f[a_2].innerHTML;f[a_2].innerHTML=e .replace(/(<!--uzc-->)/gi,'<div id="code_'+a_2+'"><span class=htmContainer >').replace(/(<!--\/uzc-->)/gi,'</span></div><div class="ulight_copyright" style="visibility:visible !important;display:block !important;font-family:trebuchet MS !important;"><a style="cursor:pointer;" onclick="goc('+a_2+');"><div class="cat_name_o3">მთლიანი კოდის კოპირება</div></a></div>').replace(/(<script.*?>)(.*?)(<\/script>)/gi,'$1</span><span class=jsContainer><span class=jsCode>$2</span></span><span class=htmContainer>$3').replace(/(<style.*?>.*?<\/style>)/gi,'</span><span class=cssContainer>$1</span><span class=htmContainer>')}b_1=gbc('cssContainer');for(b_2=0;b_1.length>b_2;b_2++){code2=b_1[b_2].innerHTML;b_1[b_2].innerHTML=code2 .replace(/(<\/?style.*?>)/g,'<span class=cssTag>$1</span>').replace(/({)(.*?)(})/g,function(a,b,c,d){return b+setdots(c)+d}).replace(/(\/\*.*?\*\/)/g,'<span class=commCol>$1</span>').replace(/(\{|\})/g,'<span class=pinkCol>$1</span>').replace(/(!important)/g,'<span class=redCol>$1</span>').replace(/([^\\])((?:'(?:\\'|[^'])*')|(?:"(?:\\"|[^"])*"))/gi,'$1<span class=greenCol>$2</span>')}c_1=gbc('jsContainer');for(c_2=0;c_1.length>c_2;c_2++){code3=c_1[c_2].innerHTML;c_1[c_2].innerHTML=code3 .replace(/(\(|\s|\.|=)((\/)(\\\/|[^\/\n])+(\/[gim]{0,3}))/gi,"$1</span><span class=regExp>$2</span><span class=jsCode>")}d_1=gbc('jsCode');for(d_2=0;d_1.length>d_2;d_2++){code4=d_1[d_2].innerHTML;d_1[d_2].innerHTML=code4 .replace(/(\=\=|\=)/g,'<span class=blueColSimp>$1</span>').replace(/(\/\*.*?\*\/)/g,'<span class=commCol>$1</span>').replace(/(\(|\)|\[|\]|\{|\})/gi,'<span class=brackets>$1</span>').replace(/([^<\/])(\/)([^>\/])/g,'$1<span class=blueColSimp>$2</span>$3').replace(/(<\!\-\-|\-\->)/gi,'<span class=commCol>$1</span>').replace(/([^:])(\/\/.*?)(<br)/gi,'$1<span class=commCol>$2</span>$3').replace(/(\-|\?|\:|\+|\*|\%|<|>|&|\||\!)/g,'<span class=blueColSimp>$1</span>').replace(/([^\w\$_])(break|case|catch|continue|default|do|else|false|for|if|import|in|new|null|return|switch|this|throw|true|try|var|void|while|with)(?=[^\w\$_])/gi,'$1<span class=blueColSimp>$2</span>').replace(/([^\w\$_])(setTimeout|setInterval|Math|Object|typeof|Array|RegExp|acos|asin|atan|atan2|ceil|charAt|cos|unescape|escape|eval|[^g]exp|floor|setDate|getDate|getDay|setHours|getHours|setMinutes|setMonth|setSeconds|setTime|getTimezoneOffset|setYear|getMinutes|getMonth|getSeconds|getTime|getYear|indexOf|isNaN|join|lastIndexOf|log|max|min|parseFloat|parseInt|parse|pow|random|replace|reset|reverse|round|select|sin|sort|split|sqrt|substring|substr|tan|toGMTString|toLocaleString|toLowerCase|toString|toUpperCase|unescape|UTC|writeln|write)(?=[^\w\$_])/g,'$1<span class=lettuceColSimp>$2</span>').replace(/([^\w\$_])(window|document|body|alert|anchor|back|big|blink|blur|bold|clearTimeout|fixed|focus|confirm|click|close|fontcolor|fontsize|forward|go|italics|javaEnabled|link|open|prompt|reload|scroll|small|strike|sub|submit|sup|event)(?=[^\w\$_])/g,'$1<span class=purpleColSimp>$2</span>').replace(/(\d)(\.)(\d)/g,'$1<span class=redCol>$2</span>$3').replace(/([^a-zA-Z\_\$])(\d+)/g,'$1<span class=redCol>$2</span>').replace(/([^\\])((?:'(?:\\'|[^'])*')|(?:"(?:\\"|[^"])*"))/gi,'$1<span class=invComm>$2</span>')}e_1=gbc('htmContainer');for(var g=0;e_1.length>g;g++){code5=e_1[g].innerHTML;e_1[g].innerHTML=code5 .replace(/(style=")(.*?)(")|(style=')(.*?)(')/g,function(a,b,c,d){return b+setdots(c)+d}).replace(/(<\!\-\-.*?\-\->)/gi,'<span class=commCol>$1</span>').replace(/([^\\])((?:'(?:\\'|[^'])*')|(?:"(?:\\"|[^"])*"))/gi,'$1<span class=invComm>$2</span>').replace(/(<[\/]?([A-Za-z0-9]).*?>)/g,'<span class=dblueCol>$1</span>').replace(/(<\!DOCTYPE.*?>)/gi,'<span class=doct>$1</span>').replace(/(<\/?(table|td|tr|th|tbody).*?>)/gi,'<span class=lettuceCol>$1</span>').replace(/(<[\/]?(input|select|option|textarea|form).*?>)/g,'<span class=orangeCol>$1</span>').replace(/(<\/?a.*?>)/gi,'<span class=greenCol>$1</span>').replace(/(<\/?img.*?>)/gi,'<span class=purpleCol>$1</span>').replace(/(<\/?script.*?>)/g,'<span class=jsTag>$1</span>')}};
</script>

<script>
  (function() {
  'use strict';

  // Function to copy text to clipboard
  function copyToClipboard(text) {
  var textarea = document.createElement("textarea");
  textarea.value = text;
  document.body.appendChild(textarea);
  textarea.select();
  document.execCommand("copy");
  document.body.removeChild(textarea);
  }

  function handleButtonClick(event) {
  event.stopPropagation(); // Stop event propagation

  var codeElement = event.target.closest('.bbCodeBlock')?.querySelector('.codeMessage');

  // Check if the codeElement is found and not null before accessing its textContent
  if (codeElement) {
  var codeText = codeElement.textContent.trim();

  // Check if the clicked element is the button itself
  if (event.target.classList.contains('cat_name_o3')) {
  // If it is, exclude the button's text from the copied content
  codeText = codeText.replace(event.target.textContent.trim(), '');
  }

  // Remove any leading/trailing spaces or line breaks
  codeText = codeText.trim();

  copyToClipboard(codeText);

  // Create and style the "Text copied" message (same as before)
  var messageElement = document.createElement("div");

  document.body.appendChild(messageElement);

  // Remove the message after the animation finishes
  messageElement.addEventListener('animationend', function() {
  document.body.removeChild(messageElement);
  });
  }
}

  // Find all elements with the class 'cat_name_o3' and add the click event listener
  var buttons = document.querySelectorAll('.cat_name_o3');
  buttons.forEach(function(button) {
  button.addEventListener('click', handleButtonClick);
  });

  // Add CSS styles for the fadeInOut animation
  var style = document.createElement('style');
  style.innerHTML = `
  @keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
  }
  `;
  document.head.appendChild(style);
})();
</script>
  <body onload="spf();" onresize="spf();" oncopy="alert('დაკოპირდა'); return true;">
კატეგორია: სკრიპტები | ნანახია: 408 | დაამატა: ianoiano242424 | რეიტინგი: 0.0/0
სულ კომენტარები: 1
╰┈➤წარმოგიდგენთ GELESON.AT.UA
ავტორი/ຫອმຕ♪♫™ / კომენტარები № 1 / დრო: 18.08.2024

[img][/img]




© 2011 - 2024 «GELESON.AT.UA» - გაკვეთილები სკრიპტები ... uCoz