add plugin basics and fix #31 by providing it as plugin

This commit is contained in:
Stefan Breunig
2013-02-09 13:52:10 +01:00
parent b9ec6328f8
commit 6b19e79e07
5 changed files with 100 additions and 6 deletions

View File

@ -65,6 +65,8 @@ document.getElementsByTagName('body')[0].innerHTML = ''
+ ' <input id="geosearch" placeholder="Search location…" type="text"/>'
+ ' <div id="portaldetails"></div>'
+ ' <input id="redeem" placeholder="Redeem code…" type="text"/>'
+ ' <div id="toolbox"></div>'
+ ' <div id="spacer"></div>'
+ ' <div id="updatestatus"></div>'
+ ' </div>';
+ '</div>';
@ -162,6 +164,9 @@ window.portals = {};
window.links = {};
window.fields = {};
// plugin framework. Plugins may load earlier than iitc, so dont
// overwrite data
if(typeof window.plugin !== 'function') window.plugin = function() {};
@@INJECTHERE@@