2015-11-30 20:36:32 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<%=staticPrefix%>/plugins/c9.ide.layout.classic/loading-flat.css" />
|
2016-02-19 19:59:25 +00:00
|
|
|
<div id="loadingcontainer" class="<%-: theme + (isDark ? " dark" : "") %>">
|
|
|
|
<div id="loadingide">
|
|
|
|
<div class="cool-message"></div>
|
|
|
|
<div class="status" style="display:none"><div class="spinner"></div></div>
|
|
|
|
|
|
|
|
<div id="content" class="loading-progress">
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<a href="https://docs.c9.io">Documentation</a> |
|
|
|
|
<a href="http://status.c9.io">Server Status</a> |
|
|
|
|
<a href="http://support.c9.io">Support</a>
|
|
|
|
</div>
|
2015-11-30 20:36:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
var loadingIde = document.querySelector("#loadingide");
|
|
|
|
document.body.className = "loading " + loadingIde.className;
|
|
|
|
|
|
|
|
var messages = [
|
2016-02-22 14:26:15 +00:00
|
|
|
"Share your code by sharing your workspace URL.",
|
|
|
|
"Test your code in different browsers with the Sauce Labs plugin.",
|
|
|
|
"Each workspace is its own Ubuntu virtual machine.",
|
|
|
|
"Run 'dpkg -l' in the terminal to see all packages installed.",
|
|
|
|
"Remember to run your code on port 8080, 8081, or 8082.",
|
2016-03-03 22:08:45 +00:00
|
|
|
"Use the Collaborate panel when collaborating for optimal teamwork.",
|
2015-11-30 20:36:32 +00:00
|
|
|
"It's better up here.",
|
|
|
|
"Happy coding!",
|
|
|
|
"Everything as you left it.",
|
|
|
|
"Thank you Ada Lovelace!",
|
|
|
|
"POST /desktop/era",
|
2016-02-20 02:25:36 +00:00
|
|
|
"Try using VIM mode!",
|
2015-12-12 10:05:51 +00:00
|
|
|
"Not your grandmother's IDE",
|
2016-02-18 02:27:16 +00:00
|
|
|
"Makes your laptop cooler"
|
2015-11-30 20:36:32 +00:00
|
|
|
];
|
|
|
|
|
2016-02-22 14:26:15 +00:00
|
|
|
var mac_keybindings = [
|
2016-02-27 18:44:19 +00:00
|
|
|
"Press Ctrl-Option-Right to select the next instance of a word.",
|
|
|
|
"Press Cmd-. to show all keyboard commands.",
|
|
|
|
"To rename a variable, highlight it then press Option-Cmd-R.",
|
|
|
|
"Press Option-W to close your current IDE tab.",
|
|
|
|
"Press Cmd-D to delete the current line of code",
|
|
|
|
"Press Option-Tab to go to the next IDE tab.",
|
|
|
|
"Press Option-Shift-T to reopen a tab you closed.",
|
|
|
|
"Press Option-T to open a new terminal at any time.",
|
2016-03-01 12:40:09 +00:00
|
|
|
"Press Cmd-E to search for a file by name.",
|
|
|
|
"Press Cmd-Shift-E to search for a function by name.",
|
|
|
|
"Press Option-S to switch between a terminal and an editor.",
|
2016-02-22 14:26:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
var win_keybindings = [
|
2016-02-27 18:44:19 +00:00
|
|
|
"Press Ctrl-Alt-Right to select the next instance of a word.",
|
|
|
|
"Press Ctrl-. to show all keyboard commands.",
|
|
|
|
"To rename a variable, highlight it then press Ctrl-Alt-R.",
|
|
|
|
"Press Alt-W to close your current IDE tab.",
|
|
|
|
"Press Ctrl-D to delete the current line of code",
|
|
|
|
"Press Alt-Shift-T to reopen a tab you closed.",
|
|
|
|
"Press Alt-T to open a new terminal at any time.",
|
2016-03-01 12:40:09 +00:00
|
|
|
"Press Ctrl-E to search for a file by name.",
|
|
|
|
"Press Ctrl-Shift-E to search for a function by name.",
|
|
|
|
"Press Alt-S to switch between a terminal and an editor.",
|
2016-02-22 14:26:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
var isMac = (navigator.platform == "MacIntel" || navigator.platform == "Macintosh" || navigator.platform == "MacPPC");
|
|
|
|
var platform_keybindings = isMac ? mac_keybindings : win_keybindings;
|
|
|
|
messages = messages.concat(platform_keybindings);
|
|
|
|
|
2015-11-30 20:36:32 +00:00
|
|
|
var idx = Math.floor(Math.random() * messages.length);
|
|
|
|
if (idx == messages.length) idx = messages.length - 1;
|
2016-02-19 19:59:25 +00:00
|
|
|
var msg = messages[idx];
|
|
|
|
|
|
|
|
if (~location.hash.indexOf("create")) {
|
|
|
|
msg = "Creating Your New Workspace";
|
|
|
|
location.hash = location.hash.replace(/&?create/, "");
|
|
|
|
}
|
|
|
|
|
|
|
|
document.querySelector("#loadingide .cool-message").innerHTML = msg;
|
2015-11-30 20:36:32 +00:00
|
|
|
|
|
|
|
setTimeout(function(){
|
|
|
|
var s = document.querySelector("#loadingide .status");
|
|
|
|
if (s) s.style.display = "block";
|
|
|
|
}, 2000);
|
|
|
|
|
|
|
|
window.hideLoader = function(){
|
2016-02-19 19:59:25 +00:00
|
|
|
var loader = document.getElementById("loadingcontainer");
|
2015-11-30 20:36:32 +00:00
|
|
|
loader.parentNode.removeChild(loader);
|
|
|
|
|
|
|
|
document.body.className = document.body.className.replace("loading " + loadingIde.className, "");
|
|
|
|
}
|
|
|
|
</script>
|