// When document is ready initialize app $(document).ready(function() { var filter = web3.eth.filter('latest'); filter.watch(function(err, res){ if(!err){ updateUI(); } else{ console.error("!!!!!!Error Happened!"); filter.stopWatching(); } }); /// INIT Whisper web3.Lib.initWhisper() .then(function(w){ web3.Whisper = w; }); createUI(); updateUI(); }); /////////////////// /// UI //////////// /////////////////// var matchhash; var maphash; var opAccount; var selectBox; function createUI(){ selectBox = document.getElementById("accselector"); for (var i = 0; i