Skip to content

Instantly share code, notes, and snippets.

@Contejious
Created March 19, 2012 18:26
Show Gist options
  • Save Contejious/2122925 to your computer and use it in GitHub Desktop.
Save Contejious/2122925 to your computer and use it in GitHub Desktop.
index boot strapper sans timing issue
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript">
(function(){
var baseUrl= "/";
require.config({
baseUrl: baseUrl
});
var flensed = {base_path: baseUrl + "lib/flensed" };
function getConfigVal(key, defaultValue){
if(localStorage.getItem('fixtureMode') !== "false") return defaultValue;
if(key == 'fixtureMode') return false;
var localStorageValue = localStorage.getItem(key);
return localStorageValue === null ? defaultValue : localStorageValue;
}
define('env', {});
require(['env', 'lib/window', 'lib/polyfills', 'lib/jquery'], function(env, win, poly, $){
env.applicationDomRoot = document.body;
env.iPad = navigator.userAgent.match(/iPad/i) != null;
env.app = 'Main';
env.styleEnvironment = env.app + "-" + (env.iPad ? "ipad" : "desktop");
// Configuration
env.suiteApi = getConfigVal('suiteApi', '');
env.suiteWeb = getConfigVal('suiteWeb', '');
env.fixtureMode = getConfigVal('fixtureMode', true);
// End Configuration
env.relativePathToClientFiles = "";
env.loginUrl = "/login.html";
env.clientApp = baseUrl;
env.commandUrl = env.suiteApi + "Command/Send";
$(function(){
require(["client"], function(){});
});
});
})();
</script>
<title>TNW : Governance, Risk and Compliance</title>
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="apple-touch-startup-image" href="apple-touch-startup-image.png" />
<meta name="application-name" content="Governance, Risk and Compliance" />
<meta name="viewport" content="width=720, initial-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-capable" content="yes" />
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment