kopia lustrzana https://github.com/c9/core
Added useful messages to loadin screen
rodzic
506622cc01
commit
9e837589e2
|
@ -16,6 +16,12 @@
|
|||
document.body.className = "loading " + loadingIde.className;
|
||||
|
||||
var messages = [
|
||||
"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.",
|
||||
"Use the Collaborate panel when collaborationg for optimal teamwork.",
|
||||
"It's better up here.",
|
||||
"Happy coding!",
|
||||
"Everything as you left it.",
|
||||
|
@ -27,6 +33,33 @@
|
|||
"Makes your laptop cooler"
|
||||
];
|
||||
|
||||
var mac_keybindings = [
|
||||
"Press Ctrl + Command + Right to select the next instance of a word.",
|
||||
"Press Command + . to show all keyboard commands.",
|
||||
"To rename a variable, highlight it then press Option + Command + R.",
|
||||
"Press Option + W to close your current IDE tab.",
|
||||
"Press Command + 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.",
|
||||
"Press Command + E to search for a file by name."
|
||||
];
|
||||
|
||||
var win_keybindings = [
|
||||
"Press Ctrl + Command + 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.",
|
||||
"Press Ctrl + E to search for a file by name."
|
||||
];
|
||||
|
||||
var isMac = (navigator.platform == "MacIntel" || navigator.platform == "Macintosh" || navigator.platform == "MacPPC");
|
||||
var platform_keybindings = isMac ? mac_keybindings : win_keybindings;
|
||||
messages = messages.concat(platform_keybindings);
|
||||
|
||||
var idx = Math.floor(Math.random() * messages.length);
|
||||
if (idx == messages.length) idx = messages.length - 1;
|
||||
document.querySelector("#loadingide .cool-message").innerHTML =
|
||||
|
|
Ładowanie…
Reference in New Issue