Configuration

Setting Default Language

Open the file "assets/js/main.js" and change the "defaultLanguage" variable value from "en" to any of the initials found on "assets/js/language directory". Example of configuration to Spanish:

var defaultLanguage = "es";

Defining translation languages available

Open the file "index.html" and delete the languages you don't want to display. For example, if you wanna make available only English and Spanish, the HTML code will be:

<div class="languages">
  <img src="assets/images/flags/en.png" id="en" />
  <img src="assets/images/flags/es.png" id="es" />
  <i class="fa fa-plus plus-lng"></i>
</div>

Or, if you'll use just one language (your native language), delete the "languages" HTML markup, including the img tags and opening/closing divs.

Signature on Christmas Card

On "assets/js/main.js" file, change the variable "merryByPhrase". Example:

var merryByPhrase = "Magnolia Bakery";

Time limit to finish the game

Change the variable "limitGameTimeInSeconds" by inserting a number in seconds. Example to 2 minutes:

var limitGameTimeInSeconds = 120;

Other Configurations

Optionally, you can set the variables:

  • dangerTimeInSeconds: At this time the background starts to blink in red and the music accelerates.

  • hurryTimeInSeconds: The time of the game is finishing, so the music accelerates even more.

  • shareLink: The link that will be shared on social networks. The social buttons are inside the card on end of the game. By default, the link is the current page, that is, the Christmas card game itself.

Inserting your logo

Just replace the image "assets/images/logo.jpg" by your own logo.

Personalizing texts and Modifying translations

To change any text of the game, open the "translate.js" file(s) placed inside "assets/js/language/xx/" directory, where "xx" are the initials of the language(s). So, if you are German, open the file "assets/js/language/de/translate.js".

For example, if you want to change the name of the game to any other, change the variable:

var introMissionName = "Any Name You Want";

All the variables are well named to explain its content. The most relevant variables to edit are:

  • messageInsideChristmasCardLine 1, 2 and 3: These are the three greeting texts shown inside the Christmas card. You need to have exactly three phrases/greetings. If you leave any of these variables without content, you'll get one blank frame in the card on mobiles.

If you intend to change these texts and make it multilanguage, you'll need to translate your new texts to every assets/js/language/xx/translate.js files.

"Changing the sharing text

To change/translate the default text placed as description after clicking on the sharing buttons (inside the card), open the "index.html" file and change the text between the "title" tags:

<title>Your text here</title>

"Skip" Link

If you intend to use the game like an intro or a landing page, you can configure the destination page on the Skip link:

<div class="skip">
  <a href="http://anydomain.com.br/example.html"></a>
</div>

You can insert any link, like a Facebook page, an link to your channel on Youtube, a redirect to a specific category on your E-commerce, etc.

If you won't use it like an intro or landing page, just delete the code quoted above.

Optional footer text/content

On "index.html", you can edit the text inside this specific div:

<div class="optionalFooterText">
  * You can optionally insert any text/content here!
</div>

This content is shown on right footer of the start screen, after the loading.

You can use pure text or any HTML content, like an image, a banners, a link, anything. If you won't use it, delete all the div, or just delete its content.

results matching ""

    No results matching ""