UNPKG

toloframework

Version:

Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.

2 lines 875 B
function addListener(e,r){window.addEventListener?window.addEventListener(e,r,!1):window.attachEvent("on"+e,r)}window.require=function(){var e={},r={},t={},n="function"==typeof window.require?window.require:null,o=function(i,d){var u=e[i];if(u)return u;if("node://"==i.substr(0,7)){if(!n)throw Error("[require] NodeJS is not available to load module `"+i+"`!");return n(i.substr(7))}if("function"==typeof d)return void(t[i]=d);var a;if(void 0===(d=t[i])){var s=new Error("Required module is missing: "+i);throw console.error(s.stack),s}if(void 0===(a=r[i])){a={exports:{}};var f=a.exports;d(o,a,f),r[i]=a.exports,a=a.exports}return a};return o.mock=function(r,t){e[r]=t},o}(),addListener("DOMContentLoaded",function(){document.body.parentNode.$data={},APP=require("test"),setTimeout(function(){"function"==typeof APP.start&&APP.start()})}); //# sourceMappingURL=test.html.map