Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonAlling committed Mar 18, 2017
2 parents 3c82a2b + 520d498 commit 88a1add
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/SplashScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
function showStartHint() {
const startHintElement = byID(STRINGS.id_start_hint);
if (isHTMLElement(startHintElement)) {
startHintElement.textContent = TEXT.hint_start;
startHintElement.innerHTML = TEXT.hint_start;
}
}

function showFullscreenHint() {
const fullscreenHintElement = byID(STRINGS.id_fullscreen_hint);
if (isHTMLElement(fullscreenHintElement)) {
fullscreenHintElement.textContent = TEXT.getFullscreenHint(PLATFORM.getFullscreenShortcut());
fullscreenHintElement.innerHTML = TEXT.getFullscreenHint(PLATFORM.getFullscreenShortcut());
}
}

Expand Down
6 changes: 3 additions & 3 deletions js/locales/Zatacka.en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const TEXT = (() => {

return Object.freeze({
hint_unload: `Are you sure you want to unload the page?`,
hint_start: `Press Space to start`,
hint_start: `Press <kbd>Space</kbd> to start`,
hint_popup: `It is recommended to run Kurve in its own window without history (to avoid switching tabs or navigating back in history mid-game). To do that, please allow popups or <a href="ZATACKA.html" target="_blank">click here</a>.`,
hint_pick: `Pick your desired color by pressing the corresponding LEFT key (e.g. M for Orange).`,
hint_proceed: `Press ${KEY_PROCEED} to start!`,
Expand All @@ -20,8 +20,8 @@ const TEXT = (() => {
hint_preferences_access_denied: `Could not save/load settings because access to localStorage was denied by the browser. This might be caused by "third-party site data" being blocked or similar.`,
hint_preferences_localstorage_failed: `Could not save/load settings because access to localStorage failed.`,

keyboard_fullscreen_mac: `${KEY_CMD} + ${KEY_SHIFT} + F`,
keyboard_fullscreen_standard: "F11",
keyboard_fullscreen_mac: `<kbd>${KEY_CMD} + Ctrl + F</kbd> and/or <kbd>${KEY_CMD} + ${KEY_SHIFT} + F</kbd>`,
keyboard_fullscreen_standard: "<kbd>F11</kbd>",

getFullscreenHint: (shortcut) => `Press ${shortcut} to toggle fullscreen`,

Expand Down
4 changes: 4 additions & 0 deletions kurve.se.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ main {
font-size: 0.9em;
}

kbd {
color: white;
}

#popup-hint a {
text-decoration: underline;
}
Expand Down

0 comments on commit 88a1add

Please sign in to comment.