<script src="LogForWorker.js"></script>
$( function() { var logW=new LogForWorker(); for(var i=0;i<32;i++){ logW.log(i); } var fLogs=logW.getFirstLogs(); $('#res_f').html(fLogs.join(',')); var lLogs=logW.getLastLogs(); $('#res_l').html(lLogs.join(',')); });
(c)wacgance 2015-10-23