-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSIBS6.htm
1 lines (1 loc) · 3.15 KB
/
SIBS6.htm
1
<!doctype html><html><head><meta charset=utf-8><title>Search files</title><style id=mystyle>th{text-align:left;}table th>a{color:gray;text-decoration:underline;font-weight:normal;font-size:80%;}table,tr,td,th,h1,h2,h6,body,input{border:0;padding:2px 6px;margin:2px 6px;font-family:Courier New,Courier,monospace;}input[type='text']{border:1px dashed gray;width:60%;font:normal 16pt Courier New,Courier,monospace;}a{padding:0;margin:0;text-decoration:none;border-bottom:0;font-weight:bold;}a:hover{border-bottom-width:1px;border-bottom-style:solid;}</style></head><body><div id=myform><h1>Search files:</h1><h2><form onsubmit='Proc(1);event.preventDefault();return false;'><input type='text' onkeydown='Proc()' onkeyup='Proc()' onchange='Proc();' id='myrequest'><label><input type='checkbox' onchange='Proc(1);' id='mybig'> by size</label></form></h2><br /><hr /><div id='mytarget'></div><script>window.Proc=function(f,z){if(!Proc.Done)Proc.Done=function(){document.getElementById('mytarget').innerHTML=Proc.Exec(Proc.Find,Proc.Data,document.getElementById('mybig').checked);};if(!Proc.Data)return;if(!Proc.Size)Proc.Size=function(s){var r='';if(s>0){if(s<1024)return s+' b';if(s<1000000)s=s*1000/1024;else s=s/1024*1000;s=Math.floor(s);r=''+s;if(s<10000)return r.substr(0,1)+'.'+r.substr(1)+' Kb';if(s<100000)return r.substr(0,2)+'.'+r.substr(2,1)+' Kb';if(s<1000000)return r.substr(0,3)+' Kb';s=Math.floor(s/1024);r=''+s;if(s<10000)return '<b>'+r.substr(0,1)+'.'+r.substr(1,2)+' Mb</b>';if(s<100000)return '<b>'+r.substr(0,2)+'.'+r.substr(2,1)+' Mb</b>';};return '<u>N/a</u>';};if(!Proc.Exec)Proc.Exec=function(s,t,q){s.replace(/[^0-9a-zA-Z_+., -]/g,'').replace(/\s+/g,' ').trim().split(' ').map(function(s){if(s&&t){t=t.match(new RegExp('^.*?(?:'+s.replace(/(.)/g,'[$1]')+').*?(?:\t[^\t]+){3}$','igm'));if(t)t=t.join('\n');}});var r='<table>';if(t){t=t.trim().split('\n').map(function(s){return s.split('\t')});t=t.sort(q?function(a,b){return b[1]-a[1];}:function(a,b){a=a[0].toLowerCase();b=b[0].toLowerCase();return a>b?1:(a<b?-1:0);});t.map(function(s){r+='<tr><th><a href='+s[3]+'>'+s[3]+'</a></th><td><a href='+s[3]+s[0]+'>'+s[0]+'</a></td><td>'+Proc.Size(s[1])+'</td><td><i>'+s[2]+'</i></td></tr>';});}r+='</table>';return r;};var d=document.getElementById('myrequest').value;if(f||Proc.Find!==d){Proc.Find=d;clearTimeout(Proc.Time);Proc.Time=setTimeout(Proc.Done,f?1:2000);};};setTimeout(function(){document.getElementById('myframe').src='SIBS6.txt';document.getElementById('myrequest').focus();},100);</script><iframe onload='window.Proc.Data=this.contentDocument.body.textContent;window.Proc(1);' style='position:absolute;left:-9999px;height:10px;' id='myframe'></iframe><hr /><h6>Created with <a href='SIBS6.bat'> SIBS6 </a></h6></div><script>setTimeout(function(h){h='<!doctype html><html><head><meta charset=utf-8><title>'+document.title+'</title><style id=mystyle>'+document.getElementById('mystyle').innerHTML+'</style></head><body><div id=myform>'+document.getElementById('myform').innerHTML+'</div></'+'body></'+'html>';document.open();document.write(h);document.close();if(window.stop)window.stop();if(document.execCommand)document.execCommand('Stop');});</script><xmp style='display:none;'></body></html>