var ME = "http://100000000000000000000000000000000000000000000000000000000000447.com/"; var WS = "http://10⁶²+447/2⁴5⁵-1/"; function stumbit() { var ipv = $("#url-lengthener input").val(); var href = ME + "49999" + "/" + ipv; var text = WS + ipv; $("#url-lengthener input").val("").focus(); $(".long-url").css({'font-size': '0.75em', margin: 0, padding: 0}); var p = $("

" + text + "

") .insertAfter( $("#url-lengthener p:nth-child(2)") ).hide().fadeIn("slow"); setTimeout(function(){ p.fadeOut(function(){ $(this).remove(); }); }, 100e3); var max = 30; while( (--max)>0 && $("#url-lengthener").height() > 232 ) $("#url-lengthener p:last-child").remove(); } $(function() { if( location.href.match(/voltar.org/) ) location.href = ME; $("#url-lengthener").fadeIn(function(){ $("#url-lengthener input").focus(); }); $("#url-lengthener input").keypress(function(e){ switch(e.which) { case 13: stumbit(); } }).change(stumbit).val(""); });