since 1995 on the internet
DETTAGLI

👉 loading script asincrono
???idSCRIPT_ESEMPIO_zero
👉 ascii
👉 timer (semplice)
Il timer dopo 40sec fa scadere una sessione di lavorovar elem = document.getElementById("incremento"); var numero = 0; var intervallo = setInterval(contatore, 1000); function contatore() { numero=numero+1; elem.innerHTML = numero; if (numero==40) { window.location.href="test.php" } }
👉 Il timer dopo 65sec fa scadere una sessione di lavoro indicato in modo frazionario
👉 cursore flashing
👉 agit-prop
<span id="agitprop" style="display:inline-block !important;"> </span> <!-- agitprop svg --> <script> document.getElementById("agitprop").innerHTML="<div style='width:24px;height:24px;margin:0px;padding:0px;display:inline-block !important;'><svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M5 9a3 3 0 000 6h.5L7 19.3A2.5 2.5 0 009.3 21h.2a1.4 1.4 0 001.2-.6 1.4 1.4 0 00.2-1.4l-1.3-4h1.8l8.6 3.8V4.7L11.4 9zm5 10.3a.7.7 0 01-.1.5l-.4.2h-.2a1.5 1.5 0 01-1.4-1l-1.3-4h1.9zM5 14a2 2 0 010-4h6v4zm14 3.2l-7-3V9.8l7-3.5zM22 9v6h-1V9z'/><path fill='none' d='M0 0h24v24H0z'/> </svg></div> " + " <style> "+ " .cursore { "+ " background: lime; "+ " line-height: 17px; "+ " margin-left: 3px; "+ " -webkit-animation: blink 0.8s infinite; "+ " width: 7px; "+ " height: 15px; "+ " } "+ " @-webkit-keyframes blink { "+ " 0% {background: #222} "+ " 50% {background: lime} "+ " 100% {background: #222} "+ " } "+ " </style> "+ " "+ " <div style='margin-bottom:0.15rem !important;padding:0;display:inline-block !important;' class='cursore'></div> " ; </script>
👉 clipboard copy
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> /* How to copy TEXT to Clipboard on Button-Click A Pen By Shaik Maqsood https://codepen.io/shaikmaqsood/pen/XmydxJ */ function copyToClipboard(element) { var $temp = $("<input>"); $("body").append($temp); $temp.val($(element).text()).select(); document.execCommand("copy"); $temp.remove(); } </script>