UNPKG

lmd

Version:

LMD: Lazy Module Declaration

47 lines (41 loc) 2.02 kB
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Lmd example - development version</title> <!-- External lib out of LMD --> <script type="text/javascript" src="http://yandex.st/jquery/1.7.1/jquery.min.js"></script> <!-- LMD package file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- (!) Use use this if you like to load module each time from server --> <script src="out/index.development.lmd.js" id="source"></script> <!-- (!) Or this file if your like to get your modules from local storage --> <!--<script id="lmd-initializer" src="../src/lmd_initializer.js" data-src="out/index.development.lmd.js" data-version="1.6.0" data-key="lmd"></script>--> <style> pre, .sh_string, .sh_regexp { font-family: Consolas, "Courier New" !important; } </style> </head> <body> <h1>Lmd example - development version</h1> <h2 id="log"></h2> <strong>Open console for details</strong> <pre class="sh_javascript" id="source_hl"></pre> <!-- source hl: ignore that --> <link rel="stylesheet" href="http://shjs.sourceforge.net/sh_style.css" /> <link rel="stylesheet" href="http://shjs.sourceforge.net/css/sh_ide-eclipse.min.css" /> <script type="text/javascript" src="http://shjs.sourceforge.net/sh_main.min.js"></script> <script type="text/javascript" src="http://shjs.sourceforge.net/lang/sh_javascript.min.js"></script> <script> // Tiny ajax - https://gist.github.com/1625623 (function(m,u,c,d,x){with(x=new XMLHttpRequest)return onreadystatechange=function(){readyState^4||c(this)},open(m,u,c),send(d),x}) ('get', "out/index.development.lmd.js", function(xhr){ document.getElementById("source_hl").innerHTML = xhr.responseText.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); sh_highlightDocument(); }); </script> </body> </html>