mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
58 lines
2.1 KiB
HTML
58 lines
2.1 KiB
HTML
<link rel="stylesheet" type="text/css" href="<%=staticPrefix%>/plugins/c9.ide.layout.classic/loading-flat.css" />
|
|
<div id="loadingide" class="<%-: theme + (isDark ? " dark" : "") %>">
|
|
<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>
|
|
</div>
|
|
<script>
|
|
var loadingIde = document.querySelector("#loadingide");
|
|
document.body.className = "loading " + loadingIde.className;
|
|
|
|
var messages = [
|
|
"It's better up here.",
|
|
"Happy coding!",
|
|
"Everything as you left it.",
|
|
"Give some love to your colleague on the left!",
|
|
"Thank you Ada Lovelace!",
|
|
"Feel the power of a full IDE — in the cloud.",
|
|
"Code for the cloud, in the cloud",
|
|
"Out with the old, in with the new",
|
|
"POST /desktop/era",
|
|
"#OnCloud9",
|
|
"I ❤ Cloud9",
|
|
"My life. My code. My Cloud9.",
|
|
"For the love of code",
|
|
"Get Your Code On",
|
|
"Skip the hazing, love the coding",
|
|
"Stop cursing, start coding",
|
|
"GET /this/workspace#loaded",
|
|
"Use our Vim mode for extra addictive effect!",
|
|
"Not your grandfather's IDE",
|
|
"Now made with 20% more cloud!",
|
|
"Literally makes your laptop cooler",
|
|
];
|
|
|
|
var idx = Math.floor(Math.random() * messages.length);
|
|
if (idx == messages.length) idx = messages.length - 1;
|
|
document.querySelector("#loadingide .cool-message").innerHTML =
|
|
messages[idx];
|
|
|
|
setTimeout(function(){
|
|
var s = document.querySelector("#loadingide .status");
|
|
if (s) s.style.display = "block";
|
|
}, 2000);
|
|
|
|
window.hideLoader = function(){
|
|
var loader = document.getElementById("loadingide");
|
|
loader.parentNode.removeChild(loader);
|
|
|
|
document.body.className = document.body.className.replace("loading " + loadingIde.className, "");
|
|
}
|
|
</script> |