
ragome-web.0.96-beta2.source-code.dragome-debug.js Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2011-2014 Fernando Petrola
*
* This file is part of Dragome SDK.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
******************************************************************************/
function stylesheet(url)
{
var s = document.createElement('link');
s.type = 'text/css';
s.rel = "stylesheet";
s.async = false;
s.href = url;
var x = document.getElementsByTagName('head')[0];
x.appendChild(s);
}
function script(url, defer)
{
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = false;
s.src = url;
if (defer)
s.defer = "defer";
var x = document.getElementsByTagName('head')[0];
x.appendChild(s);
}
function loadScript(url, callback)
{
var script = document.createElement("script")
script.type = "text/javascript";
if (script.readyState)
{ // IE
script.onreadystatechange = function()
{
if (script.readyState == "loaded" || script.readyState == "complete")
{
script.onreadystatechange = null;
callback();
}
};
} else
{ // Others
script.onload = function()
{
callback();
};
}
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
}
(function()
{
loadScript("dragome-resources/js/jquery.js", function()
{
stylesheet("dragome-resources/css/dragome.css");
script("dragome-resources/js/hashtable.js");
script("dragome-resources/js/deflate.js");
script("dragome-resources/js/console.js");
script("dragome-resources/js/helpers.js");
script("dragome-resources/js/String.js");
loadScript("dragome-resources/js/jquery.atmosphere.js", function()
{
loadScript("dragome-resources/js/application.js", function()
{
loadScript("dragome-resources/js/q-3.0.js", function()
{
script("compiled-js/webapp.js");
});
});
});
});
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy