-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookmarklet.html
1 lines (1 loc) · 981 Bytes
/
bookmarklet.html
1
<head></head><body><a href="javascript:(function(){function%20getScript(url,success){var%20script=document.createElement('script');script.src=url;var%20head=document.getElementsByTagName('head')[0],done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;success();script.onload=script.onreadystatechange=null;head.removeChild(script);}};head.appendChild(script);}function%20getCSS(url){alert('Got%20CSS%20'+url);var%20s=document.createElement('link');s.setAttribute('href',url);s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')[0].appendChild(s);}getScript('http://127.0.0.1:8081/socket.io/socket.io.js',function(){getScript('treklet.js',function(){goog.require('treklet.core');treklet.core.main();});});getCSS('css/avatar.css');getCSS('css/avatar-anim.css');getCSS('css/speechinput.css');})();">Treklet</a></body>