Sha256: d9ca8b53799c8dc3d7f5a4225dd6128d6d17de7a9b223e00aa1811b0b3f2d9db
Contents?: true
Size: 989 Bytes
Versions: 14
Compression:
Stored size: 989 Bytes
Contents
<!DOCTYPE HTML> <html> <head> <title>Test for openDatabase/openDatabaseSync</title> <script type="text/javascript" language="javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js"></script> </head> <body> <div id="log"></div> <script type="text/javascript"> var logDiv = jQuery('#log'); var log = function(str) { logDiv.append('<div>'+str+'</div>'); }; var wrk = null; var async = null; var sync = null; try { wrk = Worker } catch (ex) { worker = ex +''}; try { async = openDatabase } catch (ex) { async = ex +''}; try { sync = openDatabaseSync } catch (ex) { sync = ex +''}; log('In the main thread:'); log(' Worker is: ' +wrk); log(' openDatabase is: ' +async); log(' openDatabaseSync is: ' +sync); log(' '); wrk = true; if ((wrk) && 'string' != typeof wrk) { var w = new Worker('worker-test.js'); w.onmessage = function(e) { log(e.data); }; w.postMessage('start'); } </script> </body> </html>
Version data entries
14 entries across 14 versions & 1 rubygems