Commit 164416d8 authored by Ivan Tyagov's avatar Ivan Tyagov

Use requirejs when possible.

parent cd5ab325
<html> <html>
<head> <head>
<!-- Use proper path --> <!-- Use proper path -->
<script src="../../../../lib/require/require.js"> </script>
<script src="../../../../lib/jquery/jquery.js"> </script> <script src="../../../../lib/jquery/jquery.js"> </script>
<script src="../../../../lib/jstorage/jstorage.js"> </script>
<script type="text/javascript" src="../../renderjs.js"></script> <script type="text/javascript" src="../../renderjs.js"></script>
<head> <head>
<body> <body>
......
<html> <html>
<head> <head>
<script src="../../../../lib/require/require.js"> </script>
<script src="../../../../lib/jquery/jquery.js"> </script> <script src="../../../../lib/jquery/jquery.js"> </script>
<script src="../../../../lib/jstorage/jstorage.js"> </script>
<script type="text/javascript" src="../../renderjs.js"></script> <script type="text/javascript" src="../../renderjs.js"></script>
<head> <head>
<body> <body>
......
// Add required by RenderJs jstorage library only if used HTML application uses requirejs
if (typeof require !== 'undefined') {
require(["../../../../lib/jstorage/jstorage.js"], function(util) {
});
}
// fallback for IE // fallback for IE
if (typeof console === "undefined" || typeof console.log === "undefined") { if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {}; console = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment